/* CSS Variables */
:root {
    --primary-color: #0E2954; /* DepEd Blue */
    --secondary-color: #1f4b8c;
    --accent-color: #2E8A99;
    --bg-color: #F8F9FA;
    --card-bg: #FFFFFF;
    --text-primary: #333333;
    --text-secondary: #333333;
    --border-color: #E2E8F0;
    --success: #10B981;
    --error: #EF4444;
    --warning: #F59E0B;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --radius-md: 8px;
    --radius-lg: 12px;
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.5;
    font-size: 0.9rem;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: color 0.3s ease;
}

a:hover {
    color: var(--secondary-color);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 0.4rem;
}

h1 { font-size: 1.6rem; }
h2 { font-size: 1.35rem; }
h3 { font-size: 1rem; }
h4 { font-size: 0.85rem; }
td {
    font-size: .7rem !important;
}
/* Auth Container (Login, Register, Forgot Password) */
.auth-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 1rem;
    background-color: #f8fafc;
    background-image: radial-gradient(#cbd5e1 1px, transparent 1px);
    background-size: 24px 24px;
}

.auth-card {
    background-color: var(--card-bg);
    width: 100%;
    max-width: 400px;
    padding: 2rem 1.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    text-align: center;
}

.auth-logo {
    width: 130px;
    height: auto;
    margin-bottom: 1.25rem;
}

.auth-title {
    font-size: 1.65rem;
    margin-bottom: 0.2rem;
    margin-top: -15px;
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
    color: var(--primary-color);
    letter-spacing: -0.5px;
}

.auth-subtitle {
    color: var(--text-secondary);
    font-size: 0.8rem;
    margin-bottom: 2rem;
    font-weight: 500;
}

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

.form-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 500;
    margin-bottom: 0.35rem;
    color: var(--text-primary);
}

.form-control {
    width: 100%;
    padding: 0.6rem 0.85rem;
    font-size: 0.875rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    transition: border-color 0.3s, box-shadow 0.3s;
    background-color: #FAFAFA;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(14, 41, 84, 0.1);
    background-color: #FFFFFF;
}

.input-icon-wrapper {
    position: relative;
}

.input-icon-wrapper i {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.input-icon-wrapper i.left {
    left: 0.85rem;
}

.input-icon-wrapper .form-control.with-icon {
    padding-left: 2.5rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 0.55rem 1.1rem;
    font-size: 0.85rem;
    font-weight: 500;
    text-align: center;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: background-color 0.3s, transform 0.1s;
    width: 100%;
}

.btn:active {
    transform: scale(0.98);
}

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

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

/* Utility Classes */
.mt-3 { margin-top: 0.85rem; }
.mb-3 { margin-bottom: 0.85rem; }
.text-center { text-align: center; }
.text-sm { font-size: 0.8rem; }

/* Dashboard Layout */
.dashboard-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.navbar {
    background-color: var(--primary-color);
    padding: 0.5rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
    box-shadow: var(--shadow-md);
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.15rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-family: 'Poppins', sans-serif;
}

.navbar-brand a {
    color: white;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.navbar-menu {
    display: flex;
    gap: 0.4rem;
    align-items: center;
}

.navbar-item {
    color: rgba(255, 255, 255, 0.8) !important;
    font-size: 0.825rem;
    font-weight: 500;
    padding: 0.45rem 0.95rem;
    border-radius: 50px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 1;
}

.navbar-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.12);
    border-radius: 50px;
    transform: scale(0.9);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: -1;
}

.navbar-item:hover {
    color: #FFFFFF !important;
}

.navbar-item:hover::before {
    transform: scale(1);
    opacity: 1;
}

.navbar-item.active {
    color: #FFFFFF !important;
    background-color: rgba(255, 255, 255, 0.2) !important;
    font-weight: 600 !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    animation: activePillPop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes activePillPop {
    0% {
        transform: scale(0.95);
        opacity: 0.8;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.navbar-user {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.main-content {
    flex: 1;
    padding: 1.25rem 1.5rem;
    margin: 0 auto;
    width: 100% !important;
}

.page-header {
    margin-bottom: 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Cards */
.card {
    background-color: var(--card-bg);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    padding: 1.15rem;
    margin-bottom: 1.15rem;
    width: 100% !important;

}

.card-header {
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.75rem;
    margin-bottom: 0.75rem;
}

/* Tables */
.table-responsive {
    overflow-x: auto;
    width: 100% !important;
}

.table {
    width: 100% !important;
    border-collapse: collapse;
}

.table th, .table td {
    padding: 0.65rem 0.85rem;
    text-align: left;
    font-size: 0.825rem;
    border-bottom: 1px solid var(--border-color);
}

.table th {
    font-weight: 600;
    color: var(--text-secondary);
    background-color: var(--bg-color);
    text-transform: uppercase;
    font-size: 0.7rem;
    letter-spacing: 0.05em;
}

.table tr:hover {
    background-color: #F8FAFC;
}

/* Badges */
.badge {
    padding: 0.2rem 0.45rem;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 500;
}

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

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

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

.badge-admin {
    background-color: #F3E8FF;
    color: #6B21A8;
}

/* Notifications */
.notification-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.notification {
    background-color: white;
    border-left: 4px solid var(--primary-color);
    box-shadow: var(--shadow-lg);
    padding: 1rem;
    border-radius: var(--radius-md);
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    min-width: 300px;
    max-width: 400px;
    transform: translateX(120%);
    transition: transform 0.3s ease-out;
}

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

.notification-icon {
    font-size: 1.25rem;
}

.notification.success { border-color: var(--success); }
.notification.success .notification-icon { color: var(--success); }

.notification.error { border-color: var(--error); }
.notification.error .notification-icon { color: var(--error); }

.notification-content {
    flex: 1;
}

.notification-title {
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
}

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

.notification-close {
    cursor: pointer;
    color: var(--text-secondary);
    font-size: 1.25rem;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .auth-card {
        padding: 2rem 1.5rem;
    }
    
    .navbar {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }
    
    .navbar-menu {
        width: 100%;
        justify-content: space-between;
    }
    
    .main-content {
        padding: 1rem;
    }
    
    .page-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .notification-container {
        top: 10px;
        right: 10px;
        left: 10px;
    }
    
    .notification {
        min-width: unset;
        width: 100%;
    }
    
    /* Responsive Tables */
    .table thead {
        display: none;
    }
    .table, .table tbody, .table tr, .table td {
        display: block;
        width: 100%;
        box-sizing: border-box;
    }
    .table tr {
        margin-bottom: 1rem;
        background-color: var(--card-bg);
        border: 1px solid var(--border-color);
        border-radius: var(--radius-md);
        box-shadow: var(--shadow-sm);
    }
    .table td {
        text-align: right;
        padding: 0.75rem 1rem;
        position: relative;
        border-bottom: 1px solid var(--border-color);
        display: flex;
        justify-content: flex-end;
        align-items: center;
        gap: 1rem;
    }
    .table td::before {
        content: attr(data-label);
        position: absolute;
        left: 1rem;
        width: 45%;
        padding-right: 10px;
        white-space: nowrap;
        text-align: left;
        font-weight: 600;
        color: var(--text-secondary);
        font-size: 0.85em;
        text-transform: uppercase;
    }
    .table td:last-child {
        border-bottom: 0;
        justify-content: flex-end; /* often Actions column */
    }
}

/* Modals */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(4px);
}

.modal-content {
    background-color: var(--card-bg);
    width: 90%;
    max-width: 600px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    animation: modalIn 0.3s ease-out;
}

@keyframes modalIn {
    from { transform: translateY(-30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.modal-header {
    padding: 1.25rem 1.5rem;
    background-color: var(--primary-color);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    color: white;
    margin: 0;
    font-size: 1.25rem;
}

.modal-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.modal-close:hover {
    opacity: 1;
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
}

/* DataTables Custom Styles */
.dataTables_wrapper .dataTables_length select,
.dataTables_wrapper .dataTables_filter input {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 0.4rem 0.8rem;
    margin-bottom: 1rem;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current {
    background: var(--primary-color) !important;
    color: white !important;
    border: none !important;
    border-radius: var(--radius-md) !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
    background: var(--secondary-color) !important;
    border: none !important;
    color: white !important;
}

table.dataTable {
    border-collapse: collapse !important;
    margin-bottom: 1rem !important;
}

table.dataTable thead th {
    background-color: var(--bg-color) !important;
    color: var(--text-secondary) !important;
    border-bottom: 1px solid var(--border-color) !important;
}

/* ==========================================================================
   Modern Authentication & Glassmorphism System
   ========================================================================== */
.auth-page {
    min-height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0B192C 0%, #1E3E62 50%, #000000 100%);
    position: relative;
    overflow: hidden;
    padding: 1.5rem;
}

.auth-container {
    display: flex;
    width: 100%;
    max-width: 1100px;
    min-height: 640px;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 24px;
    box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.45), 0 18px 36px -18px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    position: relative;
    z-index: 1;
}

/* Left Hero Section */
.auth-hero {
    flex: 1;
    background: linear-gradient(145deg, rgba(14, 41, 84, 0.95), rgba(15, 23, 42, 0.95));
    padding: 3.5rem 3rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.auth-hero-glow {
    position: absolute;
    top: -30%;
    left: -30%;
    width: 160%;
    height: 160%;
    background: radial-gradient(circle, rgba(46, 138, 153, 0.25) 0%, rgba(14, 41, 84, 0) 70%);
    pointer-events: none;
    animation: pulseGlow 8s infinite alternate ease-in-out;
}

@keyframes pulseGlow {
    0% { transform: scale(1) translate(0, 0); opacity: 0.7; }
    100% { transform: scale(1.15) translate(3%, 3%); opacity: 1; }
}

.auth-hero-content {
    position: relative;
    z-index: 2;
}

.brand-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    padding: 0.4rem 1rem;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #E2E8F0;
    font-size: 0.825rem;
    font-weight: 500;
    margin-bottom: 2rem;
}

.brand-badge-logo {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.auth-hero-title {
    font-size: 3rem;
    font-weight: 800;
    color: #FFFFFF;
    letter-spacing: -1px;
    line-height: 1.1;
    margin-bottom: 0.75rem;
    background: linear-gradient(135deg, #FFFFFF 0%, #93C5FD 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.auth-hero-subtitle {
    color: #94A3B8;
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 3rem;
    max-width: 90%;
}

.auth-hero-features {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.feature-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: rgba(46, 138, 153, 0.2);
    border: 1px solid rgba(46, 138, 153, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #38BDF8;
    font-size: 1.35rem;
    flex-shrink: 0;
}

.feature-text {
    display: flex;
    flex-direction: column;
}

.feature-text strong {
    color: #F8FAFC;
    font-size: 0.95rem;
    font-weight: 600;
}

.feature-text span {
    color: #94A3B8;
    font-size: 0.825rem;
}

.auth-hero-footer {
    position: relative;
    z-index: 2;
    color: #64748B;
    font-size: 0.8rem;
}

/* Right Form Wrapper */
.auth-form-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 2.5rem;
    background: rgba(255, 255, 255, 0.95);
}

.auth-card-modern {
    width: 100%;
    max-width: 380px;
}

.auth-card-header {
    margin-bottom: 2rem;
}

.mobile-logo-wrapper {
    display: none;
    margin-bottom: 1rem;
    text-align: center;
}

.mobile-logo {
    height: 48px;
    width: auto;
}

.auth-card-header h2 {
    font-size: 1.85rem;
    font-weight: 700;
    color: #0F172A;
    margin-bottom: 0.35rem;
    letter-spacing: -0.5px;
}

.auth-card-header p {
    color: #64748B;
    font-size: 0.9rem;
}

/* Alert Boxes */
.alert-box {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    border-radius: 12px;
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
    line-height: 1.4;
    animation: fadeInSlide 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes fadeInSlide {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

.alert-error {
    background-color: #FEF2F2;
    border: 1px solid #FCA5A5;
    color: #991B1B;
}

.alert-success {
    background-color: #ECFDF5;
    border: 1px solid #6EE7B7;
    color: #065F46;
}

.alert-icon {
    font-size: 1.25rem;
    flex-shrink: 0;
}

/* Modern Form Controls */
.modern-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.form-group-modern {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.form-label-modern {
    font-size: 0.85rem;
    font-weight: 600;
    color: #334155;
}

.forgot-link {
    font-size: 0.8rem;
    color: #2563EB;
    font-weight: 500;
    transition: color 0.2s;
}

.forgot-link:hover {
    color: #1D4ED8;
    text-decoration: underline;
}

.input-modern-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon-left {
    position: absolute;
    left: 1rem;
    color: #94A3B8;
    font-size: 1.25rem;
    pointer-events: none;
    transition: color 0.2s ease;
}

.form-control-modern {
    width: 100%;
    padding: 0.85rem 1rem 0.85rem 2.8rem;
    font-size: 0.95rem;
    border: 1.5px solid #E2E8F0;
    border-radius: 12px;
    background-color: #F8FAFC;
    color: #0F172A;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.form-control-modern:focus {
    outline: none;
    border-color: #0E2954;
    background-color: #FFFFFF;
    box-shadow: 0 0 0 4px rgba(14, 41, 84, 0.1);
}

.form-control-modern:focus + .input-icon-left,
.input-modern-wrapper:focus-within .input-icon-left {
    color: #0E2954;
}

.password-toggle {
    position: absolute;
    right: 0.85rem;
    background: none;
    border: none;
    color: #94A3B8;
    font-size: 1.25rem;
    cursor: pointer;
    padding: 0.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: color 0.2s, background-color 0.2s;
}

.password-toggle:hover {
    color: #334155;
    background-color: #F1F5F9;
}

/* Primary Button Modern */
.btn-submit-modern {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.9rem 1.5rem;
    margin-top: 0.5rem;
    background: linear-gradient(135deg, #0E2954 0%, #1f4b8c 100%);
    color: #FFFFFF;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(14, 41, 84, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-submit-modern:hover {
    background: linear-gradient(135deg, #15376c 0%, #275ca8 100%);
    box-shadow: 0 6px 20px rgba(14, 41, 84, 0.4);
    transform: translateY(-1px);
}

.btn-submit-modern:active {
    transform: translateY(1px);
    box-shadow: 0 2px 8px rgba(14, 41, 84, 0.3);
}

.btn-icon {
    font-size: 1.35rem;
    transition: transform 0.2s ease;
}

.btn-submit-modern:hover .btn-icon {
    transform: translateX(4px);
}

/* Card Footer */
.auth-card-footer {
    margin-top: 2rem;
    text-align: center;
    font-size: 0.875rem;
    color: #64748B;
    display: flex;
    justify-content: center;
    gap: 0.35rem;
}

.register-link {
    color: #0E2954;
    font-weight: 600;
    transition: color 0.2s;
}

.register-link:hover {
    color: #2E8A99;
    text-decoration: underline;
}

/* Responsive Media Queries */
@media (max-width: 900px) {
    .auth-container {
        flex-direction: column;
        max-width: 480px;
        min-height: auto;
    }
    
    .auth-hero {
        display: none;
    }

    .mobile-logo-wrapper {
        display: block;
    }
    
    .auth-form-wrapper {
        padding: 2.5rem 1.75rem;
        background: #FFFFFF;
    }
}

@media (max-width: 480px) {
    .auth-page {
        padding: 0;
        background: #FFFFFF;
    }
    
    .auth-container {
        border-radius: 0;
        border: none;
        box-shadow: none;
    }

    .auth-form-wrapper {
        padding: 2rem 1.25rem;
    }
}

/* ==========================================================================
   Modern Trip Details & Passenger Modal Styles
   ========================================================================== */
.trip-id-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.25rem 0.65rem;
    background: #EFF6FF;
    color: #1D4ED8;
    border: 1px solid #BFDBFE;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.8rem;
    font-family: 'Poppins', sans-serif;
    transition: all 0.2s ease;
    cursor: pointer;
    text-decoration: none !important;
}

.trip-id-badge:hover {
    background: #0E2954;
    color: #FFFFFF;
    border-color: #0E2954;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(14, 41, 84, 0.25);
}

.modal-detail-card {
    background: #FFFFFF;
    width: 100%;
    max-width: 850px;
    max-height: 90vh;
    border-radius: 20px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: modalPopIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalPopIn {
    from { opacity: 0; transform: scale(0.95) translateY(10px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-detail-header {
    padding: 1rem 1.25rem;
    background: linear-gradient(135deg, #0E2954 0%, #1f4b8c 100%);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.header-badge-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #38BDF8;
}

.modal-header-title h3 {
    color: #FFFFFF;
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
}

.modal-header-title span {
    color: #93C5FD;
    font-size: 0.75rem;
}

.modal-close-btn {
    background: rgba(255, 255, 255, 0.12);
    border: none;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    font-size: 1.25rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.modal-close-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.modal-detail-body {
    padding: 1.15rem 1.25rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    font-size: 0.85rem;
}

/* Grids & Cards */
.detail-section-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 0.75rem;
}

.detail-info-block {
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    padding: 0.7rem 0.85rem;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.detail-label {
    font-size: 0.685rem;
    font-weight: 600;
    color: #64748B;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.detail-value {
    font-size: 0.835rem;
    color: #0F172A;
    word-break: break-word;
}

.detail-card-section {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    padding: 0.85rem 1rem;
}

/* Status Badges */
.badge-status {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.25rem 0.65rem;
    border-radius: 50px;
    font-size: 0.725rem;
    font-weight: 600;
    text-transform: capitalize;
}
.badge-status-pending { background: #FEF3C7; color: #92400E; border: 1px solid #FDE68A; }
.badge-status-approved { background: #D1FAE5; color: #065F46; border: 1px solid #A7F3D0; }
.badge-status-rejected { background: #FEE2E2; color: #991B1B; border: 1px solid #FCA5A5; }

.section-title {
    font-size: 0.825rem;
    font-weight: 700;
    color: #1E293B;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

/* Route Timeline */
.route-timeline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    background: #F8FAFC;
    padding: 0.85rem 1rem;
    border-radius: 12px;
}

.timeline-step {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    flex: 1;
}

.timeline-point {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-top: 4px;
    flex-shrink: 0;
}

.timeline-point.start { background: #2E8A99; box-shadow: 0 0 0 3px rgba(46, 138, 153, 0.2); }
.timeline-point.end { background: #EF4444; box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.2); }

.timeline-info {
    display: flex;
    flex-direction: column;
}

.timeline-label {
    font-size: 0.7rem;
    color: #64748B;
    font-weight: 600;
    text-transform: uppercase;
}

.timeline-info strong {
    font-size: 0.9rem;
    color: #0F172A;
}

.timeline-time {
    font-size: 0.75rem;
    color: #64748B;
}

.timeline-line {
    flex: 0.4;
    height: 2px;
    background: linear-gradient(90deg, #2E8A99 0%, #EF4444 100%);
    border-radius: 2px;
}

/* Purpose & Remarks */
.purpose-box {
    background: #F1F5F9;
    padding: 0.75rem 0.9rem;
    border-radius: 10px;
    font-size: 0.875rem;
    color: #334155;
    line-height: 1.5;
    margin: 0;
}

/* Passengers */
.badge-count {
    background: #DBEAFE;
    color: #1E40AF;
    font-size: 0.7rem;
    padding: 0.2rem 0.6rem;
    border-radius: 50px;
    font-weight: 600;
}

.passengers-pill-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.passenger-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.85rem;
    background: #F0F9FF;
    border: 1px solid #BAE6FD;
    color: #0369A1;
    border-radius: 50px;
    font-size: 0.825rem;
    font-weight: 600;
}

.no-passengers-msg {
    color: #94A3B8;
    font-size: 0.825rem;
    font-style: italic;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

/* Stats Row */
.stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.65rem;
}

.stat-pill {
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: 10px;
    padding: 0.6rem 0.5rem;
    text-align: center;
    display: flex;
    flex-direction: column;
}

.stat-pill span {
    font-size: 0.675rem;
    color: #64748B;
    text-transform: uppercase;
    font-weight: 600;
}

.stat-pill strong {
    font-size: 0.9rem;
    color: #0F172A;
}

.stat-pill.highlight {
    background: #ECFDF5;
    border-color: #A7F3D0;
}

.stat-pill.highlight strong {
    color: #047857;
}

.modal-detail-footer {
    padding: 1rem 1.5rem;
    background: #F8FAFC;
    border-top: 1px solid #E2E8F0;
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
}

@media (max-width: 600px) {
    .stats-row {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .route-timeline {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .timeline-line {
        width: 2px;
        height: 20px;
        margin-left: 5px;
    }
}

/* Ensure SweetAlert2 Popups Overlay above custom modals */
.swal2-container {
    z-index: 99999 !important;
}


