:root {
    --primary-color: #4A90E2;
    --secondary-color: #F5A623;
    --success-color: #7ED321;
    --danger-color: #D0021B;
    --dark-color: #2C3E50;
    --light-color: #F8F9FA;
    --gray-color: #95A5A6;
    
    --sidebar-width: 280px;
    --sidebar-collapsed-width: 70px;
    --header-height: 60px;
}

/* Global Styles */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: #F5F7FA;
    color: var(--dark-color);
}

/* Sidebar Styles */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: var(--sidebar-width);
    background: white;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    z-index: 1000;
    transform: translateX(0);
}

.sidebar.collapsed {
    width: var(--sidebar-collapsed-width);
}

.sidebar-header {
    height: var(--header-height);
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.sidebar-logo img {
    width: 40px;
    height: 40px;
}

.sidebar-logo h1 {
    font-size: 1.5rem;
    margin: 0;
    color: var(--primary-color);
    font-weight: 600;
}

.sidebar.collapsed .sidebar-logo h1,
.sidebar.collapsed .menu-text,
.sidebar.collapsed .profile-info {
    display: none;
}

.sidebar-menu {
    padding: 1.5rem 0;
    overflow-y: auto;
    height: calc(100vh - var(--header-height) - 80px); /* Account for header and profile */
}

.menu-item {
    padding: 0.75rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--dark-color);
    text-decoration: none;
    transition: all 0.2s ease;
    position: relative;
}

.menu-item:hover,
.menu-item.active {
    background: rgba(74, 144, 226, 0.1);
    color: var(--primary-color);
}

.menu-item.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--primary-color);
}

.menu-item i {
    font-size: 1.25rem;
    width: 24px;
    text-align: center;
    flex-shrink: 0;
}

.menu-text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-profile {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    background: white;
}

.profile-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.profile-image {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.profile-name {
    font-weight: 600;
    margin: 0;
}

.profile-role {
    color: var(--gray-color);
    font-size: 0.875rem;
    margin: 0;
}

/* Main Content */
.main-content {
    margin-left: var(--sidebar-width);
    padding: 2rem;
    min-height: 100vh;
    transition: all 0.3s ease;
}

.main-content.expanded {
    margin-left: var(--sidebar-collapsed-width);
}

@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
    }
    
    .sidebar.show {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0 !important;
    }
    
    .main-content.sidebar-show {
        overflow: hidden;
    }
    
    .main-content.sidebar-show::after {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 999;
    }
}

/* Card Styles */
.stat-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.stat-card .icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.stat-card .icon i {
    font-size: 1.5rem;
}

.stat-card .title {
    color: var(--gray-color);
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.stat-card .value {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

/* Table Card Styles */
.table-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.custom-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.custom-table th {
    background: var(--light-color);
    padding: 1rem;
    font-weight: 600;
    color: var(--gray-color);
    text-align: left;
}

.custom-table td {
    padding: 1rem;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    vertical-align: middle;
}

.custom-table tr:hover {
    background: rgba(0, 0, 0, 0.01);
}

/* Button Styles */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.btn-icon {
    padding: 0.5rem;
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-primary {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background: #357ABD;
    border-color: #357ABD;
}

/* Auth Card Styles */
.auth-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    max-width: 400px;
    margin: 2rem auto;
}

.logo-container {
    text-align: center;
    margin-bottom: 2rem;
}

.logo-container img {
    width: 80px;
    height: 80px;
    margin-bottom: 1rem;
}

/* Form Styles */
.form-label {
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.input-group-text {
    background: var(--light-color);
    border: 1px solid #ced4da;
    color: var(--gray-color);
}

.form-control, .form-select {
    padding: 14px;
    border: 2px solid #e1e1e1;
    border-radius: 10px;
    transition: all var(--transition-speed);
    font-size: 16px;
    width: 100%;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(74, 144, 226, 0.25);
}

/* Badge Styles */
.badge {
    padding: 0.5em 0.8em;
    font-weight: 500;
}

/* Responsive Styles */
@media (max-width: 768px) {
    :root {
        --sidebar-width: 240px;
    }
    
    .stat-card {
        margin-bottom: 1rem;
    }
    
    .table-responsive {
        margin: 0 -1rem;
    }
}

/* Modal Styles */
.modal-content {
    border-radius: 12px;
    border: none;
}

.modal-header {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding: 1.5rem;
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding: 1.5rem;
}

/* Assign Driver Modal Styles */
.driver-selection .list-group-item {
    cursor: pointer;
    transition: background-color 0.2s;
}

.driver-selection .list-group-item:hover {
    background-color: var(--light-color);
}

.driver-selection .list-group-item.active {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.driver-selection .avatar-placeholder {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.booking-info {
    background-color: var(--light-color);
    border-radius: 8px;
    padding: 1.5rem;
}

.booking-info label {
    margin-bottom: 0.25rem;
}

.booking-info .fw-bold {
    color: var(--dark-color);
}

/* Animation Styles */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.stat-card,
.table-card {
    animation: fadeIn 0.3s ease-out;
}

/* Notification Styles */
.notification-dropdown {
    width: 320px;
    max-height: 400px;
    padding: 0;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.notification-header {
    background-color: var(--light-color);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.notification-list {
    max-height: 350px;
    overflow-y: auto;
}

.notification-item {
    padding: 1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    cursor: pointer;
    transition: background-color 0.2s;
}

.notification-item:hover {
    background-color: var(--light-color);
}

.notification-item:last-child {
    border-bottom: none;
}

.notification-item.unread {
    background-color: rgba(var(--primary-color), 0.05);
}

.notification-item .notification-title {
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.notification-item .notification-time {
    font-size: 0.8rem;
    color: var(--gray-color);
}

.empty-notification {
    color: var(--gray-color);
}

.empty-notification i {
    font-size: 2rem;
    display: block;
    margin-bottom: 0.5rem;
}

.notification-badge {
    padding: 0.2rem 0.4rem;
    margin-left: 0px;
}

/* Booking Cards */
.booking-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    background-color: #fff;
}

.booking-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 .5rem 1rem rgba(0,0,0,.1) !important;
}

.booking-details p {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

/* Custom Nav Tabs */
.nav-tabs {
    border: none;
    background-color: #f8f9fa;
}

.nav-tabs .nav-link {
    border: none;
    color: #6c757d;
    font-weight: 500;
    padding: 0.75rem;
    transition: all 0.2s ease;
}

.nav-tabs .nav-link:hover {
    color: #495057;
    background-color: #e9ecef;
    border: none;
}

.nav-tabs .nav-link.active {
    color: #0d6efd;
    background-color: #fff;
    border: none;
    border-bottom: 2px solid #0d6efd;
}

/* Badge Styles */
.badge {
    padding: 0.5em 0.8em;
    font-weight: 500;
}

/* Mobile Specific Styles */
@media (max-width: 768px) {
    .nav-tabs {
        display: flex;
        flex-direction: row;
        width: 100%;
        margin: 0;
    }
    
    .nav-tabs .nav-item {
        flex: 1;
    }
    
    .nav-tabs .nav-link {
        text-align: center;
        padding: 0.5rem;
        font-size: 0.9rem;
    }
    
    .booking-card {
        margin-bottom: 1rem;
    }
    
    .booking-details {
        font-size: 0.85rem;
    }
}

/* Card Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.booking-card {
    animation: fadeIn 0.3s ease-out;
}

/* New styles for the nav-link */
.nav-link {
    color: #6c757d;
    padding: 0.75rem 1.25rem;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

.nav-link:hover {
    color: #4a90e2;
    background-color: rgba(74, 144, 226, 0.1);
}

.nav-link.active {
    color: #4a90e2;
    background-color: rgba(74, 144, 226, 0.1);
    font-weight: 600;
}

/* Account menu item specific styles */
.nav-link i.fa-money-bill {
    color: #28a745;  /* Green color for money icon */
}

.nav-link.active i.fa-money-bill {
    color: #4a90e2;  /* Match active link color when selected */
}
