body.loading #loginScreen,
body.loading #appContainer {
    display: none;
}
:root {
            --primary: #3498db;
            --secondary: #2ecc71;
            --accent: #e74c3c;
            --warning: #f39c12;
            --dark: #2c3e50;
            --light: #ecf0f1;
            --gray: #95a5a6;
            --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        }
        
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        }
        
        body {
            background-color: #f5f7fa;
            color: var(--dark);
            line-height: 1.6;
        }
        
        .login-container {
            display: flex;
            justify-content: center;
            align-items: center;
            height: 100vh;
            background: linear-gradient(135deg, #3498db, #2c3e50);
        }
        
        .login-form {
            background: white;
            padding: 30px;
            border-radius: 10px;
            box-shadow: var(--shadow);
            width: 90%;
            max-width: 400px;
        }
        
        .login-form h2 {
            text-align: center;
            margin-bottom: 20px;
            color: var(--dark);
        }
        
        .container {
            display: flex;
            min-height: 100vh;
            align-items: flex-start;
        }
        
        /* Sidebar Styles */
        .sidebar {
            width: 250px;
            background: var(--dark);
            color: white;
            transition: all 0.3s;
            position: sticky;
            top: 0;
            height: 100vh;
            overflow-y: auto;
        }
        
        .logo {
            text-align: center;
            padding: 20px;
            margin-bottom: 20px;
        }
        
        .logo h1 {
            font-size: 24px;
            color: white;
        }
        
        .logo span {
            color: var(--secondary);
        }
        
        .nav-links {
            list-style: none;
        }
        
        .nav-links li {
            padding: 15px 20px;
            border-left: 4px solid transparent;
            cursor: pointer;
        }
        
        .nav-links li:hover {
            background: #34495e;
            border-left: 4px solid var(--secondary);
        }
        
        .nav-links li.active {
            background: #34495e;
            border-left: 4px solid var(--primary);
        }
        
        .nav-links a {
            color: white;
            text-decoration: none;
            display: flex;
            align-items: center;
            gap: 15px;
        }
        
        /* Main Content Styles */
        .main-content {
            flex: 1;
            padding: 20px;
            height: 100vh;
            overflow-y: auto;
        }
        
        .header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 30px;
            padding-bottom: 15px;
            border-bottom: 1px solid #ddd;
        }
        
        .header h2 {
            font-weight: 600;
            color: var(--dark);
        }
        
        .user-info {
            display: flex;
            align-items: center;
            gap: 10px;
        }
        
        .user-info img {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            object-fit: cover;
        }
        
        /* Dashboard Cards */
        .dashboard-cards {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
            gap: 20px;
            margin-bottom: 30px;
        }
        
        .card {
            background: white;
            border-radius: 10px;
            padding: 20px;
            box-shadow: var(--shadow);
        }
        
        .stat-card {
            display: flex;
            align-items: center;
            gap: 15px;
        }
        
        .stat-icon {
            width: 60px;
            height: 60px;
            border-radius: 10px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 24px;
        }
        
        .bookings {
            background: #ffeaa7;
            color: #d35400;
        }
        
        .revenue {
            background: #d1e7dd;
            color: #0f5132;
        }
        
        .expenses {
            background: #f8d7da;
            color: #721c24;
        }
        
        .profit {
            background: #cfe2ff;
            color: #084298;
        }
        
        .stat-info h3 {
            font-size: 24px;
            margin-bottom: 5px;
        }
        
        .stat-info p {
            color: var(--gray);
            font-size: 14px;
        }
        
        /* Content Sections */
        .content-section {
            margin-bottom: 30px;
            display: none;
        }
        
        .content-section.active {
            display: block;
        }
        
        .section-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 20px;
        }
        
        .section-header h3 {
            font-weight: 600;
        }
        
        .btn {
            padding: 10px 15px;
            border-radius: 5px;
            border: none;
            cursor: pointer;
            font-weight: 500;
            transition: all 0.3s;
        }
        
        .btn-primary {
            background: var(--primary);
            color: white;
        }
        
        .btn-primary:hover {
            background: #2980b9;
        }
        
        .btn-success {
            background: var(--secondary);
            color: white;
        }
        
        .btn-success:hover {
            background: #27ae60;
        }
        
        .btn-warning {
            background: var(--warning);
            color: white;
        }
        
        .btn-warning:hover {
            background: #e67e22;
        }
        
        .btn-danger {
            background: var(--accent);
            color: white;
        }
        
        .btn-danger:hover {
            background: #c0392b;
        }
        
        .btn-sm {
            padding: 5px 10px;
            font-size: 12px;
        }
        
        /* Tables */
        .data-table {
            width: 100%;
            border-collapse: collapse;
            background: white;
            border-radius: 10px;
            overflow: hidden;
            box-shadow: var(--shadow);
        }
        
        .data-table th, .data-table td {
            padding: 15px;
            text-align: left;
            border-bottom: 1px solid #ddd;
        }
        
        .data-table th {
            background: #f8f9fa;
            font-weight: 600;
        }
        
        .data-table tr:hover {
            background: #f8f9fa;
        }
        
        .status {
            padding: 5px 10px;
            border-radius: 20px;
            font-size: 12px;
            font-weight: 500;
            text-transform: capitalize;
        }
        
        .confirmed, .available {
            background: #d1e7dd;
            color: #0f5132;
        }
        
        .pending {
            background: #fff3cd;
            color: #856404;
        }
        
        .cancelled, .maintenance {
            background: #f8d7da;
            color: #721c24;
        }

        .enroute, .in-use {
            background: #cfe2ff;
            color: #084298;
        }
        
        /* Forms */
        .form-container {
            background: white;
            padding: 20px;
            border-radius: 10px;
            box-shadow: var(--shadow);
            margin-bottom: 20px;
            display: none;
        }
        
        .form-container.active {
            display: block;
        }
        
        .form-group {
            margin-bottom: 20px;
        }
        
        .form-group label {
            display: block;
            margin-bottom: 8px;
            font-weight: 500;
        }
        
        .form-control {
            width: 100%;
            padding: 12px;
            border: 1px solid #ddd;
            border-radius: 5px;
            font-size: 16px;
        }
        
        /* Modal */
        .modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.5);
            justify-content: center;
            align-items: center;
            z-index: 1000;
            padding: 20px;
        }
        
        .modal.active {
            display: flex;
        }
        
        .modal-content {
            background: white;
            padding: 30px;
            border-radius: 10px;
            width: 90%;
            max-width: 600px;
            box-shadow: var(--shadow);
            position: relative;
            max-height: 90vh;
            overflow-y: auto;
        }
        
        .modal-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 20px;
            border-bottom: 1px solid #eee;
            padding-bottom: 15px;
        }

        .modal-header h3 {
            margin: 0;
        }
        
        .close {
            font-size: 28px;
            cursor: pointer;
            line-height: 1;
            font-weight: bold;
        }
        
        /* Notification */
        .notification {
            position: fixed;
            top: 20px;
            right: 20px;
            padding: 15px 20px;
            background: var(--secondary);
            color: white;
            border-radius: 5px;
            box-shadow: var(--shadow);
            display: none;
            z-index: 1001;
        }
        
        .notification.error {
            background: var(--accent);
        }
        
        .notification.active {
            display: block;
            animation: fadeInOut 3s forwards;
        }
        
        @keyframes fadeInOut {
            0% { opacity: 0; transform: translateY(-20px); }
            10% { opacity: 1; transform: translateY(0); }
            90% { opacity: 1; transform: translateY(0); }
            100% { opacity: 0; transform: translateY(-20px); }
        }
        
        /* Accounting Summary */
        .accounting-summary {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 20px;
            margin-bottom: 30px;
        }
        
        .summary-card {
            background: white;
            border-radius: 10px;
            padding: 20px;
            box-shadow: var(--shadow);
            text-align: center;
        }
        
        .summary-card h3 {
            font-size: 24px;
            margin-bottom: 10px;
        }
        
        .summary-card.income {
            border-top: 4px solid var(--secondary);
        }
        
        .summary-card.expenses {
            border-top: 4px solid var(--accent);
        }
        
        .summary-card.tax {
            border-top: 4px solid var(--warning);
        }
        
        .summary-card.profit {
            border-top: 4px solid var(--primary);
        }
        
        /* Partner Cards */
        .partner-cards {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 20px;
            margin-bottom: 30px;
        }
        
        .partner-card {
            background: white;
            border-radius: 10px;
            padding: 20px;
            box-shadow: var(--shadow);
            text-align: center;
        }
        
        .partner-card h3 {
            margin-bottom: 15px;
            color: var(--dark);
        }
        
        .partner-card .amount {
            font-size: 24px;
            font-weight: bold;
            margin-bottom: 15px;
        }
        
        .partner-card .btn-container {
            display: flex;
            justify-content: center;
            gap: 10px;
        }
        
        /* User Management */
        .user-card {
            background: white;
            border-radius: 10px;
            padding: 15px;
            margin-bottom: 15px;
            box-shadow: var(--shadow);
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        
        .user-info-small {
            display: flex;
            align-items: center;
            gap: 10px;
        }
        
        .user-info-small img {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            object-fit: cover;
        }
        
        .user-role {
            padding: 3px 8px;
            border-radius: 15px;
            font-size: 12px;
            font-weight: 500;
        }
        
        .role-admin {
            background: #ffeaa7;
            color: #d35400;
        }
        
        .role-user {
            background: #d1e7dd;
            color: #0f5132;
        }
        
        .role-partner {
            background: #cfe2ff;
            color: #084298;
        }
        
        /* Demo Info Box */
        .demo-info {
            background: #fff3cd;
            border-left: 4px solid #ffc107;
            padding: 15px;
            margin-bottom: 20px;
            border-radius: 4px;
        }

        /* Passenger Details */
        #passengerDetailsContainer {
            margin-top: 20px;
            padding-top: 20px;
            border-top: 1px solid #eee;
        }
        .passenger-form-group {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 15px;
            padding: 15px;
            border: 1px solid #f0f0f0;
            border-radius: 5px;
            margin-bottom: 15px;
            background: #f8f9fa;
        }
        .passenger-form-group h5 {
            grid-column: 1 / -1;
            margin-bottom: 0;
        }

        
        /* Responsive Design */
        @media (max-width: 992px) {
            .sidebar {
                width: 80px;
                position: static;
                height: auto;
            }
            
            .logo h1 {
                font-size: 18px;
            }
            
            .nav-links li a span {
                display: none;
            }
            
            .nav-links li {
                text-align: center;
                padding: 15px 5px;
            }
        }
        
        @media (max-width: 768px) {
            .container {
                flex-direction: column;
            }
            
            .sidebar {
                width: 100%;
                height: auto;
                padding: 10px;
                position: static;
            }
             .main-content {
                height: auto;
             }
            
            .nav-links {
                display: flex;
                overflow-x: auto;
            }
            
            .nav-links li {
                border-left: none;
                border-bottom: 4px solid transparent;
                padding: 10px 15px;
            }
            
            .nav-links li:hover,
            .nav-links li.active {
                border-left: none;
                border-bottom: 4px solid var(--secondary);
            }
            
            .dashboard-cards {
                grid-template-columns: 1fr;
            }
            
            .accounting-summary {
                grid-template-columns: 1fr;
            }
            
            .partner-cards {
                grid-template-columns: 1fr;
            }
            
            .user-card {
                flex-direction: column;
                gap: 15px;
                align-items: flex-start;
            }
        }