/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 50%, #cbd5e1 100%);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

.pagination {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.pagination-info {
    font-size: 14px;
    color: #374151;
    text-align: center;
}

.pagination-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.pagination .page-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}

.pagination .page-dots {
    padding: 8px 6px;
    color: #6b7280;
    font-size: 14px;
    user-select: none;
}

.pagination .page-btn {
    padding: 8px 14px;
    background: rgba(255, 255, 255, 0.85);
    border-radius: 10px;
    border: 1px solid #d1d5db;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    min-width: 40px;
}

.pagination .page-btn:hover:not(.active):not([disabled]) {
    background: #f3f4f6;
    border-color: #9ca3af;
    transform: translateY(-1px);
}

.pagination .page-btn.active {
    background: #2563eb;
    color: #fff;
    border-color: #1d4ed8;
    font-weight: 600;
    box-shadow: 0 2px 4px rgba(37, 99, 235, 0.3);
}

.pagination .page-btn[disabled] {
    opacity: 0.5;
    cursor: not-allowed;
    background: #e5e7eb;
}

.pagination .page-btn.nav {
    font-weight: 600;
    padding: 8px 16px;
}

@media (max-width: 640px) {
    .pagination {
        margin-top: 16px;
    }
    
    .pagination-controls {
        justify-content: center;
    }
    
    .pagination .page-btn {
        padding: 6px 10px;
        font-size: 13px;
        min-width: 36px;
    }
    
    .pagination .page-btn.nav {
        padding: 6px 12px;
    }
}

.tour-status-filter,
.passenger-status-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.status-checkbox {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: #374151;
    background: rgba(255,255,255,0.8);
    padding: 6px 10px;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.status-checkbox input[type="checkbox"] {
    width: 16px;
    height: 16px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    user-select: none;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    margin: 0;
}

.passenger-manage-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.passenger-title {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
}

.passenger-note {
    margin-bottom: 16px;
    color: #6b7280;
    font-size: 14px;
}

.passenger-tour-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 12px;
}

.passenger-tours-table .table {
    margin-bottom: 0;
}

/* Modal Overlay & Container (new responsive system) */
.app-overlay { position:fixed; inset:0; background:rgba(0,0,0,.55); display:flex; align-items:flex-start; justify-content:center; overflow-y:auto; padding:40px 16px 60px; z-index:1000; }
.app-modal { background:#fff; border-radius:18px; width:100%; max-width:760px; box-shadow:0 8px 28px -4px rgba(0,0,0,.25); display:flex; flex-direction:column; max-height:100%; }
.app-modal-header { padding:18px 22px 10px; border-bottom:1px solid #f1f2f4; display:flex; align-items:center; justify-content:space-between; gap:14px; }
.app-modal-header h2 { font-size:20px; font-weight:600; margin:0; line-height:1.2; letter-spacing:.2px; display:flex; align-items:center; gap:8px; }
.app-modal-close { background:#f5f6f8; border:none; width:40px; height:40px; border-radius:14px; cursor:pointer; display:flex; align-items:center; justify-content:center; font-size:22px; color:#444; transition:.18s background; }
.app-modal-close:hover { background:#eceef1; }
.app-modal-body { padding:22px 22px 28px; overflow-y:auto; }

/* Form Grid Helpers */
.form-grid-2 { display:grid; grid-template-columns:1fr 1fr; gap:14px 18px; }
.form-grid-2 .fg-full { grid-column:1/-1; }
.form-grid-2 label { display:block; font-size:12px; font-weight:600; text-transform:uppercase; letter-spacing:.5px; margin-bottom:4px; color:#465264; }
.form-grid-2 input[type="text"],
.form-grid-2 input[type="number"],
.form-grid-2 input[type="date"],
.form-grid-2 input[type="time"],
.form-grid-2 input[type="file"],
.form-grid-2 input:not([type]),
.form-grid-2 select { width:100%; padding:10px 12px; border:1px solid #d5d9e0; border-radius:10px; font-size:14px; background:#fff; box-sizing:border-box; }
.form-grid-2 input:focus, .form-grid-2 select:focus { outline:2px solid #2563eb22; border-color:#2563eb; }
.form-grid-2 .modal-tour-name { font-size:13px; color:#374151; font-weight:500; }

/* Buttons */
.btn { border:none; cursor:pointer; font-weight:600; font-size:14px; padding:10px 18px; border-radius:10px; letter-spacing:.3px; display:inline-flex; align-items:center; gap:6px; }
.btn-primary { background:#2563eb; color:#fff; }
.btn-primary:hover { background:#1d4ed8; }
.btn-secondary { background:#f3f4f6; color:#374151; }
.btn-secondary:hover { background:#e5e7eb; }
.btn-light { background:#cecece; color:#495057; border:1px solid #dee2e6; }
.btn-light:hover { background:#9d9c9c; color:#495057; border-color:#dae0e5; }

/* Mobile Responsive Behavior */
@media (max-width: 680px){
    .app-overlay { padding:0; align-items:stretch; }
    .app-modal { border-radius:0; max-width:none; height:100%; }
    .app-modal-header { padding:16px 16px 8px; }
    .app-modal-body { padding:18px 16px 30px; }
    .form-grid-2 { grid-template-columns:1fr; }
    .btn { width:auto; }
}

/* Personnel Responsive Cards */
.personnel-cards { display:grid; grid-template-columns:1fr 1fr; gap:14px; }
.personnel-card { border-radius:14px; padding:14px 14px 12px; display:flex; flex-direction:column; gap:6px; }
.personnel-card h4 { margin:0; font-size:15px; font-weight:600; color:#111827; line-height:1.2; }
.personnel-chip { display:inline-flex; align-items:center; padding:3px 7px 4px; border-radius:20px; font-size:11px; font-weight:600; letter-spacing:.3px; background:#eff6ff; color:#1d4ed8; }
.personnel-chip.guide { background:#ecfdf5; color:#047857; }
.personnel-meta { font-size:11px; color:#6b7280; display:flex; gap:8px; flex-wrap:wrap; }
.personnel-actions { margin-top:4px; display:flex; justify-content:flex-end; }
.personnel-actions button { font-size:12px; padding:6px 10px; border-radius:8px; }
@media (max-width: 860px){
    .personnel-cards { grid-template-columns:1fr; }
}
@media (max-width:600px){
    .personnel-card { padding:12px 12px 10px; }
    .personnel-card h4 { font-size:14px; }
    .personnel-meta { font-size:10px; }
}

/* Car Responsive Cards */
.car-cards { display:grid; grid-template-columns:repeat(auto-fill,minmax(180px,1fr)); gap:14px; }
.car-card { 
    background: linear-gradient(135deg, #f0fdf4 0%, #ffffff 50%, #ecfdf5 100%);
    border: 1px solid #22c55e;
    border-radius: 14px; 
    padding: 12px 12px 10px; 
    display: flex; 
    flex-direction: column; 
    gap: 6px;
    box-shadow: 0 2px 8px rgba(34, 197, 94, 0.12);
    transition: all 0.3s ease;
}
.car-card .plate { font-weight:700; font-size:15px; color:#111827; letter-spacing:.5px; }
.car-card .model { font-size:12px; color:#374151; line-height:1.3; }
.car-card .meta { font-size:11px; color:#6b7280; display:flex; gap:6px; flex-wrap:wrap; }
.car-card .actions { display:flex; gap:6px; margin-top:4px; }
.car-card button { flex:1; padding:6px 8px; font-size:12px; border-radius:8px; }

.car-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(34, 197, 94, 0.20);
    border-color: #16a34a;
}

@media (max-width:720px){
    .car-cards { grid-template-columns:repeat(auto-fill,minmax(150px,1fr)); }
    .car-card { padding:10px 10px 8px; }
    .car-card .plate { font-size:14px; }
}

/* Office Expense Responsive Cards */
.office-expense-cards { display:grid; grid-template-columns:repeat(auto-fill,minmax(200px,1fr)); gap:14px; }
.office-expense-card { border-radius:14px; padding:14px 14px 12px; display:flex; flex-direction:column; gap:6px; }
.office-expense-card .top-line { display:flex; justify-content:space-between; align-items:center; gap:8px; }
.office-expense-card .type { font-weight:600; font-size:14px; color:#111827; }
.office-expense-card .amount { font-weight:700; font-size:14px; color:#1d4ed8; }
.office-expense-card .date { font-size:11px; font-weight:600; letter-spacing:.3px; color:#6b7280; }
.office-expense-card .meta { font-size:11px; color:#374151; line-height:1.3; }
.office-expense-card .added { font-size:10px; color:#6b7280; }
.office-expense-card .actions { display:flex; justify-content:flex-end; margin-top:4px; }
.office-expense-card button { font-size:12px; padding:6px 10px; border-radius:8px; }
@media (max-width:860px){ .office-expense-cards { grid-template-columns:repeat(auto-fill,minmax(160px,1fr)); } }
@media (max-width:640px){ .office-expense-card { padding:12px 12px 10px; } .office-expense-card .type, .office-expense-card .amount { font-size:13px; } .office-expense-card .meta { font-size:10px; } }

/* Stop Responsive Cards */
.stop-cards { display:grid; grid-template-columns:repeat(auto-fill,minmax(200px,1fr)); gap:14px; }
.stop-card { 
    background: linear-gradient(135deg, #fef3c7 0%, #ffffff 50%, #fefce8 100%);
    border: 1px solid #f59e0b;
    border-radius: 14px; 
    padding: 14px 14px 12px; 
    display: flex; 
    flex-direction: column; 
    gap: 6px; 
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.15);
    position: relative;
    transition: all 0.3s ease;
}
.stop-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(245, 158, 11, 0.25);
    border-color: #d97706;
    background: linear-gradient(135deg, #fde68a 0%, #fef3c7 50%, #fefce8 100%);
}
.stop-card h4 { margin:0; font-size:15px; font-weight:600; color:#111827; line-height:1.2; }
.stop-card .city { font-size:11px; font-weight:600; text-transform:uppercase; letter-spacing:.5px; color:#92400e; background:#fef3c7; padding:3px 6px 4px; border-radius:6px; display:inline-block; border: 1px solid #f59e0b; }
.stop-card .desc { font-size:12px; color:#374151; line-height:1.3; max-height:38px; overflow:hidden; position:relative; }
.stop-card .meta { font-size:10px; color:#6b7280; }
.stop-card .actions { display:flex; gap:6px; margin-top:4px; }
.stop-card button { flex:1; padding:6px 8px; font-size:12px; border-radius:8px; }
@media (max-width:860px){ .stop-cards { grid-template-columns:repeat(auto-fill,minmax(160px,1fr)); } }
@media (max-width:640px){ .stop-card { padding:12px 12px 10px; } .stop-card h4 { font-size:14px; } .stop-card .desc { font-size:11px; } }

/* Delete Request Responsive Cards */
.delete-request-cards { display:grid; grid-template-columns:repeat(auto-fill,minmax(230px,1fr)); gap:14px; }
.delete-request-card { background:#fff; border:1px solid #e5e7eb; border-radius:14px; padding:14px 14px 12px; display:flex; flex-direction:column; gap:6px; box-shadow:0 1px 2px rgba(0,0,0,.04); }
.delete-request-card .line1 { display:flex; justify-content:space-between; align-items:center; gap:8px; }
.delete-request-card .name { font-weight:600; font-size:14px; color:#111827; }
.delete-request-card .seat { font-size:11px; font-weight:600; letter-spacing:.3px; color:#1d4ed8; }
.delete-request-card .tour { font-size:12px; color:#374151; line-height:1.3; }
.delete-request-card .tour-date { font-size:11px; color:#6b7280; font-weight:600; margin-left:4px; }
.delete-request-card .requested-by, .delete-request-card .requested-at { font-size:11px; color:#6b7280; }
.delete-request-card .actions { display:flex; gap:6px; margin-top:4px; }
.delete-request-card button { flex:1; padding:6px 8px; font-size:12px; border-radius:8px; }
@media (max-width:860px){ .delete-request-cards { grid-template-columns:repeat(auto-fill,minmax(180px,1fr)); } }
@media (max-width:640px){ .delete-request-card { padding:12px 12px 10px; } .delete-request-card .name { font-size:13px; } .delete-request-card .tour { font-size:11px; } }

/* Cashbox Responsive Cards */
.cashbox-cards { display:grid; grid-template-columns:repeat(auto-fill,minmax(230px,1fr)); gap:14px; }
.cashbox-card { 
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%); 
    border: 2px solid #e2e8f0; 
    border-radius: 14px; 
    padding: 16px; 
    display: flex; 
    flex-direction: column; 
    gap: 8px; 
    box-shadow: 0 4px 12px rgba(0,0,0,0.08); 
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.cashbox-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #6366f1, #8b5cf6);
}

.cashbox-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    border-color: #cbd5e1;
}
.cashbox-card .line1 { display:flex; justify-content:space-between; align-items:center; gap:10px; }
.cashbox-card .type { font-weight:600; font-size:14px; color:#111827; }
.cashbox-card .amount { font-weight:700; font-size:14px; }
.cashbox-card.income .amount { color:#047857; }
.cashbox-card.expense .amount { color:#dc2626; }

/* Pill styles for type indicators */
.cashbox-card .pill {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cashbox-card .pill.income {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: white;
    box-shadow: 0 2px 4px rgba(34, 197, 94, 0.3);
}

.cashbox-card .pill.expense {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    box-shadow: 0 2px 4px rgba(239, 68, 68, 0.3);
}

.cashbox-card .date { font-size:11px; font-weight:600; letter-spacing:.3px; color:#6b7280; }
.cashbox-card .meta { font-size:11px; color:#374151; line-height:1.3; }
.cashbox-card .source { font-size:10px; color:#6b7280; }
@media (max-width:860px){ .cashbox-cards { grid-template-columns:repeat(auto-fill,minmax(180px,1fr)); } }
@media (max-width:640px){ .cashbox-card { padding:12px 12px 10px; } .cashbox-card .type, .cashbox-card .amount { font-size:13px; } .cashbox-card .meta { font-size:10px; } }

@media (max-width:420px){
    .app-modal-header h2 { font-size:18px; }
    .btn { font-size:13px; padding:9px 14px; }
    .form-grid-2 input, .form-grid-2 select { font-size:13px; }
}

/* Main Container */
.main-container {

    display: grid;
    grid-template-columns: 20% 80%;
    grid-template-rows: 1fr;
    grid-template-areas: 
        "sidebar content";
    min-height: 100vh;
    height: 100vh;
    overflow: hidden;
}

/* Old navbar styles removed - functionality moved to sidebar */

/* Sidebar - Now includes navbar functionality */
.sidebar {
    grid-area: sidebar;
    background: white;
    border-right: 2px solid #e5e5e5;
    padding: 0;
    height: 100vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    position: fixed;
    width: 20%;
    left: 0;
    top: 0;
    z-index: 1000;
    box-shadow: 2px 0 5px rgba(0,0,0,0.1);
}

/* Mobile header (hidden on desktop) */
.mobile-header { display: none; position: fixed; top: 0; left: 0; right: 0; height: 56px; background: #667eea; color: #fff; z-index: 1100; align-items: center; padding: 0 12px; gap: 12px; box-shadow: 0 2px 4px rgba(0,0,0,0.1); }
.mobile-brand { font-weight: 600; }
.hamburger { width: 40px; height: 40px; display: grid; place-items: center; background: transparent; border: none; cursor: pointer; }
.hamburger span { display: block; width: 22px; height: 2px; background: #fff; margin: 3px 0; border-radius: 2px; transition: transform .2s ease; }

/* Overlay for mobile sidebar */
.sidebar-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.35); z-index: 1050; }

/* Brand section at top of sidebar */
.sidebar-brand {
    padding: 1.5rem 1.5rem;
    border-bottom: 1px solid #e5e5e5;
    background: #667eea;
    color: white;
    text-align: center;
}

.sidebar-brand h2 {
    color: white;
    font-weight: 600;
    font-size: 1.1rem;
    margin: 0;
}

/* User section */
.sidebar-user {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #e5e5e5;
    background: #f8f9fa;
    text-align: center;
}

.sidebar-user span {
    font-weight: 500;
    color: #555;
    display: block;
    margin-bottom: 0.8rem;
    font-size: 0.9rem;
}

.sidebar-user button {
    width: 100%;
}

.nav-menu {
    list-style: none;
    padding: 1rem 0;
    flex: 1;
}

.nav-menu li {
    margin: 0.25rem 0;
}

.nav-link {
    display: block;
    padding: 0.75rem 1.5rem;
    color: #666;
    text-decoration: none;
    border-left: 3px solid transparent;
    transition: all 0.3s ease;
}

.nav-link:hover {
    background: #f8f9fa;
    color: #667eea;
    border-left-color: #667eea;
}

.nav-link.active {
    background: #f0f3ff;
    color: #667eea;
    border-left-color: #667eea;
    font-weight: 500;
}

/* Main Content */
.main-content {
    grid-area: content;
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 50%, #cbd5e1 100%);
    padding: 1rem;
    overflow-y: auto;
    height: 100vh;
    width: 80%;
    margin-left: 20%;
    position: relative;
    overflow-x: hidden;
}

.content-section {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 50%, #e2e8f0 100%);
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    margin-bottom: 1rem;
    position: relative;
    display: none; /* Varsayılan olarak gizli */
    transition: all 0.3s ease;
}

.content-section:hover {
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
    transform: translateY(-1px);
}

.content-section.active {
    display: block; /* Aktif olan görünür */
}

/* Dashboard varsayılan olarak aktif */
#dashboardSection {
    display: block;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 50%, #e2e8f0 100%);
    border: 1px solid #cbd5e1;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e5e5e5;
}

.section-header h2 {
    color: #333;
    font-weight: 600;
}

/* Buttons */
.btn {
    padding: 0.6rem 1.2rem;
    border: none;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background: #667eea;
    color: white;
}

.btn-primary:hover {
    background: #5a67d8;
    transform: translateY(-1px);
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #5a6268;
}

.btn-success {
    background: #28a745;
    color: white;
}

.btn-success:hover {
    background: #218838;
}

.btn-info {
    background: #17a2b8;
    color: white;
}

.btn-info:hover {
    background: #138496;
}

.btn-danger {
    background: #dc3545;
    color: white;
}

.btn-danger:hover {
    background: #c82333;
}

.btn-warning {
    background: #ffc107;
    color: #212529;
}

.btn-warning:hover {
    background: #e0a800;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

/* Dashboard Stats */
.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.stat-card h3 {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    opacity: 0.9;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
}

/* Forms */
.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #333;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 0.9rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-help {
    font-size: 0.8rem;
    color: #666;
    margin-top: 0.25rem;
}

/* Filters */
.filters {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.filters input,
.filters select {
    padding: 0.6rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 0.9rem;
}

/* Tables */
.table-container {
    overflow-x: auto;
}

.table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
    background: transparent;
}

.table th,
.table td {
    padding: 14px 16px;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.table th {
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
    font-weight: 600;
    color: #ffffff;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 3px solid #075985;
    position: sticky;
    top: 0;
    z-index: 1;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.table tbody tr {
    background: rgba(255, 255, 255, 0.9);
    transition: all 0.3s ease;
}

.table tbody tr:hover {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 50%, #fed7aa 100%);
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.2);
    border-left: 4px solid #f59e0b;
}

.table tbody tr:nth-child(even) {
    background: rgba(240, 249, 255, 0.6);
}

.table tbody tr:nth-child(even):hover {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 50%, #fed7aa 100%);
}

.table-actions {
    display: flex;
    gap: 0.5rem;
}

.table-actions .btn {
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
}

/* Cards */
.card {
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 1rem;
}

.card-header {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #e5e5e5;
    font-weight: 600;
}

.card-body {
    padding: 1.5rem;
}

/* Universal Card Styling - All card types get modern gradient backgrounds (excluding stat-card) */
.card,
.personnel-card,
.car-card,
.office-expense-card,
.delete-request-card,
.cashbox-card,
.user-card,
.admin-card,
.settings-card,
.car-card-modern {
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 50%, #f1f5f9 100%) !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08) !important;
    transition: all 0.3s ease !important;
}

/* Hover effects for all cards (excluding stat-card) */
.card:hover,
.personnel-card:hover,
.car-card:hover,
.office-expense-card:hover,
.delete-request-card:hover,
.cashbox-card:hover,
.user-card:hover,
.admin-card:hover,
.settings-card:hover,
.car-card-modern:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 16px rgba(0,0,0,0.12) !important;
}

/* Special status cards */
.stat-card.success {
    background: linear-gradient(135deg, #dcfce7 0%, #f0fdf4 50%, #ecfdf5 100%) !important;
    border-color: #22c55e !important;
    color: #15803d !important;
}

.stat-card.danger {
    background: linear-gradient(135deg, #fee2e2 0%, #fef2f2 50%, #fecaca 100%) !important;
    border-color: #ef4444 !important;
    color: #dc2626 !important;
}

.stat-card.warning {
    background: linear-gradient(135deg, #fef3c7 0%, #fffbeb 50%, #fde68a 100%) !important;
    border-color: #f59e0b !important;
    color: #d97706 !important;
}

.stat-card.positive {
    background: linear-gradient(135deg, #dcfce7 0%, #f0fdf4 50%, #ecfdf5 100%) !important;
    border-color: #22c55e !important;
    color: #15803d !important;
}

.stat-card.negative {
    background: linear-gradient(135deg, #fee2e2 0%, #fef2f2 50%, #fecaca 100%) !important;
    border-color: #ef4444 !important;
    color: #dc2626 !important;
}

/* Cashbox card types */
.cashbox-card.income {
    background: linear-gradient(135deg, #dcfce7 0%, #f0fdf4 50%, #ecfdf5 100%) !important;
    border-color: #22c55e !important;
}

.cashbox-card.income::before {
    background: linear-gradient(90deg, #22c55e, #16a34a) !important;
}

.cashbox-card.expense {
    background: linear-gradient(135deg, #fee2e2 0%, #fef2f2 50%, #fecaca 100%) !important;
    border-color: #ef4444 !important;
}

.cashbox-card.expense::before {
    background: linear-gradient(90deg, #ef4444, #dc2626) !important;
}


/* Financial data boxes in tour cards */
.financial-data-box {
    flex: 1;
    background: linear-gradient(135deg, #f1f5f9 0%, #f8fafc 100%) !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 8px;
    padding: 10px;
    text-align: center;
    transition: all 0.2s ease;
}

.financial-data-box:hover {
    background: linear-gradient(135deg, #e2e8f0 0%, #f1f5f9 100%) !important;
    transform: scale(1.02);
}

/* Passenger Cards - Similar to tour cards */
.passenger-card {
    background: linear-gradient(135deg, #dbeafe 0%, #eff6ff 50%, #f0f9ff 100%) !important;
    border: 1px solid #2563eb !important;
    border-radius: 12px !important;
    padding: 16px !important;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.15) !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
    transition: all 0.3s ease !important;
}

.passenger-card:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.25) !important;
    border-color: #1d4ed8 !important;
    background: linear-gradient(135deg, #c7d2fe 0%, #dbeafe 50%, #eff6ff 100%) !important;
}

/* Admin Page Layout */
.admin-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

@media (max-width: 980px) {
    .admin-grid { grid-template-columns: 1fr; }
}

.form-grid {
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:1rem;
}
@media (max-width:640px){
  .form-grid { grid-template-columns:1fr; }
}

/* Admin Responsive */
.admin-grid { display:grid; grid-template-columns:1fr 1fr; gap:24px; align-items:start; }
@media (max-width:1100px){ .admin-grid { gap:18px; } }
@media (max-width:900px){ .admin-grid { grid-template-columns:1fr; } }
.admin-card { background:#fff; border:1px solid #e5e7eb; border-radius:16px; padding:18px 20px 20px; display:flex; flex-direction:column; gap:18px; box-shadow:0 2px 4px rgba(0,0,0,.06); }
.admin-card-header { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:12px; padding-bottom:10px; border-bottom:1px solid #f1f5f9; }
.admin-card-header h3 { margin:0; font-size:18px; font-weight:600; color:#111827; display:flex; align-items:center; gap:6px; }
@media (max-width:560px){ .admin-card { padding:14px 14px 16px; border-radius:14px; } .admin-card-header h3 { font-size:16px; } }
/* Tighter card on very small */
@media (max-width:420px){ .admin-card { padding:12px 12px 14px; } }
/* Worker form layout */
.admin-worker-form { display:grid; grid-template-columns:repeat(auto-fill,minmax(200px,1fr)); gap:14px 16px; }
@media (max-width:640px){ .admin-worker-form { grid-template-columns:1fr 1fr; } }
@media (max-width:480px){ .admin-worker-form { grid-template-columns:1fr; } }
.admin-worker-actions { display:flex; justify-content:flex-end; grid-column:1/-1; }
/* Types dual tables */
.admin-types-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(260px,1fr)); gap:16px; align-items:start; }
@media (max-width:560px){ .admin-types-grid { grid-template-columns:1fr; } }
/* Table responsiveness inside admin cards */
.table-responsive { 
    width: 100%; 
    overflow-x: auto; 
    -webkit-overflow-scrolling: touch;
    background: linear-gradient(135deg, #e0f2fe 0%, #ffffff 30%, #f0f9ff 100%);
    border: 2px solid #0284c7;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(2, 132, 199, 0.15);
    margin: 16px 0;
    transition: all 0.3s ease;
}

.table-responsive:hover {
    box-shadow: 0 10px 30px rgba(2, 132, 199, 0.25);
    transform: translateY(-2px);
    border-color: #0369a1;
}

.table-responsive table { 
    min-width: 520px;
    margin: 0;
    background: transparent;
    border: none;
}
/* Compact inputs inside type tables */
.admin-types-grid table input { width:100%; padding:6px 8px; font-size:13px; border:1px solid #d1d5db; border-radius:6px; }
/* Narrow inputs so rows don't overflow horizontally */
.type-name-input { max-width:190px; }
@media (max-width:640px){ .type-name-input { max-width:160px; font-size:12px; } }
@media (max-width:480px){ .type-name-input { max-width:140px; } }
@media (max-width:380px){ .type-name-input { max-width:120px; } }
/* Worker minimal table (no headers) */
.table-workers { width:100%; border-collapse:collapse; }
.table-workers td { padding:10px 12px; border-bottom:1px solid #e5e7eb; font-size:14px; }
.table-workers tr:last-child td { border-bottom:none; }
@media (max-width:560px){ .table-workers td { padding:8px 10px; font-size:13px; } }

/* Admin types add form responsive */
.admin-types-form { display:grid; grid-template-columns:repeat(auto-fit,minmax(240px,1fr)); gap:14px 16px; }
@media (max-width:640px){ .admin-types-form { grid-template-columns:1fr; } }
.admin-types-form .inline-input { display:flex; gap:6px; }
@media (max-width:480px){ .admin-types-form .inline-input { flex-direction:column; } .admin-types-form .inline-input button { width:100%; } }

/* Ensure admin cards always fit inside dynamic section on small screens */
@media (max-width:760px){
    #dynamicSection .admin-grid { display:flex; flex-direction:column; gap:16px; }
    #dynamicSection .admin-card { width:100%; max-width:100%; box-sizing:border-box; overflow:hidden; }
    #dynamicSection .admin-card .table-responsive { width:100%; overflow-x:auto; }
    #dynamicSection .admin-card .table-responsive table { width:100%; min-width:0; }
    #dynamicSection .admin-types-grid { display:flex; flex-direction:column; gap:14px; }
    #dynamicSection .admin-types-grid .table-responsive { overflow-x:auto; }
    /* Inputs shrink slightly to prevent forcing width */
    #dynamicSection .type-name-input { max-width:100%; width:100%; }
}
@media (max-width:480px){
    #dynamicSection .admin-card { padding:12px 12px 14px; }
    #dynamicSection .admin-card-header h3 { font-size:15px; }
    #dynamicSection .admin-worker-form { grid-template-columns:1fr; }
    #dynamicSection .table-workers td { font-size:13px; }
}
/* Minimal spacing adjust on very small */
@media (max-width:400px){ .admin-worker-form label { font-size:12px; } }

/* Extra small devices refinements */
@media (max-width: 520px) {
    .content-section { padding: 12px 12px 16px; }
    .section-header { flex-direction: column; align-items: flex-start; gap: 10px; }
    .section-header h2 { font-size: 18px; }
    .btn { font-size: 13px; padding: 8px 14px; }
    .personnel-cards, .car-cards, .office-expense-cards, .stop-cards, .delete-request-cards, .cashbox-cards { grid-template-columns: 1fr 1fr; }
    .stop-cards { grid-template-columns: 1fr 1fr; }
    .delete-request-cards, .cashbox-cards { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 430px) {
    .personnel-cards, .car-cards, .office-expense-cards, .stop-cards, .delete-request-cards, .cashbox-cards { grid-template-columns: 1fr; }
    .content-section { padding: 10px 10px 14px; }
}

/* Responsive table wrapper forcing horizontal scroll inside, not viewport */
.table-responsive { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table-responsive table { min-width: 640px; }

/* Prevent card content overflow */
.personnel-card, .car-card, .office-expense-card, .stop-card, .delete-request-card, .cashbox-card { word-wrap: break-word; overflow-wrap: break-word; }

/* Utility: clamp long names */
.truncate-1 { display: -webkit-box; -webkit-line-clamp: 1; line-clamp:1; -webkit-box-orient: vertical; overflow: hidden; }
.truncate-2 { display: -webkit-box; -webkit-line-clamp: 2; line-clamp:2; -webkit-box-orient: vertical; overflow: hidden; }

@media (max-width: 640px) {
    .form-grid { grid-template-columns: 1fr; }
}

.inline-input { display: flex; gap: .5rem; }
.inline-input input { flex: 1; }

/* Toggle switch */
.switch { position: relative; display: inline-block; width: 46px; height: 24px; }
.switch input { opacity: 0; width: 0; height: 0; }
.slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background-color: #ccc; transition: .3s; border-radius: 34px; }
.slider:before { position: absolute; content: ""; height: 18px; width: 18px; left: 3px; bottom: 3px; background-color: white; transition: .3s; border-radius: 50%; }
.switch input:checked + .slider { background-color: #28a745; }
.switch input:checked + .slider:before { transform: translateX(22px); }

/* Modals */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.modal {
    background: white;
    border-radius: 8px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-content {
    background: white;
    border-radius: 8px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
}

.large-modal {
    max-width: 800px;
}

.modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid #e5e5e5;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #333;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #666;
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid #e5e5e5;
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
}

/* Loading Spinner */
.loading-spinner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255,255,255,0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3000;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Toast Messages */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 3000;
}

.toast {
    background: white;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    margin-bottom: 1rem;
    border-left: 4px solid #667eea;
    animation: slideIn 0.3s ease;
}

.toast.success {
    border-left-color: #28a745;
}

.toast.error {
    border-left-color: #dc3545;
}

.toast.warning {
    border-left-color: #ffc107;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Error Messages */
.error-message {
    background: #f8d7da;
    color: #721c24;
    padding: 0.75rem;
    border-radius: 6px;
    margin-top: 1rem;
    border: 1px solid #f5c6cb;
}

.success-message {
    background: #d4edda;
    color: #155724;
    padding: 0.75rem;
    border-radius: 6px;
    margin-top: 1rem;
    border: 1px solid #c3e6cb;
}

/* Badges */
.badge {
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
}

.badge-primary {
    background: #667eea;
    color: white;
}

.badge-success {
    background: #28a745;
    color: white;
}

.badge-warning {
    background: #ffc107;
    color: #212529;
}

.badge-danger {
    background: #dc3545;
    color: white;
}

.badge-info {
    background: #17a2b8;
    color: white;
}

.badge-secondary {
    background: #6c757d;
    color: white;
}

/* Role-based visibility */
.admin-only {
    display: none !important;
}

body.admin .admin-only {
    display: block !important;
}

body.admin .nav-menu .admin-only {
    display: list-item !important;
}

body.admin .dashboard-stats .admin-only {
    display: block !important;
}

/* Office Staff: Can see most items but NO financial data */
body.office_staff .admin-only {
    display: none !important;
}

body.office_staff .nav-menu li:not(.admin-only) {
    display: list-item !important;
}

body.office_staff .dashboard-stats .stat-card:not(.admin-only) {
    display: block !important;
}

/* Tour Guide: ONLY passengers and change-password pages */
body.tour_guide .admin-only {
    display: none !important;
}

body.tour_guide .nav-menu .nav-item[data-page="passengers"],
body.tour_guide .nav-menu .nav-item[data-page="change-password"] {
    display: list-item !important;
}

body.tour_guide .nav-menu .nav-item {
    display: none;
}

body.tour_guide .dashboard-stats .stat-card:not(.admin-only) {
    display: block !important;
}

/* Hide financial columns/buttons for office_staff */
.financial-data,
.financial-button {
    display: block;
}

body.office_staff .financial-data,
body.office_staff .financial-button {
    display: none !important;
}

/* Worker-only navigation: deprecated but kept for backward compatibility */
body.worker .nav-menu .nav-item { display: none; }
body.worker .nav-menu .nav-item[data-page="passengers"] { display: inline-block; }
body.worker .nav-menu .nav-item[data-page="dashboard"] { display: none; }

/* Responsive Design */
@media (max-width: 768px) {
    .main-container {
        grid-template-columns: 1fr;
        grid-template-areas: 
            "navbar"
            "content";
    }

    /* Show mobile header */
    .mobile-header { display: flex; }

    /* Sidebar becomes off-canvas */
    .sidebar {
        position: fixed;
        top: 56px; /* below mobile header */
        bottom: 0;
        left: 0;
        height: auto;
        width: 270px;
        transform: translateX(-100%);
        transition: transform .25s ease;
        display: block;
        z-index: 1200;
    }
    .sidebar.show { transform: translateX(0); }
    .sidebar-overlay.show { display: block; }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .dashboard-stats {
        grid-template-columns: 1fr;
    }
    
    /* Keep default filters stacked on mobile */
    .filters { flex-direction: column; }
    /* Tours page filters: align in one row on mobile */
    #tourFilters { display: flex; flex-direction: row; align-items: center; flex-wrap: wrap; gap: 8px; }
    #tourFilters input[type="text"],
    #tourFilters input[type="date"] { flex: 1 1 140px; min-width: 120px; }
    #tourFilters .btn-group { display: flex; gap: 8px; width: 100%; }
    #tourFilters #tourFilterBtn,
    #tourFilters #tourClearBtn { flex: 1 1 0; min-width: 140px; }
    

/* Equal width buttons for Tours filters on larger screens too */
#tourFilters .btn-group { display: flex; gap: 8px; }
#tourFilters #tourFilterBtn,
#tourFilters #tourClearBtn { min-width: 140px; }
#tourFilters.tour-filters-grid { padding: 8px; display: grid !important; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; align-items: stretch; }
#tourFilters.tour-filters-grid .tour-filter-field { width: 100%; padding: 8px; border: 1px solid #ddd; border-radius: 6px; font-size: 14px; box-sizing: border-box; }
#tourFilters.tour-filters-grid button.tour-filter-field { border: none; cursor: pointer; }
#tourFilters.tour-filters-grid button#tourFilterBtn,
#tourFilters.tour-filters-grid button#tourClearBtn { min-width: unset; }

@media (max-width: 768px) {
    #tourFilters.tour-filters-grid { grid-template-columns: repeat(2, 1fr); }
    /* Force equal height */
    #tourFilters.tour-filters-grid .tour-filter-field { height: 42px; }
}

@media (max-width: 480px) {
    #tourFilters.tour-filters-grid { grid-template-columns: 1fr 1fr; }
}
#tourFilters #tourFilterBtn { min-width: 148px; }
    .modal {
        width: 95%;
        margin: 1rem;
    }
    
    .section-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }

    /* Main content full-width on mobile */
    .main-content {
        width: 100%;
        margin-left: 0;
        padding-top: 56px; /* account for mobile header */
        height: calc(100vh - 56px);
    }
}

/* Print Styles */
@media print {
    .navbar,
    .sidebar,
    .btn,
    .modal-overlay {
        display: none !important;
    }
    
    .main-container {
        grid-template-columns: 1fr;
        grid-template-areas: "content";
    }
    
    .main-content {
        padding: 0;
        background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 50%, #cbd5e1 100%);
    }
}

/* Empty State Styles */
.empty-state {
    text-align: center;
    padding: 3rem 2rem;
    color: #6c757d;
}

.empty-state i {
    color: #dee2e6;
    margin-bottom: 1rem;
}

.empty-state h5 {
    color: #495057;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.empty-state p {
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Settings / Change Password Page */
.settings-container {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    gap: 24px;
    padding: 24px;
    align-items: start;
    background: linear-gradient(135deg, #e0f2fe 0%, #f0f9ff 50%, #e0e7ff 100%);
    min-height: 80vh;
    border-radius: 16px;
    margin: 16px;
}

.settings-card,
.settings-info-card {
    background: linear-gradient(135deg, #e0f2fe 0%, #f0f9ff 50%, #dbeafe 100%);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 6px 20px rgba(2, 132, 199, 0.15);
    border: 2px solid #93c5fd;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.settings-card::before,
.settings-info-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6);
}

.settings-info-card {
    background: linear-gradient(135deg, #ecfdf5 0%, #f0fdf4 50%, #dcfce7 100%);
    border-color: #86efac;
}

.settings-info-card::before {
    background: linear-gradient(90deg, #10b981, #059669);
}

.settings-card:hover,
.settings-info-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(2, 132, 199, 0.25);
    border-color: #60a5fa;
}

.settings-info-card:hover {
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.25);
    border-color: #4ade80;
}

.settings-card-header {
    margin-bottom: 18px;
}

.settings-card-header h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: #1e293b;
}

.settings-card-subtitle {
    color: #475569;
    font-size: 0.95rem;
    line-height: 1.5;
}

.settings-form {
    display: grid;
    gap: 18px;
}

.settings-field label {
    display: block;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 8px;
}

.password-input {
    display: flex;
    align-items: stretch;
    gap: 10px;
    background: linear-gradient(135deg, #dbeafe 0%, #f0f9ff 100%);
    border: 2px solid #93c5fd;
    border-radius: 12px;
    padding: 4px;
    transition: all 0.3s ease;
}

.password-input:focus-within {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    transform: scale(1.01);
    background: linear-gradient(135deg, #bfdbfe 0%, #dbeafe 100%);
}

.password-input input {
    flex: 1;
    padding: 12px 14px;
    border: none;
    background: transparent;
    font-size: 15px;
    transition: all 0.2s ease;
}

.password-input input:focus {
    outline: none;
}

.toggle-password {
    border: none;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
    border-radius: 8px;
    padding: 8px 14px;
    font-weight: 600;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.toggle-password:hover {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    transform: translateY(-1px);
}

.toggle-password.is-visible {
    background: #bfdbfe;
    border-color: #60a5fa;
}

.settings-hint {
    font-size: 0.85rem;
    color: #64748b;
    margin-top: 6px;
}

.settings-actions {
    display: flex;
    justify-content: flex-end;
}

.settings-submit {
    min-width: 190px;
    justify-content: center;
    background: linear-gradient(135deg, #059669, #047857);
    color: white;
    border: none;
    padding: 14px 24px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.3);
    transition: all 0.3s ease;
}

.settings-submit:hover {
    background: linear-gradient(135deg, #047857, #065f46);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(5, 150, 105, 0.4);
}

.settings-error {
    background: linear-gradient(135deg, #fee2e2, #fecaca);
    border: 2px solid #f87171;
    color: #dc2626;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 0.92rem;
    font-weight: 500;
}

.settings-info-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: #059669;
}

.settings-info-card ul {
    list-style: none;
    display: grid;
    gap: 8px;
    margin-bottom: 18px;
}

.settings-info-card li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
    color: #334155;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 8px;
    margin-bottom: 4px;
}

.settings-info-card li strong {
    font-weight: 600;
    color: #0f172a;
}

.tip-box {
    background: linear-gradient(135deg, #dcfce7, #bbf7d0);
    border: 2px solid #86efac;
    border-radius: 12px;
    padding: 16px;
    color: #065f46;
}

.tip-box h4 {
    margin-bottom: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    color: #047857;
}

.tip-box p {
    font-size: 0.85rem;
    line-height: 1.6;
}

@media (max-width: 1024px) {
    .settings-container {
        grid-template-columns: 1fr;
    }

    .settings-info-card {
        position: relative;
        padding: 20px;
    }
}

@media (max-width: 640px) {
    .settings-container {
        padding: 16px;
        gap: 16px;
    }

    .settings-card,
    .settings-info-card {
        padding: 18px;
    }

    .password-input {
        flex-direction: column;
        align-items: stretch;
    }

    .toggle-password {
        width: 100%;
        text-align: center;
        padding: 10px 12px;
    }

    .settings-actions {
        justify-content: stretch;
    }

    .settings-submit {
        width: 100%;
    }
}

/* Passenger Card Responsive Layout */
.passenger-card {
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 12px;
    margin: 6px 0;
    display: flex;
    flex-direction: column;
}

.passenger-info {
    font-size: 13px;
    color: #111827;
    margin-bottom: 12px;
    width: 100%;
    line-height: 1.6;
}

.passenger-info > div {
    display: inline;
    margin-right: 12px;
}

.passenger-info > div:not(:last-child)::after {
    content: " • ";
    color: #9ca3af;
    margin-left: 12px;
}

.passenger-actions {
    display: grid;
    gap: 6px;
    width: 100%;
}

/* Tüm butonlarda yazıları ortala */
.passenger-actions .btn {
    text-align: center;
    justify-content: center;
    display: flex;
    align-items: center;
}

/* Desktop: Actions below info, equal width buttons */
@media (min-width: 769px) {
    .passenger-actions {
        grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
    }
}

/* Mobile: All buttons stacked vertically with minimal width */
@media (max-width: 768px) {
    .passenger-card {
        display: grid;
        grid-template-columns: 1fr auto;
        gap: 12px;
        align-items: start;
        flex-direction: unset;
    }
    
    .passenger-info {
        margin-bottom: 0;
        width: auto;
    }
    
    .passenger-info > div {
        display: block;
        margin-right: 0;
    }
    
    .passenger-info > div:not(:last-child)::after {
        content: none;
    }
    
    .passenger-actions {
        grid-template-columns: 1fr;
        width: auto;
        min-width: 120px;
        max-width: 140px;
    }
    
    .passenger-actions .btn {
        width: 100%;
        white-space: nowrap;
        padding: 6px 8px;
        font-size: 12px;
    }
}

/* ========== MODERN CAR CARDS ========== */
.cars-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    padding: 4px;
}

.car-card-modern {
    background: linear-gradient(135deg, #f0fdf4 0%, #ffffff 50%, #ecfdf5 100%);
    border: 1px solid #22c55e;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(34, 197, 94, 0.12);
    overflow: hidden;
    transition: all 0.3s ease;
}

.car-card-modern:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(34, 197, 94, 0.20);
    border-color: #16a34a;
}

.car-card-header {
    padding: 16px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.car-plate {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 1px;
}

.badge {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.badge-rental {
    background: #fef3c7;
    color: #92400e;
}

.badge-own {
    background: #d1fae5;
    color: #065f46;
}

.car-card-body {
    padding: 16px;
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
}

.car-model {
    font-size: 15px;
    color: #374151;
    margin-bottom: 12px;
    font-weight: 500;
}

.car-info-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.car-info-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.car-info-item span {
    font-size: 12px;
    color: #6b7280;
}

.car-info-item strong {
    font-size: 16px;
    color: #111827;
}

.car-card-footer {
    padding: 12px 16px;
    border-top: 1px solid #e5e7eb;
    background: linear-gradient(135deg, #f1f5f9 0%, #f8fafc 100%);
    display: flex;
    gap: 8px;
}

.car-detail-modal {
    max-width: 500px;
}

.car-detail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 2px solid #e5e7eb;
}

.car-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 20px;
}

.detail-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.detail-item label {
    font-size: 12px;
    color: #6b7280;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.detail-item div {
    font-size: 15px;
    color: #111827;
    font-weight: 500;
}

.car-detail-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

.form-modern {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 13px;
    font-weight: 600;
    color: #374151;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    user-select: none;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.form-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 8px;
}

@media (max-width: 768px) {
    .cars-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 16px;
    }
    
    .car-plate {
        font-size: 18px;
    }
    
    .car-detail-grid {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .cars-grid {
        grid-template-columns: 1fr;
    }
    
    .car-card-footer {
        flex-direction: column;
    }
}

/* Tour Card Status Colors */
.tour-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.04);
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: all 0.3s ease;
}

.tour-card.planned {
    background: linear-gradient(135deg, #e0f2fe 0%, #f0f9ff 100%);
    border-color: #0284c7;
}

.tour-card.active {
    background: linear-gradient(135deg, #dcfce7 0%, #f0fdf4 100%);
    border-color: #059669;
}

.tour-card.completed {
    background: linear-gradient(135deg, #f1f5f9 0%, #f8fafc 100%);
    border-color: #64748b;
}

/* Users Table Styling */
.users-table-wrapper {
    background: linear-gradient(135deg, #f0f9ff 0%, #ffffff 30%, #e0f2fe 100%);
    border: 2px solid #0284c7;
    border-radius: 16px;
    box-shadow: 0 6px 20px rgba(2, 132, 199, 0.15);
    margin: 16px 0;
    padding: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.users-table-wrapper:hover {
    box-shadow: 0 10px 30px rgba(2, 132, 199, 0.25);
    transform: translateY(-2px);
    border-color: #0369a1;
}

.users-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
    background: transparent;
}

.users-table th {
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
    color: white;
    padding: 16px 14px;
    text-align: left;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 3px solid #075985;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.users-table td {
    padding: 14px;
    border-bottom: 1px solid #e2e8f0;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.9);
}

.users-table tbody tr:hover {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 50%, #fed7aa 100%);
    transform: scale(1.01);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.2);
}

.users-table tbody tr:nth-child(even) td {
    background: rgba(240, 249, 255, 0.6);
}

.users-table tbody tr:nth-child(even):hover {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 50%, #fed7aa 100%);
}

/* User Role Badges */
.user-role-badge {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-block;
}

.user-role-admin {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    color: white;
    box-shadow: 0 2px 4px rgba(220, 38, 38, 0.3);
}

.user-role-office {
    background: linear-gradient(135deg, #0284c7, #0369a1);
    color: white;
    box-shadow: 0 2px 4px rgba(2, 132, 199, 0.3);
}

.user-role-guide {
    background: linear-gradient(135deg, #059669, #047857);
    color: white;
    box-shadow: 0 2px 4px rgba(5, 150, 105, 0.3);
}

/* User Status Badges */
.user-status-badge {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-block;
}

.user-status-active {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: white;
    box-shadow: 0 2px 4px rgba(34, 197, 94, 0.3);
}

.user-status-inactive {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    box-shadow: 0 2px 4px rgba(239, 68, 68, 0.3);
}

/* User Actions */
.user-actions {
    display: flex;
    gap: 6px;
    justify-content: flex-end;
}

.user-actions .btn {
    padding: 6px 12px;
    font-size: 11px;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.user-actions .btn:hover {
    transform: translateY(-1px);
}

/* Mobile User Cards */
.users-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
    margin: 16px 0;
}

.user-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 50%, #f1f5f9 100%);
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    padding: 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.user-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6);
}

.user-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    border-color: #cbd5e1;
}

.user-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
    gap: 12px;
}

.user-card-name {
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 4px;
}

.user-card-email {
    font-size: 13px;
    color: #64748b;
    word-break: break-word;
}

.user-card-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 16px;
}

.user-card-info-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
}

.user-card-info-item span:first-child {
    font-size: 14px;
    width: 20px;
    text-align: center;
}

.user-card-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.user-card-actions .btn {
    padding: 8px 12px;
    font-size: 12px;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.user-card-actions .btn:hover {
    transform: translateY(-1px);
}

/* Role-based card colors */
.user-card[data-role="admin"] {
    background: linear-gradient(135deg, #fef2f2 0%, #ffffff 50%, #fee2e2 100%);
    border-color: #ef4444;
}

.user-card[data-role="admin"]::before {
    background: linear-gradient(90deg, #ef4444, #dc2626);
}

.user-card[data-role="office_staff"] {
    background: linear-gradient(135deg, #eff6ff 0%, #ffffff 50%, #dbeafe 100%);
    border-color: #3b82f6;
}

.user-card[data-role="office_staff"]::before {
    background: linear-gradient(90deg, #3b82f6, #2563eb);
}

.user-card[data-role="tour_guide"] {
    background: linear-gradient(135deg, #ecfdf5 0%, #ffffff 50%, #dcfce7 100%);
    border-color: #10b981;
}

.user-card[data-role="tour_guide"]::before {
    background: linear-gradient(90deg, #10b981, #059669);
}

@media (max-width: 640px) {
    .users-cards {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .user-card {
        padding: 14px;
    }
    
    .user-card-actions {
        flex-direction: column;
    }
    
    .user-card-actions .btn {
        justify-content: center;
    }
}

/* Dynamic Section and All Sections Background */
#dynamicSection {
    background: transparent !important;
}

/* All section backgrounds */
[id$="Section"] {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 50%, #e2e8f0 100%) !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 12px !important;
    padding: 1.5rem !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08) !important;
    margin-bottom: 1rem !important;
    transition: all 0.3s ease !important;
}

[id$="Section"]:hover {
    box-shadow: 0 6px 20px rgba(0,0,0,0.12) !important;
    transform: translateY(-1px) !important;
}

/* Tour Row Status Colors */
.tour-row-active {
    background: linear-gradient(135deg, #dcfce7 0%, #f0fdf4 50%, #ecfdf5 100%) !important;
    border-left: 4px solid #22c55e !important;
}
.tour-row-active:hover {
    background: linear-gradient(135deg, #bbf7d0 0%, #dcfce7 50%, #f0fdf4 100%) !important;
}

.tour-row-planning {
    background: linear-gradient(135deg, #e0f2fe 0%, #f0f9ff 50%, #e0f2fe 100%) !important;
    border-left: 4px solid #0ea5e9 !important;
}
.tour-row-planning:hover {
    background: linear-gradient(135deg, #bae6fd 0%, #e0f2fe 50%, #f0f9ff 100%) !important;
}

.tour-row-completed {
    background: linear-gradient(135deg, #f3f4f6 0%, #f9fafb 50%, #f3f4f6 100%) !important;
    border-left: 4px solid #6b7280 !important;
    opacity: 0.85;
}
.tour-row-completed:hover {
    background: linear-gradient(135deg, #e5e7eb 0%, #f3f4f6 50%, #f9fafb 100%) !important;
}

.tour-row-cancelled {
    background: linear-gradient(135deg, #fee2e2 0%, #fef2f2 50%, #fee2e2 100%) !important;
    border-left: 4px solid #ef4444 !important;
    opacity: 0.85;
}
.tour-row-cancelled:hover {
    background: linear-gradient(135deg, #fecaca 0%, #fee2e2 50%, #fef2f2 100%) !important;
}
