/* RootFlow Carpooling - Main Stylesheet */

:root {
    --primary-color: #3B82F6;
    --primary-dark: #2563EB;
    --secondary-color: #10B981;
    --dark-color: #1F2937;
    --light-color: #F3F4F6;
    --success-color: #10B981;
    --warning-color: #F59E0B;
    --danger-color: #EF4444;
    --info-color: #3B82F6;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: #FAFAFA;
    color: #333;
    line-height: 1.6;
}

/* Navbar Styles */
.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.brand-icon {
    font-size: 1.8rem;
}

.navbar-dark .navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.9);
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
}

.navbar-dark .navbar-nav .nav-link:hover {
    color: white;
}

.navbar-dark .navbar-nav .nav-link.active {
    color: white;
    font-weight: 600;
}

/* Hero Section */
.hero-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #3B82F6 0%, #8B5CF6 100%);
    min-height: 600px;
    display: flex;
    align-items: center;
}

.hero-section h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
}

.hero-section .lead {
    font-size: 1.25rem;
    opacity: 0.95;
}

/* Hero Stats */
.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.stat-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.stat-number {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.25rem;
}

.stat-label {
    color: #666;
    font-size: 0.9rem;
}

/* Search Box */
.search-box {
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid #E5E7EB;
}

.search-box h3 {
    font-weight: 700;
    color: var(--dark-color);
}

/* How It Works */
.how-it-works-card {
    padding: 2rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.how-it-works-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.step-number {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 1rem;
}

.step-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

/* Trip Cards */
.trip-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    border: 1px solid #e2e8f0;
    overflow: hidden;
}

.trip-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    border-color: #3B82F6;
}

.trip-route {
    background: linear-gradient(135deg, #3B82F6, #6366F1);
    color: white;
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
    margin-bottom: 1rem;
    font-weight: 600;
    font-size: 1.1rem;
}

.trip-route .arrow {
    margin: 0 0.5rem;
    color: rgba(255, 255, 255, 0.7);
}

.trip-details {
    margin-bottom: 1rem;
    flex-grow: 1;
}

.trip-details p {
    margin-bottom: 0.5rem;
    color: #666;
}

.trip-price {
    text-align: center;
    margin-bottom: 1rem;
    padding: 1rem;
    background: var(--light-color);
    border-radius: 8px;
}

.trip-price .price {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: var(--success-color);
}

.trip-price .per-seat {
    color: #666;
    font-size: 0.9rem;
}

/* Benefit Cards */
.benefit-card {
    padding: 2rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    text-align: center;
    height: 100%;
}

.benefit-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.benefit-card h3 {
    margin-bottom: 0.5rem;
    color: var(--dark-color);
}

.benefit-card p {
    color: #666;
}

/* Flash Messages */
.flash-messages {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    max-width: 400px;
}

.alert {
    padding: 1rem 1.5rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    border-left: 4px solid;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.alert-success {
    background: #D1FAE5;
    border-color: #10B981;
    color: #065F46;
}

.alert-error {
    background: #FEE2E2;
    border-color: #EF4444;
    color: #991B1B;
}

.alert-warning {
    background: #FEF3C7;
    border-color: #F59E0B;
    color: #92400E;
}

.alert-info {
    background: #DBEAFE;
    border-color: #3B82F6;
    color: #1E40AF;
}

/* Forms */
.form-control, .form-select {
    padding: 0.75rem 1rem;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(59, 130, 246, 0.25);
}

.form-label {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #374151;
}

/* Buttons */
.btn {
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
}

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

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-success {
    background: var(--success-color);
    color: white;
}

.btn-danger {
    background: var(--danger-color);
    color: white;
}

/* Footer */
footer {
    padding: 3rem 0 0rem 0rem;
    background: var(--dark-color);
}

footer h5 {
    color: white;
    font-weight: 700;
    margin-bottom: 1rem;
}

footer a {
    color: #9CA3AF;
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: white;
}

/* Pagination */
.pagination {
    display: flex;
    list-style: none;
    gap: 0.5rem;
}

.pagination-link {
    padding: 0.5rem 1rem;
    border: 1px solid #E5E7EB;
    border-radius: 6px;
    text-decoration: none;
    color: #374151;
    transition: all 0.3s ease;
}

.pagination-link:hover {
    background: var(--light-color);
}

.pagination-link.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* Stars */
.stars {
    color: #FBBF24;
    font-size: 1.2rem;
}

.star.filled {
    color: #FBBF24;
}

.star.empty {
    color: #D1D5DB;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-section {
        padding: 60px 0;
        min-height: auto;
    }
    
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .hero-stats {
        grid-template-columns: 1fr;
        margin-top: 2rem;
    }
    
    .how-it-works-card,
    .trip-card,
    .benefit-card {
        margin-bottom: 1.5rem;
    }
}

/* Utilities */
.text-gradient {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bg-gradient {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

.shadow-sm {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.shadow-lg {
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.rounded-lg {
    border-radius: 12px;
}

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

.fade-in {
    animation: fadeIn 0.5s ease forwards;
}

/* Loading Spinner */
.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #E5E7EB;
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Status Badges */
.badge {
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.badge-success {
    background: #D1FAE5;
    color: #065F46;
}

.badge-warning {
    background: #FEF3C7;
    color: #92400E;
}

.badge-danger {
    background: #FEE2E2;
    color: #991B1B;
}

.badge-info {
    background: #DBEAFE;
    color: #1E40AF;
}



.admin-stat-card {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    height: 100%;
    min-height: 140px;
    display: flex;
    flex-direction: column;
}

.admin-stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color, #3B82F6), var(--secondary-color, #8B5CF6));
}

.admin-stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.admin-stat-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 16px;
    flex-shrink: 0;
}

.admin-stat-icon i {
    width: 1em;
    height: 1em;
    display: flex;
    align-items: center;
    justify-content: center;
}

.admin-stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: #1f2937;
    line-height: 1.2;
    margin-bottom: 4px;
}

.admin-stat-label {
    font-size: 0.875rem;
    color: #6b7280;
    font-weight: 500;
    margin-top: auto;
}


.sidebar {
    background: linear-gradient(180deg, #1F2937 0%, #111827 100%);
    color: white;
    min-height: calc(100vh - 76px);
    padding: 24px 16px;
    border-radius: 0 16px 16px 0;
    box-shadow: 4px 0 20px rgba(0,0,0,0.1);
}

.sidebar .user-profile {
    padding: 20px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    margin-bottom: 20px;
    text-align: center;
}

.sidebar .user-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 2rem;
    margin: 0 auto 16px;
    border: 3px solid rgba(255,255,255,0.2);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.sidebar h4 {
    color: white;
    font-weight: 600;
    margin-bottom: 4px;
    font-size: 1.125rem;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 0;
}

.sidebar-nav a {
    padding: 14px 18px;
    border-radius: 10px;
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    overflow: hidden;
}

.sidebar-nav a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 0;
    background: var(--primary-color);
    border-radius: 10px;
    transition: width 0.3s ease;
    z-index: -1;
}

.sidebar-nav a:hover {
    color: white;
    transform: translateX(4px);
}

.sidebar-nav a:hover::before {
    width: 100%;
}

.sidebar-nav a.active {
    background: linear-gradient(135deg, var(--primary-color), #4F46E5);
    color: white;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.sidebar-nav a.active::before {
    width: 100%;
}

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

.sidebar .badge {
    display: inline-block;
    margin-top: 8px;
    font-size: 0.75rem;
    padding: 4px 10px;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

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

@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

@keyframes scaleIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes shake {
    0%, 100% {
        transform: translateX(0);
    }
    25% {
        transform: translateX(-5px);
    }
    75% {
        transform: translateX(5px);
    }
}

:root {
    --primary-color: #3B82F6;
    --primary-dark: #2563EB;
    --secondary-color: #10B981;
    --accent-color: #F59E0B;
    --danger-color: #EF4444;
    --dark-bg: #1F2937;
    --light-bg: #F9FAFB;
    --text-primary: #111827;
    --text-secondary: #6B7280;
    --border-color: #E5E7EB;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 15px rgba(0,0,0,0.1);
}

.animate-pulse-custom {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.animate-slide-in {
    animation: slideIn 0.3s ease-out;
}

.animate-fade-out {
    animation: fadeOut 0.3s ease-out;
}

.animate-scale-in {
    animation: scaleIn 0.3s ease-out;
}

.animate-shake {
    animation: shake 0.5s ease-in-out;
}

.auth-card {
    max-width: 450px;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-label {
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.form-control {
    border-radius: 8px;
    padding: 10px 14px;
    border: 1px solid var(--border-color);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border: none;
    border-radius: 8px;
    padding: 12px 24px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.social-login button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.dashboard-card {
    border-radius: 12px;
    transition: all 0.3s ease;
}

.dashboard-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.stat-card {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-radius: 12px;
    padding: 24px;
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 10px 0;
}

.stat-label {
    font-size: 1rem;
    opacity: 0.9;
}

.trip-card {
    border-radius: 12px;
    transition: all 0.3s ease;
    background: white;
    overflow: hidden;
}

.trip-card:hover {
    border-color: #3B82F6;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.trip-route {
    background: linear-gradient(90deg, #3B82F6, #8B5CF6);
    color: white;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 16px;
}

.trip-details {
    padding: 16px;
}

.trip-price {
    padding: 16px;
    background: var(--light-bg);
    text-align: center;
    border-top: 1px solid var(--border-color);
}

.price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.per-seat {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.hero-section {
    background: linear-gradient(135deg, #667EEA 0%, #764BA2 100%);
    padding: 80px 0;
    color: white;
}

.hero-stats {
    display: grid;
    gap: 16px;
    margin-top: 32px;
}

.search-box {
    background: white;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    padding: 32px;
}

.how-it-works-card {
    padding: 32px;
    border-radius: 12px;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.how-it-works-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.step-number {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 auto 16px;
}

.step-icon {
    font-size: 3rem;
    margin-bottom: 16px;
}

.benefit-card {
    padding: 32px;
    border-radius: 12px;
    background: white;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.benefit-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.benefit-icon {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.status-cancelled {
    background: #FEE2E2;
    color: #991B1B;
}

.status-active {
    background: #DBEAFE;
    color: #1E40AF;
}

.bookings-table {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.bookings-table thead {
    background: var(--light-bg);
}

.bookings-table th {
    padding: 16px;
    font-weight: 600;
    color: var(--text-primary);
    border-bottom: 2px solid var(--border-color);
}

.bookings-table td {
    padding: 16px;
    border-bottom: 1px solid var(--border-color);
}

.bookings-table tbody tr:hover {
    background: var(--light-bg);
}

.action-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 0.875rem;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1.125rem;
}

.rating-stars {
    color: #F59E0B;
}

.trip-visualization {
    background: var(--light-bg);
    border-radius: 12px;
    padding: 24px;
    margin: 20px 0;
}

.vehicle-info {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: var(--light-bg);
    border-radius: 8px;
    margin: 16px 0;
}

.driver-profile {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: var(--light-bg);
    border-radius: 8px;
    margin: 16px 0;
}

.reviews-section {
    background: var(--light-bg);
    border-radius: 12px;
    padding: 24px;
    margin: 24px 0;
}

.review-card {
    background: white;
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 12px;
    box-shadow: var(--shadow-sm);
}

.price-breakdown {
    background: var(--light-bg);
    border-radius: 12px;
    padding: 24px;
    margin: 20px 0;
}

.price-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}

.price-row:last-child {
    border-bottom: none;
}

.price-total {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}



.quick-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 16px;
    margin-top: 24px;
}

.quick-action-card {
    background: white;
    padding: 24px;
    border-radius: 12px;
    text-align: center;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    cursor: pointer;
}

.quick-action-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.quick-action-icon {
    font-size: 2rem;
    margin-bottom: 12px;
}

.filters-section {
    background: white;
    padding: 24px;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 24px;
}

.filter-group {
    margin-bottom: 20px;
}

.filter-label {
    font-weight: 600;
    margin-bottom: 8px;
    display: block;
}

.error-page {
    text-align: center;
    padding: 80px 20px;
}

.error-code {
    font-size: 8rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.error-message {
    font-size: 1.5rem;
    color: var(--text-secondary);
    margin: 24px 0;
}

.error-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-top: 32px;
}

.upload-area {
    border: 2px dashed var(--border-color);
    border-radius: 12px;
    padding: 40px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.upload-area:hover {
    border-color: var(--primary-color);
    background: var(--light-bg);
}

.upload-area.dragover {
    border-color: var(--primary-color);
    background: rgba(59, 130, 246, 0.1);
}

.tab-btn.active {
    color: #3B82F6;
    border-bottom-color: #3B82F6;
}

.seat {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.seat:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.seat-available {
    background: linear-gradient(135deg, #4ade80, #22c55e);
    color: white;
}

.seat-selected {
    background: linear-gradient(135deg, #60a5fa, #3b82f6);
    color: white;
    transform: scale(1.1);
    box-shadow: 0 6px 12px rgba(59, 130, 246, 0.3);
}

.seat-reserved {
    background: linear-gradient(135deg, #f87171, #ef4444);
    color: white;
    cursor: not-allowed;
}

.seat-driver {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #facc15, #eab308);
    color: white;
    font-size: 1.2rem;
}

.status-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

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

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

.status-badge-in-progress {
    background: #dbeafe;
    color: #1e40af;
}

.status-badge-completed {
    background: #e0e7ff;
    color: #3730a3;
}

.timer-warning {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    border-color: #f59e0b;
}

.timer-critical {
    background: linear-gradient(135deg, #fee2e2, #fecaca);
    border-color: #ef4444;
}

.timer-bar-critical {
    background: linear-gradient(90deg, #ef4444, #dc2626);
}

.progress-bar {
    transition: width 1s ease-in-out;
}

.ledger-row {
    transition: background-color 0.2s ease;
}

.ledger-row:hover {
    background-color: #f9fafb;
}

.notification {
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.notification.show {
    transform: translateX(0);
    opacity: 1;
}

.notification.hide {
    transform: translateX(100%);
    opacity: 0;
}

.card-hover {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card-hover:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.glass-effect {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.route-segment {
    position: relative;
    transition: all 0.3s ease;
}

.route-segment:hover {
    transform: scale(1.02);
}

.scroll-smooth {
    scroll-behavior: smooth;
}

@media (max-width: 768px) {
    .seat {
        width: 40px;
        height: 40px;
        font-size: 0.875rem;
    }
    
    .tab-btn {
        padding: 0.75rem 1rem;
        font-size: 0.875rem;
    }
}

@media (max-width: 480px) {
    .seat {
        width: 35px;
        height: 35px;
        font-size: 0.75rem;
    }
}

.profile-header {
    background: linear-gradient(135deg, #667EEA 0%, #764BA2 100%);
    padding: 40px 0;
    margin-bottom: 30px;
    border-radius: 0 0 20px 20px;
}

.profile-avatar-wrapper {
    position: relative;
    display: inline-block;
}

.profile-avatar-large {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 3rem;
    border: 4px solid white;
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.profile-avatar-status {
    position: absolute;
    bottom: 5px;
    right: 5px;
    width: 24px;
    height: 24px;
    background: var(--secondary-color);
    border: 3px solid white;
    border-radius: 50%;
}

.profile-info {
    color: white;
    text-align: center;
    padding: 20px;
}

.profile-info h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.profile-info .badge {
    font-size: 0.875rem;
    padding: 8px 16px;
}

.profile-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 20px;
}

.profile-stat-item {
    text-align: center;
}

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

.profile-stat-label {
    font-size: 0.875rem;
    opacity: 0.9;
}

.form-section-card {
    background: white;
    border-radius: 16px;
    padding: 30px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    height: 100%;
}

.form-section-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
}

.form-section-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--light-bg);
}

.form-section-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.form-section-icon i {
    width: 1em;
    height: 1em;
    display: flex;
    align-items: center;
    justify-content: center;
}

.form-section-icon.primary {
    background: linear-gradient(135deg, #667EEA 0%, #764BA2 100%);
    color: white;
}

.form-section-icon.success {
    background: linear-gradient(135deg, var(--secondary-color), #059669);
    color: white;
}

.form-section-icon.info {
    background: linear-gradient(135deg, #3B82F6, #1D4ED8);
    color: white;
}

.form-section-icon.danger {
    background: linear-gradient(135deg, #EF4444, #DC2626);
    color: white;
}

.form-section-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.status-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.status-card-item {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all 0.3s ease;
}

.status-card-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.status-card-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.status-card-icon i {
    width: 1em;
    height: 1em;
    display: flex;
    align-items: center;
    justify-content: center;
}

.status-card-content {
    flex: 1;
}

.status-card-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.status-card-value {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
}

.danger-zone {
    background: linear-gradient(135deg, #FEF2F2 0%, #FEE2E2 100%);
    border: 2px solid #FECACA;
    border-radius: 16px;
    padding: 30px;
    margin-top: 30px;
}

.danger-zone-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.danger-zone-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #EF4444, #DC2626);
    color: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.danger-zone-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #991B1B;
    margin: 0;
}

.admin-page-header {
    background: linear-gradient(135deg, #1F2937 0%, #374151 100%);
    padding: 30px 0;
    margin-bottom: 30px;
    border-radius: 0 0 20px 20px;
}

.admin-page-title {
    color: white;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.admin-page-subtitle {
    color: rgba(255,255,255,0.8);
    font-size: 1rem;
    margin: 0;
}



.admin-sidebar-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    border: 1px solid #e5e7eb;
}

.admin-sidebar-header {
    background: linear-gradient(135deg, #3B82F6 0%, #2563EB 100%);
    color: white;
    padding: 20px 24px;
}

.admin-sidebar-header h5 {
    font-weight: 600;
    font-size: 1.1rem;
}

.admin-sidebar-body {
    padding: 0;
}

.admin-sidebar-body .nav-link {
    padding: 14px 20px;
    color: #4b5563;
    border-bottom: 1px solid #f3f4f6;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
}

.admin-sidebar-body .nav-link:hover {
    background: #f9fafb;
    color: #1f2937;
}

.admin-sidebar-body .nav-link.active {
    background: #eff6ff;
    color: #3B82F6;
    font-weight: 500;
    border-left: 3px solid #3B82F6;
}

.admin-sidebar-body .nav-link .badge {
    font-size: 0.75rem;
}

.admin-table-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.admin-table-header {
    /* background: linear-gradient(135deg, #F9FAFB 0%, #F3F4F6 100%); */
    padding: 20px 24px;
    border-bottom: 2px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.admin-table-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    
}

.admin-table {
    margin: 0;
    width: 100%;
}

.admin-table thead th {
    background: var(--light-bg);
    padding: 16px 20px;
    font-weight: 600;
    color: var(--text-primary);
    border-bottom: 2px solid var(--border-color);
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
}

.admin-table tbody td {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
    vertical-align: middle;
}

.admin-table tbody tr {
    transition: all 0.2s ease;
}

.admin-table tbody tr:hover {
    background: linear-gradient(90deg, rgba(59, 130, 246, 0.05) 0%, rgba(16, 185, 129, 0.05) 100%);
}

.admin-table tbody tr:last-child td {
    border-bottom: none;
}

.admin-badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.admin-badge-success {
    background: linear-gradient(135deg, #D1FAE5 0%, #A7F3D0 100%);
    color: #065F46;
}

.admin-badge-warning {
    background: linear-gradient(135deg, #FEF3C7 0%, #FDE68A 100%);
    color: #92400E;
}

.admin-badge-danger {
    background: linear-gradient(135deg, #FEE2E2 0%, #FECACA 100%);
    color: #991B1B;
}

.admin-badge-info {
    background: linear-gradient(135deg, #DBEAFE 0%, #BFDBFE 100%);
    color: #1E40AF;
}

.admin-badge-secondary {
    background: linear-gradient(135deg, #F3F4F6 0%, #E5E7EB 100%);
    color: #374151;
}

.admin-sidebar {
    background: linear-gradient(180deg, #1F2937 0%, #111827 100%);
    min-height: 100vh;
    padding: 0;
    border-radius: 0 16px 16px 0;
}

.admin-sidebar-brand {
    padding: 24px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    text-align: center;
}

.admin-sidebar-brand h3 {
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
}

.admin-sidebar-brand span {
    color: var(--secondary-color);
}

.admin-sidebar-nav {
    padding: 20px 12px;
}

.admin-sidebar-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 10px;
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: all 0.3s ease;
    margin-bottom: 4px;
    font-weight: 500;
}

.admin-sidebar-link:hover {
    background: rgba(255,255,255,0.1);
    color: white;
}

.admin-sidebar-link.active {
    background: linear-gradient(135deg, var(--primary-color), #4F46E5);
    color: white;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.admin-sidebar-link i {
    font-size: 1.25rem;
    width: 24px;
    text-align: center;
}

.admin-sidebar-footer {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.admin-user-info {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: rgba(255,255,255,0.05);
    border-radius: 10px;
}

.admin-user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.admin-user-details {
    flex: 1;
    overflow: hidden;
}

.admin-user-name {
    color: white;
    font-weight: 600;
    font-size: 0.875rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.admin-user-role {
    color: rgba(255,255,255,0.5);
    font-size: 0.75rem;
}

.page-header {
    background: white;
    padding: 24px 0;
    margin-bottom: 30px;
    border-bottom: 1px solid var(--border-color);
}

.page-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.page-subtitle {
    color: var(--text-secondary);
    margin: 0;
}

.action-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.breadcrumb-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.875rem;
    margin-bottom: 8px;
}

.breadcrumb-nav a {
    color: var(--primary-color);
    text-decoration: none;
}

.breadcrumb-nav a:hover {
    text-decoration: underline;
}

.breadcrumb-nav span {
    color: var(--text-secondary);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.5s ease-out forwards;
}

.animate-delay-1 { animation-delay: 0.1s; }
.animate-delay-2 { animation-delay: 0.2s; }
.animate-delay-3 { animation-delay: 0.3s; }
.animate-delay-4 { animation-delay: 0.4s; }

.seat-layout-preview {
    background: #f8f9fa;
    border-radius: 8px;
    min-height: 120px;
}

.seat-layout {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
}

.seat-row {
    display: flex;
    gap: 16px;
    justify-content: center;
}

.seat {
    width: 45px;
    height: 45px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
    border: 2px solid #dee2e6;
    transition: all 0.2s ease;
}

.driver-seat {
    background: #ffc107;
    border-color: #ffc107;
    color: #212529;
}

.passenger-seat {
    background: #28a745;
    border-color: #28a745;
    color: white;
    cursor: pointer;
}

.passenger-seat:hover {
    background: #218838;
    transform: scale(1.1);
}

.seat-label {
    font-size: 16px;
}

.seat-selection {
    background: #f8f9fa;
    border-radius: 8px;
}

.seat-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    font-size: 13px;
}

.seat-icon {
    display: inline-block;
    width: 16px;
    height: 16px;
    border-radius: 4px;
    margin-right: 5px;
    vertical-align: middle;
}

.seat-icon.available {
    background: #28a745;
    border: 2px solid #28a745;
}

.seat-icon.selected {
    background: #0d6efd;
    border: 2px solid #0d6efd;
}

.seat-icon.booked {
    background: #6c757d;
    border: 2px solid #6c757d;
}

.seat-icon.driver {
    background: #ffc107;
    border: 2px solid #ffc107;
}

.seat-layout {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.seat-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.row-label {
    width: 50px;
    font-size: 12px;
    color: #6c757d;
    text-align: right;
}

.seats {
    display: flex;
    gap: 10px;
}

.seat {
    width: 40px;
    height: 40px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 13px;
    transition: all 0.2s ease;
}

.seat.driver-seat {
    background: #ffc107;
    border: 2px solid #ffc107;
    color: #212529;
}

.seat.available-seat {
    background: #28a745;
    border: 2px solid #28a745;
    color: white;
    cursor: pointer;
}

.seat.available-seat:hover {
    background: #218838;
    transform: scale(1.1);
}

.seat.selected-seat {
    background: #0d6efd;
    border: 2px solid #0d6efd;
    color: white;
    cursor: pointer;
}

.seat.selected-seat:hover {
    background: #0b5ed7;
}

.seat.booked-seat {
    background: #6c757d;
    border: 2px solid #6c757d;
    color: white;
    cursor: not-allowed;
    opacity: 0.6;
}

/* Visual Seat Map Styles */
.seat-map-container {
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
}

.vehicle-front {
    padding: 10px;
    border-bottom: 2px dashed #dee2e6;
    margin-bottom: 20px;
}

.seat-map {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
}

.seat-row {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.seat-map .seat {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s ease;
    cursor: pointer;
    border: 2px solid transparent;
}

.seat-map .seat-driver {
    background: #ffc107;
    border-color: #ffc107;
    color: #212529;
    cursor: default;
}

.seat-map .seat-available {
    background: #10b981;
    border-color: #10b981;
    color: white;
}

.seat-map .seat-available:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}

.seat-map .seat-selected {
    background: #3b82f6;
    border-color: #3b82f6;
    color: white;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.seat-map .seat-selected:hover {
    transform: scale(1.1);
}

.seat-map .seat-booked {
    background: #9ca3af;
    border-color: #9ca3af;
    color: white;
    cursor: not-allowed;
    opacity: 0.5;
}

.seat-legend {
    display: flex;
    gap: 20px;
    justify-content: center;
    padding-top: 15px;
    border-top: 1px solid #dee2e6;
}

.seat-legend-dot {
    width: 16px;
    height: 16px;
    border-radius: 4px;
    display: inline-block;
}

.seat-legend-dot.available {
    background: #10b981;
}

.seat-legend-dot.selected {
    background: #3b82f6;
}

.seat-legend-dot.booked {
    background: #9ca3af;
}

.seat-legend-dot.driver {
    background: #ffc107;
}

.selected-seats-info {
    background: #eff6ff !important;
    border: 1px solid #bfdbfe;
}

.custom-form-check {
    padding: 10px 15px;
    display: flex;
    gap: 10px;
    align-items: center;
    background: #f9fafb;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    transition: all 0.2s ease;
}

.custom-form-check:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.custom-form-check .form-check-input {
    margin-top: 0.2rem;
}

.custom-form-check .form-check-label {
    cursor: pointer;
    display: block;
}

.driver-mode-card {
    padding: 20px;
    background: #f9fafb;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.driver-mode-card:hover {
    border-color: #3b82f6;
    background: #eff6ff;
}

.driver-mode-card input[type="radio"] {
    display: none;
}

.driver-mode-card:has(input:checked) {
    border-color: #3b82f6;
    background: #eff6ff;
}

.driver-mode-icon {
    font-size: 2rem;
    display: block;
    margin-bottom: 8px;
}

.driver-mode-card label {
    cursor: pointer;
}

.driver-mode-card small {
    display: block;
    margin-top: 4px;
}

.admin-form-section {
    background: white;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 20px;
    border: 1px solid #e5e7eb;
}

.admin-form-section-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #f3f4f6;
    color: #1f2937;
    font-weight: 600;
    font-size: 1.1rem;
}

.admin-form-section-header i {
    color: #3b82f6;
    width: 24px;
    text-align: center;
}

.admin-form-section .form-label {
    font-weight: 500;
    color: #374151;
    margin-bottom: 6px;
}

/* ========================================
   ENHANCED DRIVER LAYOUT STYLES
   ======================================== */

.driver-layout {
    min-height: 100vh;
    background: #f1f5f9;
}

.driver-header {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.driver-header .navbar-brand {
    color: #fff;
    font-weight: 700;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.driver-header .nav-link {
    color: rgba(255,255,255,0.8);
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.3s;
}

.driver-header .nav-link:hover {
    color: #fff;
    background: rgba(255,255,255,0.1);
}

.driver-header .nav-link.active {
    color: #fff;
    background: rgba(59, 130, 246, 0.3);
}

.driver-sidebar {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    height: calc(100vh - 80px);
    position: sticky;
    top: 90px;
}

.driver-sidebar-profile {
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    padding: 2rem 1.5rem;
    text-align: center;
    color: #fff;
}

.driver-sidebar-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    border: 3px solid rgba(255,255,255,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 2rem;
}

.driver-sidebar-profile h5 {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.driver-sidebar-profile p {
    font-size: 0.875rem;
    opacity: 0.9;
    margin-bottom: 0;
}

.driver-sidebar-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    padding: 1rem;
    background: #f8fafc;
}

.driver-stat-item {
    text-align: center;
    padding: 0.75rem;
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.driver-stat-item .stat-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1e293b;
}

.driver-stat-item .stat-label {
    font-size: 0.75rem;
    color: #64748b;
}

.driver-sidebar-nav {
    padding: 1rem 0;
}

.driver-nav-section {
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #94a3b8;
    font-weight: 600;
    margin-top: 1rem;
}

.driver-nav-section:first-child {
    margin-top: 0;
}

.driver-sidebar-nav .nav-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1.5rem;
    color: #475569;
    border-radius: 0;
    border-left: 3px solid transparent;
    transition: all 0.3s;
    font-weight: 500;
}

.driver-sidebar-nav .nav-link i {
    width: 20px;
    text-align: center;
    color: #64748b;
    transition: all 0.3s;
}

.driver-sidebar-nav .nav-link:hover {
    background: #f1f5f9;
    color: #1e293b;
}

.driver-sidebar-nav .nav-link:hover i {
    color: #3b82f6;
}

.driver-sidebar-nav .nav-link.active {
    background: linear-gradient(90deg, rgba(59, 130, 246, 0.1) 0%, transparent 100%);
    color: #3b82f6;
    border-left-color: #3b82f6;
    font-weight: 600;
}

.driver-sidebar-nav .nav-link.active i {
    color: #3b82f6;
}

.driver-sidebar-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid #e2e8f0;
}

.driver-sidebar-footer .nav-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: #64748b;
    border-radius: 10px;
    transition: all 0.3s;
    margin-bottom: 0.5rem;
}

.driver-sidebar-footer .nav-link:hover {
    background: #fee2e2;
    color: #dc2626;
}

.driver-main-content {
    padding: 2rem;
}

.driver-page-header {
    background: #fff;
    border-radius: 16px;
    padding: 1.5rem 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.driver-page-header h2 {
    font-weight: 700;
    color: #1e293b;
    margin: 0;
}

.driver-page-header .breadcrumb {
    margin: 0;
    font-size: 0.875rem;
    color: #64748b;
}

/* ========================================
   ENHANCED ADMIN LAYOUT STYLES
   ======================================== */

.admin-layout {
    min-height: 100vh;
    background: #f1f5f9;
}

.admin-header {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    padding: 0.75rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.admin-header .navbar-brand {
    color: #fff;
    font-weight: 800;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.admin-header .nav-link {
    color: rgba(255,255,255,0.7);
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.3s;
}

.admin-header .nav-link:hover {
    color: #fff;
    background: rgba(255,255,255,0.1);
}

.admin-header .admin-user-dropdown {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.admin-header .user-info {
    text-align: right;
    display: none;
}

@media (min-width: 768px) {
    .admin-header .user-info {
        display: block;
    }
}

.admin-header .user-info .name {
    color: #fff;
    font-weight: 600;
    font-size: 0.9rem;
}

.admin-header .user-info .role {
    color: rgba(255,255,255,0.6);
    font-size: 0.75rem;
}

.admin-enhanced-sidebar {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    height: calc(100vh - 70px);
    position: sticky;
    top: 80px;
    display: flex;
    flex-direction: column;
}

.admin-sidebar-logo {
    padding: 1.25rem 1.5rem;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
}

.admin-sidebar-logo a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #fff;
    text-decoration: none;
}

.admin-sidebar-logo .logo-icon {
    font-size: 1.75rem;
}

.admin-sidebar-logo .logo-text {
    font-weight: 700;
    font-size: 1.25rem;
}

.admin-sidebar-logo .logo-badge {
    background: rgba(255,255,255,0.2);
    padding: 0.15rem 0.5rem;
    border-radius: 50px;
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
}

.admin-sidebar-nav-enhanced {
    padding: 0.5rem 0;
    flex: 1;
    overflow-y: auto;
}

.admin-nav-group-title {
    padding: 0.75rem 1.25rem 0.5rem;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #94a3b8;
    font-weight: 700;
}

.admin-sidebar-nav-enhanced .nav-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 1.25rem;
    color: #475569;
    transition: all 0.2s;
    border-left: 3px solid transparent;
    font-weight: 500;
    font-size: 0.875rem;
}

.admin-sidebar-nav-enhanced .nav-link i {
    width: 18px;
    text-align: center;
    color: #64748b;
    font-size: 0.9rem;
}

.admin-sidebar-nav-enhanced .nav-link:hover {
    background: #f8fafc;
    color: #1e293b;
}

.admin-sidebar-nav-enhanced .nav-link:hover i {
    color: #3b82f6;
}

.admin-sidebar-nav-enhanced .nav-link.active {
    background: linear-gradient(90deg, rgba(59, 130, 246, 0.1) 0%, transparent 100%);
    color: #3b82f6;
    border-left-color: #3b82f6;
    font-weight: 600;
}

.admin-sidebar-nav-enhanced .nav-link.active i {
    color: #3b82f6;
}

.admin-sidebar-nav-enhanced .nav-link .badge {
    margin-left: auto;
    font-size: 0.65rem;
    padding: 0.2rem 0.4rem;
    border-radius: 50px;
}

.admin-sidebar-footer-enhanced {
    padding: 0.75rem 1rem;
    border-top: 1px solid #e2e8f0;
}

.admin-sidebar-footer-enhanced .nav-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 1rem;
    color: #64748b;
    border-radius: 8px;
    transition: all 0.2s;
    font-weight: 500;
    font-size: 0.85rem;
}

.admin-sidebar-footer-enhanced .nav-link:hover {
    background: #fee2e2;
    color: #dc2626;
}

.admin-main-content {
    padding: 1.5rem;
}

/* Responsive */
@media (max-width: 991px) {
    .driver-sidebar,
    .admin-enhanced-sidebar {
        position: fixed;
        left: -100%;
        top: 0;
        height: 100vh;
        z-index: 1000;
        transition: left 0.3s;
        width: 280px;
    }
    
    .driver-sidebar.show,
    .admin-enhanced-sidebar.show {
        left: 0;
    }
    
    .driver-main-content,
    .admin-main-content {
        padding: 1rem;
    }
}

.hint{
    color:#05966877;
}