/**
 * Approvals Admin - Modern CSS Stylesheet
 * Consolidated CSS for all admin panel pages
 * Uses dynamic theme CSS variables from theme-css.blade.php
 */

/* ============================================
   1. MODERN PAGE HEADER
   ============================================ */
.modern-header {
    background: linear-gradient(155deg, var(--theme-primary) 0%, var(--theme-primary) 55%, rgb(from var(--theme-secondary) r g b / 0.9) 100%);
    padding: 2rem;
    border-radius: 16px;
    margin-bottom: 2rem;
    box-shadow: 0 4px 20px color-mix(in srgb, var(--theme-primary) 15%, transparent);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.page-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: white;
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 0;
}

.title-icon {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

/* Header Right Section */
.header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.btn-edit-profile {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.95);
    color: var(--theme-primary);
    border: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-edit-profile:hover {
    background: white;
    color: var(--theme-primary);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    text-decoration: none;
}

.btn-edit-profile:active {
    transform: translateY(0);
}

.btn-edit-profile i {
    font-size: 1rem;
}

.btn-auth-custom {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.95);
    color: var(--theme-primary);
    border: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-auth-custom:hover {
    background: white;
    color: var(--theme-primary);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    text-decoration: none;
}

.btn-auth-custom:active {
    transform: translateY(0);
}

/* ============================================
   2. BREADCRUMB NAVIGATION
   ============================================ */
.breadcrumb-nav {
    margin-top: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.breadcrumb-link {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: all 0.2s;
}

.breadcrumb-link:hover {
    color: white;
}

.breadcrumb-separator {
    color: rgba(255, 255, 255, 0.5);
}

.breadcrumb-current {
    color: rgba(255, 255, 255, 0.7);
}

/* ============================================
   3. STATUS PILLS / BADGES
   ============================================ */
.status-pill {
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.status-pill.status-success {
    color: var(--theme-success);
}

.status-pill.status-warning {
    color: color-mix(in srgb, var(--theme-warning) 70%, black);
}

.status-pill.status-danger {
    color: var(--theme-danger);
}

.status-pill.status-info {
    color: var(--theme-info);
}

.status-pill.status-primary {
    color: var(--theme-primary);
}

.status-pill.status-secondary {
    color: var(--theme-text-muted);
}

.status-pill.status-dark {
    color: var(--theme-text-dark);
}

.status-badge {
    padding: 0.4rem 0.75rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.8rem;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.status-badge-success {
    background: color-mix(in srgb, var(--theme-success) 10%, transparent);
    color: var(--theme-success);
}

.status-badge-warning {
    background: color-mix(in srgb, var(--theme-warning) 10%, transparent);
    color: color-mix(in srgb, var(--theme-warning) 70%, black);
}

.status-badge-danger {
    background: color-mix(in srgb, var(--theme-danger) 10%, transparent);
    color: var(--theme-danger);
}

.status-badge-info {
    background: color-mix(in srgb, var(--theme-primary) 10%, transparent);
    color: var(--theme-primary);
}

.status-badge-primary {
    background: color-mix(in srgb, var(--theme-primary) 10%, transparent);
    color: var(--theme-primary);
}

/* Status badges for DataTables */
.status-badge.status-active {
    background: color-mix(in srgb, var(--theme-success) 12%, transparent);
    color: var(--theme-success);
}

.status-badge.status-inactive {
    background: color-mix(in srgb, var(--theme-danger) 12%, transparent);
    color: var(--theme-danger);
}

/* Car Status Badges */
.status-badge.available,
.status-badge.free {
    background: color-mix(in srgb, var(--theme-success) 12%, transparent);
    color: var(--theme-success);
}

.status-badge.in_maintenance {
    background: color-mix(in srgb, var(--theme-warning) 12%, transparent);
    color: var(--theme-warning);
}

.status-badge.out_of_service {
    background: color-mix(in srgb, var(--theme-danger) 12%, transparent);
    color: var(--theme-danger);
}

.status-badge.in-use {
    background: color-mix(in srgb, var(--theme-info) 12%, transparent);
    color: var(--theme-info);
}

/* Highlight text for seats/counts */
.highlight-primary {
    font-weight: 700;
    color: var(--theme-primary);
}

.highlight-primary i {
    margin-left: 0.35rem;
}

/* User Avatar Styles for DataTables */
.user-avatar {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid var(--theme-primary);
}

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

/* DataTable Action Button */
.btn-dt-action {
    padding: 0.4rem 0.8rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    text-decoration: none;
    transition: all 0.2s;
    background: linear-gradient(135deg, var(--theme-primary), var(--theme-secondary));
    color: white;
    border: none;
}

.btn-dt-action:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px color-mix(in srgb, var(--theme-primary) 25%, transparent);
    color: white;
    text-decoration: none;
}

/* ============================================
   4. TABLE CONTAINER & STYLING
   ============================================ */
.table-container {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    padding: 2rem;
}

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

.table thead {
    background: var(--theme-primary);
}

.table thead th {
    color: white !important;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    padding: 1rem !important;
    border: none !important;
    white-space: nowrap;
}

.table tbody tr {
    transition: all 0.2s;
    border-bottom: 1px solid var(--theme-border);
}

.table tbody tr:hover {
    background: linear-gradient(to right, color-mix(in srgb, var(--theme-primary) 5%, transparent), transparent);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.table tbody td {
    padding: 1rem !important;
    vertical-align: middle;
    border: none !important;
    font-size: 0.95rem;
}

/* ============================================
   5. DATATABLES STYLING
   ============================================ */
.dataTables_wrapper {
    padding: 0;
}

.dataTables_filter input {
    border-radius: 10px;
    border: 2px solid var(--theme-border);
    padding: 0.5rem 1rem;
    transition: all 0.2s;
}

.dataTables_filter input:focus {
    border-color: var(--theme-primary);
    box-shadow: 0 0 0 0.25rem color-mix(in srgb, var(--theme-primary) 10%, transparent);
    outline: none;
}

.dataTables_length select {
    border-radius: 10px;
    border: 2px solid var(--theme-border);
    transition: all 0.2s;
}

.dataTables_length select:focus {
    border-color: var(--theme-primary);
    outline: none;
}

.dataTables_info {
    color: var(--theme-text-muted);
    font-size: 0.9rem;
    padding: 1rem 0;
}

/* DataTables Pagination */
.dataTables_paginate {
    margin-top: 1.5rem !important;
    display: flex !important;
    justify-content: center !important;
}

.dataTables_paginate .pagination {
    display: flex !important;
    gap: 0.5rem !important;
    margin: 0 !important;
}

.dataTables_paginate .page-link {
    padding: 0.625rem 1rem !important;
    border-radius: 10px !important;
    border: 2px solid var(--theme-border) !important;
    background: white !important;
    color: var(--theme-text-dark) !important;
    transition: all 0.2s !important;
    font-weight: 600 !important;
    min-width: 45px !important;
    text-align: center !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-decoration: none !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05) !important;
}

.dataTables_paginate .paginate_button:not(.disabled) .page-link:hover {
    background: linear-gradient(155deg, var(--theme-primary) 0%, var(--theme-primary) 55%, rgb(from var(--theme-secondary) r g b / 0.9) 100%) !important;
    color: white !important;
    border-color: var(--theme-primary) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 8px color-mix(in srgb, var(--theme-primary) 20%, transparent) !important;
}

.dataTables_paginate .paginate_button.active .page-link {
    background: linear-gradient(155deg, var(--theme-primary) 0%, var(--theme-primary) 55%, rgb(from var(--theme-secondary) r g b / 0.9) 100%) !important;
    color: white !important;
    border-color: var(--theme-primary) !important;
    box-shadow: 0 4px 12px color-mix(in srgb, var(--theme-primary) 30%, transparent) !important;
}

.dataTables_paginate .paginate_button.disabled .page-link {
    opacity: 0.4 !important;
    cursor: not-allowed !important;
    background: var(--theme-bg-light) !important;
}


table.dataTable thead>tr>th.sorting::before,
table.dataTable thead>tr>th.sorting_asc::before,
table.dataTable thead>tr>th.sorting_desc::before,
table.dataTable thead>tr>th.sorting_asc_disabled::before,
table.dataTable thead>tr>th.sorting_desc_disabled::before,
table.dataTable thead>tr>td.sorting::before,
table.dataTable thead>tr>td.sorting_asc::before,
table.dataTable thead>tr>td.sorting_desc::before,
table.dataTable thead>tr>td.sorting_asc_disabled::before,
table.dataTable thead>tr>td.sorting_desc_disabled::before,
table.dataTable thead>tr>th.sorting::after,
table.dataTable thead>tr>th.sorting_asc::after,
table.dataTable thead>tr>th.sorting_desc::after,
table.dataTable thead>tr>th.sorting_asc_disabled::after,
table.dataTable thead>tr>th.sorting_desc_disabled::after,
table.dataTable thead>tr>td.sorting::after,
table.dataTable thead>tr>td.sorting_asc::after,
table.dataTable thead>tr>td.sorting_desc::after,
table.dataTable thead>tr>td.sorting_asc_disabled::after,
table.dataTable thead>tr>td.sorting_desc_disabled::after {

    right: auto;
    left: 0;
}

/* DataTables Buttons */
.dt-buttons {
    margin-bottom: 1rem;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.dt-button {
    padding: 0.625rem 1.25rem !important;
    border-radius: 10px !important;
    font-weight: 600 !important;
    border: none !important;
    transition: all 0.2s !important;
    cursor: pointer !important;
    font-size: 0.9rem !important;
    background: linear-gradient(155deg, var(--theme-primary) 0%, var(--theme-primary) 55%, rgb(from var(--theme-secondary) r g b / 0.9) 100%) !important;
    color: white !important;
    box-shadow: 0 2px 8px color-mix(in srgb, var(--theme-primary) 20%, transparent) !important;
}

.dt-button:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px color-mix(in srgb, var(--theme-primary) 30%, transparent) !important;
}

.dataTables_processing {
    background: white !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1) !important;
    padding: 2rem !important;
    color: var(--theme-primary) !important;
    font-weight: 600 !important;
}

/* ============================================
   6. MODERN BUTTONS
   ============================================ */
.btn-modern {
    padding: 0.875rem 2rem;
    border-radius: 10px;
    font-weight: 600;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    transition: all 0.2s;
    cursor: pointer;
    font-size: 0.95rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.btn-modern:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.btn-modern:active {
    transform: translateY(0);
}

.btn-modern.btn-primary,
.btn-modern-primary {
    background: linear-gradient(155deg, var(--theme-primary) 0%, var(--theme-primary) 55%, rgb(from var(--theme-secondary) r g b / 0.9) 100%);
    color: white;
}

.btn-modern.btn-success,
.btn-modern-success {
    background: linear-gradient(135deg, var(--theme-success), var(--theme-secondary));
    color: white;
}

.btn-modern.btn-danger,
.btn-modern-danger {
    background: linear-gradient(135deg, var(--theme-danger), color-mix(in srgb, var(--theme-danger) 80%, black));
    color: white;
}

.btn-modern.btn-warning,
.btn-modern-warning {
    background: linear-gradient(135deg, var(--theme-warning), color-mix(in srgb, var(--theme-warning) 80%, black));
    color: var(--theme-text-dark);
}

.btn-modern.btn-info,
.btn-modern-info {
    background: linear-gradient(135deg, var(--theme-info), color-mix(in srgb, var(--theme-info) 80%, black));
    color: white;
}

.btn-view {
    padding: 0.5rem 1.25rem;
    border-radius: 10px;
    font-weight: 600;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s;
    cursor: pointer;
    font-size: 0.85rem;
    background: linear-gradient(155deg, var(--theme-primary) 0%, var(--theme-primary) 55%, rgb(from var(--theme-secondary) r g b / 0.9) 100%);
    color: white;
    text-decoration: none;
    box-shadow: 0 2px 8px color-mix(in srgb, var(--theme-primary) 20%, transparent);
}

.btn-view:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px color-mix(in srgb, var(--theme-primary) 30%, transparent);
    color: white;
    text-decoration: none;
}

/* ============================================
   7. MODERN FORMS
   ============================================ */
.form-modern {
    border-radius: 10px;
    border: 2px solid var(--theme-border);
    padding: 0.875rem 1.25rem;
    transition: all 0.2s;
    font-size: 0.95rem;
    width: 100%;
}

.form-modern:focus {
    border-color: var(--theme-primary);
    box-shadow: 0 0 0 0.25rem color-mix(in srgb, var(--theme-primary) 10%, transparent);
    outline: none;
}

.form-label-modern {
    font-weight: 600;
    color: var(--theme-text-dark);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-label-modern i {
    color: var(--theme-primary);
}

.form-group-modern {
    margin-bottom: 1.5rem;
}

/* ============================================
   8. DETAIL CONTAINERS
   ============================================ */
.details-container {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    margin-bottom: 2rem;
}

.details-header {
    background: linear-gradient(to right, var(--theme-bg-light), white);
    padding: 1.5rem 2rem;
    border-bottom: 2px solid var(--theme-border);
}

.details-header h2 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--theme-text-dark);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 0;
}

.details-header i {
    color: var(--theme-primary);
    font-size: 1.5rem;
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 0;
    border-bottom: 1px solid var(--theme-border);
}

.detail-row {
    display: flex;
    align-items: center;
    padding: 1.25rem 2rem;
    transition: all 0.2s;
    position: relative;
}

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

.detail-icon-wrapper {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: linear-gradient(155deg, var(--theme-primary) 0%, var(--theme-primary) 55%, rgb(from var(--theme-secondary) r g b / 0.9) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 1.25rem;
    flex-shrink: 0;
    box-shadow: 0 4px 12px color-mix(in srgb, var(--theme-primary) 20%, transparent);
}

.detail-icon-wrapper i {
    color: white;
    font-size: 1.25rem;
}

.detail-content {
    flex: 1;
    padding-left: 20px;
}

.detail-label {
    font-size: 0.85rem;
    color: var(--theme-text-muted);
    font-weight: 600;
    margin-bottom: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.detail-value {
    font-size: 1.1rem;
    color: var(--theme-text-dark);
    font-weight: 700;
}

/* ============================================
   9. SECTION DIVIDERS
   ============================================ */
.section-divider {
    background: transparent;
    padding: 1.5rem 2rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--theme-text-dark);
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.section-divider i {
    font-size: 1.1rem;
    color: var(--theme-primary);
    background: color-mix(in srgb, var(--theme-primary) 10%, transparent);
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}

/* ============================================
   10. ROUTE VISUALIZATION
   ============================================ */
.route-visual {
    padding: 2rem;
    background: white;
    border-radius: 16px;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.route-point {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    padding: 1.25rem;
    background: linear-gradient(135deg, color-mix(in srgb, var(--theme-primary) 5%, transparent), color-mix(in srgb, var(--theme-primary) 2%, transparent));
    border-radius: 12px;
    border: 2px solid color-mix(in srgb, var(--theme-primary) 10%, transparent);
    transition: all 0.3s;
    text-align: center;
}

.route-point:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px color-mix(in srgb, var(--theme-primary) 15%, transparent);
    border-color: color-mix(in srgb, var(--theme-primary) 30%, transparent);
}

.route-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
    flex-shrink: 0;
    box-shadow: 0 4px 12px color-mix(in srgb, var(--theme-primary) 20%, transparent);
    background: linear-gradient(155deg, var(--theme-primary) 0%, var(--theme-primary) 55%, rgb(from var(--theme-secondary) r g b / 0.9) 100%);
}

.route-label {
    font-size: 0.85rem;
    color: var(--theme-text-muted);
    font-weight: 600;
    margin-bottom: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.route-name {
    font-size: 1.1rem;
    color: var(--theme-text-dark);
    font-weight: 700;
}

.route-connector {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
    padding: 0 1rem;
}

.route-line {
    width: 100px;
    height: 3px;
    background: var(--theme-primary);
    border-radius: 2px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.route-car-icon {
    width: 40px;
    height: 40px;
    background: white;
    border: 3px solid var(--theme-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--theme-primary);
    font-size: 1rem;
    box-shadow: 0 4px 12px color-mix(in srgb, var(--theme-primary) 20%, transparent);
}

.route-display {
    display: flex;
    align-items: center;

    gap: 0.5rem;
    font-size: 0.9rem;
}

.route-display .origin {
    color: var(--theme-primary);
    font-weight: 600;
}

.route-display .arrow {
    color: var(--theme-text-muted);
    font-size: 1rem;
}

.route-display .destination {
    color: var(--theme-text-dark);
    font-weight: 600;
}

/* ============================================
   11. TIMELINE
   ============================================ */
.timeline-container {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    margin-bottom: 2rem;
}

.timeline-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--theme-text-dark);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--theme-bg-light);
}

.timeline-title i {
    color: var(--theme-primary);
    font-size: 1.5rem;
}

.timeline-scroll {
    position: relative;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 1.5rem 0;
}

.timeline-track {
    display: flex;
    gap: 5rem;
    position: relative;
    min-width: min-content;
    padding-bottom: 1rem;
}

.timeline-track::before {
    content: '';
    position: absolute;
    top: 24px;
    left: 24px;
    right: 24px;
    height: 2px;
    background: var(--theme-border);
    z-index: 0;
}

.timeline-item {
    position: relative;
    min-width: 240px;
    max-width: 300px;
    z-index: 1;
}

.timeline-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    font-size: 1.25rem;
    margin: 0 auto 1.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border: 2px solid var(--timeline-color, var(--theme-primary));
    color: var(--timeline-color, var(--theme-primary));
    position: relative;
    z-index: 2;
    transition: all 0.3s;
}

.timeline-item:hover .timeline-icon {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
    background: var(--timeline-color, var(--theme-primary));
    color: white;
}

.timeline-card {
    background: white;
    border-radius: 14px;
    padding: 1.25rem;
    border: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    overflow: hidden;
}

/* Colored accent bar at top of card */
.timeline-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--timeline-color, var(--theme-primary)), color-mix(in srgb, var(--timeline-color, var(--theme-primary)) 60%, white));
    border-radius: 14px 14px 0 0;
}

.timeline-card:hover {
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
    transform: translateY(-6px);
}

.timeline-action {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--timeline-color, var(--theme-text-dark));
    margin-bottom: 0.75rem;
    line-height: 1.5;
    text-align: center;
    padding-top: 0.25rem;
}

.timeline-time {
    font-size: 0.8rem;
    color: var(--theme-text-muted);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.15rem;
    margin-bottom: 0.75rem;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    background: var(--theme-bg-light);
}

.timeline-time span:first-child {
    font-weight: 600;
    color: var(--theme-text-dark);
}

.timeline-user {
    font-size: 0.8rem;
    color: var(--theme-text-dark);
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.6rem 0.75rem;
    margin-top: 0.5rem;
    background: color-mix(in srgb, var(--timeline-color, var(--theme-primary)) 6%, white);
    border-radius: 8px;
}

.timeline-user i {
    color: var(--timeline-color, var(--theme-primary));
    font-size: 0.85rem;
}

.timeline-empty {
    text-align: center;
    padding: 3rem;
    color: var(--theme-text-muted);
}

.timeline-empty i {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    opacity: 0.2;
}

/* ============================================
   12. ACTION BOXES
   ============================================ */
.action-box {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    margin-bottom: 2rem;
    border: 2px solid transparent;
    transition: all 0.3s;
}

.action-box:hover {
    border-color: color-mix(in srgb, var(--theme-primary) 15%, transparent);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.action-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--theme-text-dark);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--theme-border);
}

.action-title i {
    color: var(--theme-primary);
    font-size: 1.25rem;
}

/* ============================================
   13. CARDS
   ============================================ */
.modern-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    transition: all 0.3s;
}

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

.modern-card-header {
    background: linear-gradient(155deg, var(--theme-primary) 0%, var(--theme-primary) 55%, rgb(from var(--theme-secondary) r g b / 0.9) 100%);
    color: white;
    padding: 1.25rem 1.5rem;
    font-weight: 700;
    font-size: 1.1rem;
}

.modern-card-body {
    padding: 1.5rem;
}



.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
}

.stat-icon-primary {
    background: linear-gradient(155deg, var(--theme-primary) 0%, var(--theme-primary) 55%, rgb(from var(--theme-secondary) r g b / 0.9) 100%);
}

.stat-icon-success {
    background: linear-gradient(135deg, var(--theme-success), var(--theme-secondary));
}

.stat-icon-warning {
    background: linear-gradient(135deg, var(--theme-warning), color-mix(in srgb, var(--theme-warning) 80%, black));
}

.stat-icon-danger {
    background: linear-gradient(135deg, var(--theme-danger), color-mix(in srgb, var(--theme-danger) 80%, black));
}

.stat-icon-info {
    background: linear-gradient(135deg, var(--theme-info), color-mix(in srgb, var(--theme-info) 80%, black));
}

.stat-content {
    flex: 1;
}

.stat-value {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--theme-text-dark);
    line-height: 1;
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--theme-text-muted);
    font-weight: 600;
}

/* ============================================
   14. ALERTS
   ============================================ */
.alert-box {
    border-radius: 12px;
    border: none;
    padding: 1.25rem 1.5rem;
    margin-bottom: 1.5rem;
}

.alert-box-warning {
    background: linear-gradient(135deg, color-mix(in srgb, var(--theme-warning) 10%, transparent), color-mix(in srgb, var(--theme-warning) 5%, transparent));
    border-right: 4px solid var(--theme-warning);
    color: color-mix(in srgb, var(--theme-warning) 70%, black);
}

.alert-box-danger {
    background: linear-gradient(135deg, color-mix(in srgb, var(--theme-danger) 10%, transparent), color-mix(in srgb, var(--theme-danger) 5%, transparent));
    border-right: 4px solid var(--theme-danger);
    color: color-mix(in srgb, var(--theme-danger) 70%, black);
}

.alert-box-success {
    background: linear-gradient(135deg, color-mix(in srgb, var(--theme-success) 10%, transparent), color-mix(in srgb, var(--theme-success) 5%, transparent));
    border-right: 4px solid var(--theme-success);
    color: color-mix(in srgb, var(--theme-success) 70%, black);
}

.alert-box-info {
    background: linear-gradient(135deg, color-mix(in srgb, var(--theme-info) 10%, transparent), color-mix(in srgb, var(--theme-info) 5%, transparent));
    border-right: 4px solid var(--theme-info);
    color: var(--theme-info);
}

/* ============================================
   15. EMPTY STATE
   ============================================ */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--theme-text-muted);
}

.empty-state i {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    opacity: 0.3;
    color: var(--theme-primary);
}

.empty-state h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--theme-text-dark);
    margin-bottom: 0.5rem;
}

.empty-state p {
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

.empty-assignment {
    text-align: center;
    padding: 3rem 2rem;
    color: var(--theme-text-muted);
    background: color-mix(in srgb, var(--theme-primary) 3%, transparent);
    border-radius: 12px;
    margin: 0 2rem 1rem;
}

.empty-assignment i {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    opacity: 0.3;
    color: var(--theme-primary);
}

.empty-assignment p {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 600;
}

/* ============================================
   16. IMAGE PREVIEW MODAL
   ============================================ */
.image-preview-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.image-preview-overlay.active {
    opacity: 1;
    visibility: visible;
}

.image-preview-content {
    max-width: 90%;
    max-height: 90%;
}

.image-preview-content img {
    max-width: 100%;
    max-height: 90vh;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.image-preview-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 2rem;
    color: white;
    cursor: pointer;
    transition: all 0.3s;
}

.image-preview-close:hover {
    transform: scale(1.2);
}

/* ============================================
   17. RESPONSIVE ADJUSTMENTS
   ============================================ */
@media (max-width: 768px) {
    .modern-header {
        padding: 1.5rem;
    }

    .page-title {
        font-size: 1.5rem;
    }

    .table-container {
        padding: 1rem;
    }

    .table thead th {
        font-size: 0.75rem;
        padding: 0.75rem !important;
    }

    .table tbody td {
        font-size: 0.85rem;
        padding: 0.75rem !important;
    }

    .details-grid {
        grid-template-columns: 1fr;
    }

    .detail-row {
        padding: 1rem 1.5rem;
    }

    .timeline-item {
        min-width: 200px;
    }

    .status-pill {
        font-size: 0.85rem;
        padding: 0.625rem 1.25rem;
    }

    .route-visual {
        flex-direction: column;
    }

    .route-connector {
        transform: rotate(90deg);
    }
}

/* ============================================
   18. UTILITY CLASSES
   ============================================ */
.text-primary-theme {
    color: var(--theme-primary) !important;
}

.text-success-theme {
    color: var(--theme-success) !important;
}

.text-warning-theme {
    color: var(--theme-warning) !important;
}

.text-danger-theme {
    color: var(--theme-danger) !important;
}

.text-info-theme {
    color: var(--theme-info) !important;
}

.bg-primary-theme {
    background-color: var(--theme-primary) !important;
}

.bg-primary-soft {
    background-color: var(--theme-primary-soft) !important;
}

.bg-primary-bg {
    background-color: var(--theme-primary-bg) !important;
}

.border-primary-theme {
    border-color: var(--theme-primary) !important;
}

.shadow-primary {
    box-shadow: 0 4px 12px color-mix(in srgb, var(--theme-primary) 20%, transparent) !important;
}

.rounded-modern {
    border-radius: 16px !important;
}

.rounded-modern-sm {
    border-radius: 10px !important;
}

/* Gradient Backgrounds */
.gradient-primary {
    background: linear-gradient(155deg, var(--theme-primary) 0%, var(--theme-primary) 55%, rgb(from var(--theme-secondary) r g b / 0.9) 100%) !important;
}

.gradient-success {
    background: linear-gradient(135deg, var(--theme-success), var(--theme-secondary)) !important;
}

.gradient-danger {
    background: linear-gradient(135deg, var(--theme-danger), color-mix(in srgb, var(--theme-danger) 80%, black)) !important;
}

.gradient-warning {
    background: linear-gradient(135deg, var(--theme-warning), color-mix(in srgb, var(--theme-warning) 80%, black)) !important;
}

.gradient-info {
    background: linear-gradient(135deg, var(--theme-info), color-mix(in srgb, var(--theme-info) 80%, black)) !important;
}

/* ============================================
   19. AUTH PAGES (Login, Register, Password Reset)
   ============================================ */
.auth-body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.auth-body img {
    filter: brightness(0) invert(1);
}

.auth-container {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 450px;
    width: 100%;
    overflow: hidden;
}

.auth-header {
    background: linear-gradient(155deg, var(--theme-primary) 0%, var(--theme-primary) 55%, rgb(from var(--theme-secondary) r g b / 0.9) 100%);
    padding: 40px 30px;
    text-align: center;
    color: white;
}

.auth-header .logo {
    font-size: 60px;
    margin-bottom: 20px;
}

.auth-header h1 {
    margin: 0;
    font-size: 28px;
    font-weight: 700;
}

.auth-header p {
    margin: 10px 0 0;
    opacity: 0.9;
    font-size: 14px;
}

.auth-body-content {
    padding: 40px 30px;
}

.auth-form-group {
    margin-bottom: 25px;
}

.auth-form-group label {
    font-weight: 600;
    color: var(--theme-text-dark);
    margin-bottom: 8px;
    display: block;
}

.auth-form-control {
    border: 2px solid var(--theme-border);
    border-radius: 10px;
    padding: 15px 50px 15px 15px;
    font-size: 14px;
    transition: all 0.3s;
    width: 100%;
}

.auth-form-control:focus {
    border-color: var(--theme-primary);
    box-shadow: 0 0 0 0.2rem color-mix(in srgb, var(--theme-primary) 15%, transparent);
    outline: none;
}

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

.auth-input-icon i {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--theme-primary);
    font-size: 16px;
}

.btn-auth {
    background: linear-gradient(155deg, var(--theme-primary) 0%, var(--theme-primary) 55%, rgb(from var(--theme-secondary) r g b / 0.9) 100%);
    color: white;
    border: none;
    padding: 15px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    width: 100%;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 12px color-mix(in srgb, var(--theme-primary) 30%, transparent);
}

.btn-auth:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px color-mix(in srgb, var(--theme-primary) 40%, transparent);
}

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

.auth-remember-me {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.auth-remember-me input[type="checkbox"] {
    margin-left: 8px;
    transform: scale(1.2);
}

.auth-links {
    text-align: center;
    margin-top: 25px;
    padding-top: 25px;
    border-top: 1px solid var(--theme-border);
}

.auth-links a {
    color: var(--theme-primary);
    font-weight: 600;
    text-decoration: none;
    display: block;
    margin-bottom: 10px;
}

.auth-links a:hover {
    text-decoration: underline;
}

.btn-auth-secondary {
    background: linear-gradient(135deg, var(--theme-bg-light), var(--theme-border));
    border: 2px solid var(--theme-primary);
    color: var(--theme-primary);
    padding: 12px 20px;
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.3s;
    display: inline-block;
    width: 100%;
    margin-top: 10px;
    text-decoration: none;
    text-align: center;
}

.btn-auth-secondary:hover {
    background: var(--theme-primary);
    color: white;
    text-decoration: none;
}

/* Login/Register Page Specific Classes (aliases for auth-*) */
.login-container,
.register-container {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 450px;
    width: 100%;
    overflow: hidden;
}

.login-header,
.register-header {
    background: linear-gradient(155deg, var(--theme-primary) 0%, var(--theme-primary) 55%, rgb(from var(--theme-secondary) r g b / 0.9) 100%);
    padding: 40px 30px;
    text-align: center;
    color: white;
}

.login-header .logo,
.register-header .logo {
    font-size: 60px;
    margin-bottom: 20px;
}

.login-header h1,
.register-header h1 {
    margin: 0;
    font-size: 28px;
    font-weight: 700;
}

.login-header p,
.register-header p {
    margin: 10px 0 0;
    opacity: 0.9;
    font-size: 14px;
}

.login-body,
.register-body {
    padding: 40px 30px;
}

.input-icon {
    position: relative;
}

.input-icon i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--theme-primary);
    font-size: 16px;
}

.btn-login,
.btn-register {
    background: linear-gradient(155deg, var(--theme-primary) 0%, var(--theme-primary) 55%, rgb(from var(--theme-secondary) r g b / 0.9) 100%);
    color: white;
    border: none;
    padding: 15px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    width: 100%;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 12px color-mix(in srgb, var(--theme-primary) 30%, transparent);
}

.btn-login:hover,
.btn-register:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px color-mix(in srgb, var(--theme-primary) 40%, transparent);
}

.btn-login:disabled,
.btn-register:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.remember-me {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.remember-me input[type="checkbox"] {
    margin-left: 8px;
    transform: scale(1.2);
}

.links {
    text-align: center;
    margin-top: 25px;
    padding-top: 25px;
    border-top: 1px solid var(--theme-border);
}

.links a {
    color: var(--theme-primary);
    font-weight: 600;
    text-decoration: none;
    display: block;
    margin-bottom: 10px;
}

.links a:hover {
    text-decoration: underline;
}

.register-link,
.login-link {
    background: linear-gradient(135deg, var(--theme-bg-light), var(--theme-border));
    border: 2px solid var(--theme-primary);
    color: var(--theme-primary) !important;
    padding: 12px 20px;
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.3s;
    display: inline-block;
    width: 100%;
    margin-top: 10px;
    text-align: center;
}

.register-link:hover,
.login-link:hover {
    background: var(--theme-primary);
    color: white !important;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px color-mix(in srgb, var(--theme-primary) 30%, transparent);
}

/* ============================================
   20. FORM CONTAINERS (CRUD Pages)
   ============================================ */
.form-container {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    padding: 2rem;
}

.form-section-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--theme-primary);
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--theme-border);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    font-weight: 600;
    color: var(--theme-text-dark);
    margin-bottom: 0.5rem;
    display: block;
    font-size: 0.95rem;
}

.form-group label .required {
    color: var(--theme-danger);
    margin-right: 0.25rem;
}

.form-control,
.form-select {
    border-radius: 10px;
    border: 2px solid var(--theme-border);
    transition: all 0.2s;
    font-size: 0.95rem;
    width: 100%;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--theme-primary);
    box-shadow: 0 0 0 0.25rem color-mix(in srgb, var(--theme-primary) 10%, transparent);
    outline: none;
}

.form-control.is-invalid {
    border-color: var(--theme-danger);
}

.form-control.is-invalid:focus {
    box-shadow: 0 0 0 0.25rem color-mix(in srgb, var(--theme-danger) 10%, transparent);
}

.invalid-feedback {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: var(--theme-danger);
}

.form-text {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: var(--theme-text-muted);
}

/* Form Actions */
.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid var(--theme-border);
}

.btn-save {
    padding: 0.75rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.2s;
    cursor: pointer;
    font-size: 1rem;
    background: linear-gradient(155deg, var(--theme-primary) 0%, var(--theme-primary) 55%, rgb(from var(--theme-secondary) r g b / 0.9) 100%);
    color: white;
    box-shadow: 0 4px 12px color-mix(in srgb, var(--theme-primary) 20%, transparent);
}

.btn-save:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px color-mix(in srgb, var(--theme-primary) 30%, transparent);
}

.btn-cancel {
    padding: 0.75rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    border: 2px solid var(--theme-border);
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.2s;
    cursor: pointer;
    font-size: 1rem;
    background: white;
    color: var(--theme-text-dark);
    text-decoration: none;
}

.btn-cancel:hover {
    border-color: var(--theme-text-muted);
    background: var(--theme-bg-light);
    color: var(--theme-text-dark);
    text-decoration: none;
}

/* Button Group Container */
.button-group {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid var(--theme-border);
}

/* ============================================
   21. ADD/EDIT BUTTONS
   ============================================ */
.btn-add {
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    font-weight: 600;
    border: 2px solid white;
    background: white;
    color: var(--theme-primary);
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.2s;
    cursor: pointer;
    font-size: 1rem;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.btn-add:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    color: var(--theme-primary);
    text-decoration: none;
}

.btn-edit {
    padding: 0.5rem 1rem;
    border-radius: 10px;
    font-weight: 600;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s;
    cursor: pointer;
    font-size: 0.85rem;
    background: linear-gradient(135deg, var(--theme-warning), color-mix(in srgb, var(--theme-warning) 80%, black));
    color: var(--white);
    text-decoration: none;
    box-shadow: 0 2px 8px color-mix(in srgb, var(--theme-warning) 20%, transparent);
    margin-left: 0.5rem;
}

.btn-edit:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px color-mix(in srgb, var(--theme-warning) 30%, transparent);
    color: var(--white);
    text-decoration: none;
}

.btn-delete {
    padding: 0.5rem 1rem;
    border-radius: 10px;
    font-weight: 600;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s;
    cursor: pointer;
    font-size: 0.85rem;
    background: linear-gradient(135deg, var(--theme-danger), color-mix(in srgb, var(--theme-danger) 80%, black));
    color: white;
    box-shadow: 0 2px 8px color-mix(in srgb, var(--theme-danger) 20%, transparent);
}

.btn-delete:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px color-mix(in srgb, var(--theme-danger) 30%, transparent);
}

/* ============================================
   22. EMPLOYEE INFO SECTION
   ============================================ */
.employee-info {
    background: linear-gradient(135deg, color-mix(in srgb, var(--theme-primary) 8%, transparent), color-mix(in srgb, var(--theme-primary) 2%, transparent));
    border: 1px solid color-mix(in srgb, var(--theme-primary) 20%, transparent);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.employee-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.employee-info-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.employee-info-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(155deg, var(--theme-primary) 0%, var(--theme-primary) 55%, rgb(from var(--theme-secondary) r g b / 0.9) 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.1rem;
}

.employee-info-content {
    flex: 1;
}

.employee-info-label {
    font-size: 0.8rem;
    color: var(--theme-text-muted);
    margin-bottom: 0.25rem;
}

.employee-info-value {
    font-weight: 600;
    color: var(--theme-text-dark);
}

/* ============================================
   23. PROFILE PAGES
   ============================================ */
.profile-container {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2rem;
}

.profile-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    padding: 2rem;
    text-align: center;
}

.profile-avatar {
    width: 120px;
    height: 120px;
    background: linear-gradient(155deg, var(--theme-primary) 0%, var(--theme-primary) 55%, rgb(from var(--theme-secondary) r g b / 0.9) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 3rem;
    color: white;
    box-shadow: 0 4px 12px color-mix(in srgb, var(--theme-primary) 20%, transparent);
}

.profile-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--theme-text-dark);
    margin-bottom: 0.5rem;
}

.profile-email {
    color: var(--theme-text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.profile-status {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.85rem;
}

.profile-status.active {
    background: linear-gradient(135deg, color-mix(in srgb, var(--theme-success) 15%, transparent), color-mix(in srgb, var(--theme-success) 5%, transparent));
    color: color-mix(in srgb, var(--theme-success) 70%, black);
    border: 1px solid color-mix(in srgb, var(--theme-success) 30%, transparent);
}

.profile-status.inactive {
    background: linear-gradient(135deg, color-mix(in srgb, var(--theme-danger) 15%, transparent), color-mix(in srgb, var(--theme-danger) 5%, transparent));
    color: color-mix(in srgb, var(--theme-danger) 70%, black);
    border: 1px solid color-mix(in srgb, var(--theme-danger) 30%, transparent);
}

/* Info Card */
.info-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    padding: 2rem;
}

.info-section {
    margin-bottom: 2rem;
}

.info-section:last-child {
    margin-bottom: 0;
}

.info-section-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--theme-primary);
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--theme-border);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.info-row {
    display: flex;
    padding: 1rem 0;
    border-bottom: 1px solid var(--theme-border);
}

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

.info-label {
    font-weight: 600;
    color: var(--theme-text-dark);
    min-width: 150px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.info-label i {
    color: var(--theme-primary);
    width: 20px;
}

.info-value {
    color: var(--theme-text-muted);
    flex: 1;
}

/* Role Badges */
.role-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
    font-weight: 500;
    font-size: 0.85rem;
    background: linear-gradient(135deg, color-mix(in srgb, var(--theme-primary) 15%, transparent), color-mix(in srgb, var(--theme-primary) 5%, transparent));
    color: var(--theme-primary-dark);
    border: 1px solid color-mix(in srgb, var(--theme-primary) 30%, transparent);
}

/* ============================================
   24. NOTIFICATION STYLES
   ============================================ */
.notification-dropdown-item {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--theme-border);
    transition: all 0.2s;
    display: block;
    color: var(--theme-text-dark);
    text-decoration: none;
}

.notification-dropdown-item:hover {
    background: linear-gradient(to right, color-mix(in srgb, var(--theme-primary) 5%, transparent), transparent);
    color: var(--theme-text-dark);
    text-decoration: none;
}

.notification-dropdown-item.unread {
    background: linear-gradient(to right, color-mix(in srgb, var(--theme-info) 8%, transparent), transparent);
}

.notification-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(155deg, var(--theme-primary) 0%, var(--theme-primary) 55%, rgb(from var(--theme-secondary) r g b / 0.9) 100%);
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.1rem;
    margin-left: 0.75rem;
    flex-shrink: 0;
}

.notification-content {
    flex: 1;
    min-width: 0;
}

.notification-message {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--theme-text-dark);
    margin-bottom: 0.25rem;
    line-height: 1.4;
}

.notification-time {
    font-size: 0.8rem;
    color: var(--theme-text-muted);
}

.notification-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    background: linear-gradient(135deg, color-mix(in srgb, var(--theme-primary) 15%, transparent), color-mix(in srgb, var(--theme-primary) 5%, transparent));
    color: var(--theme-primary);
    border: 1px solid color-mix(in srgb, var(--theme-primary) 30%, transparent);
    margin-right: 0.5rem;
}

.no-notifications {
    padding: 2rem 1.25rem;
    text-align: center;
    color: var(--theme-text-muted);
    font-size: 0.9rem;
}

.no-notifications i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    opacity: 0.5;
}

/* ============================================
   25. IMAGE UPLOAD
   ============================================ */
.image-upload-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
}

.image-upload-box {
    position: relative;
    width: 180px;
    height: 180px;
}

.image-preview-circle {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: linear-gradient(135deg, color-mix(in srgb, var(--theme-primary) 10%, transparent), color-mix(in srgb, var(--theme-primary) 5%, transparent));
    border: 4px solid var(--theme-primary);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 24px color-mix(in srgb, var(--theme-primary) 15%, transparent);
}

.image-preview-circle:hover {
    border-color: var(--theme-primary-light);
}

.upload-placeholder {
    text-align: center;
    pointer-events: none;
    transition: all 0.3s ease;
}

.upload-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(155deg, var(--theme-primary) 0%, var(--theme-primary) 55%, rgb(from var(--theme-secondary) r g b / 0.9) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    box-shadow: 0 4px 12px color-mix(in srgb, var(--theme-primary) 20%, transparent);
}

.upload-icon i {
    font-size: 2rem;
    color: white;
}

.upload-text {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--theme-primary);
    margin-bottom: 0.25rem;
}

.upload-hint {
    font-size: 0.75rem;
    color: var(--theme-text-muted);
}

.preview-image {
    width: 100%;
}

.image-preview-circle.has-image .upload-placeholder {
    display: none;
}

.image-preview-circle.drag-over {
    border-color: var(--theme-primary);
    background: color-mix(in srgb, var(--theme-primary) 5%, white);
    transform: scale(1.02);
}

.remove-image-btn {
    position: absolute;
    top: 0;
    right: 0;
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--theme-danger), color-mix(in srgb, var(--theme-danger) 80%, black));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 2px 8px color-mix(in srgb, var(--theme-danger) 30%, transparent);
    z-index: 10;
}

.remove-image-btn i {
    color: white;
    font-size: 0.85rem;
}

.remove-image-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px color-mix(in srgb, var(--theme-danger) 40%, transparent);
}

/* ============================================
   EDIT PAGE BUTTONS  
   ============================================ */
.btn-update {
    padding: 0.875rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.2s;
    cursor: pointer;
    font-size: 1rem;
    background: linear-gradient(155deg, var(--theme-primary) 0%, var(--theme-primary) 55%, rgb(from var(--theme-secondary) r g b / 0.9) 100%);
    color: white;
    box-shadow: 0 4px 12px color-mix(in srgb, var(--theme-primary) 20%, transparent);
}

.btn-update:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px color-mix(in srgb, var(--theme-primary) 30%, transparent);
    color: white;
}

/* ============================================
   MODERN FORM ELEMENTS (cars/edit, etc)
   ============================================ */
.form-label-modern {
    font-weight: 600;
    color: var(--theme-text);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
}

.form-label-modern i {
    color: var(--theme-primary);
}

.form-modern {
    border: 2px solid var(--theme-border);
    border-radius: 10px;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    transition: all 0.2s;
    width: 100%;
    background: white;
}

.form-modern:focus {
    border-color: var(--theme-primary);
    box-shadow: 0 0 0 0.25rem color-mix(in srgb, var(--theme-primary) 10%, transparent);
    outline: none;
}

.form-modern::placeholder {
    color: var(--theme-text-muted);
}

/* btn-modern styles */
.btn-modern {
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    font-weight: 600;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s;
    cursor: pointer;
    font-size: 0.95rem;
    text-decoration: none;
}

.btn-modern.btn-primary {
    background: linear-gradient(155deg, var(--theme-primary) 0%, var(--theme-primary) 55%, rgb(from var(--theme-secondary) r g b / 0.9) 100%);
    color: white;
    box-shadow: 0 4px 12px color-mix(in srgb, var(--theme-primary) 20%, transparent);
}

.btn-modern.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px color-mix(in srgb, var(--theme-primary) 30%, transparent);
    color: white;
}

.btn-modern.btn-secondary {
    background: white;
    color: var(--theme-text-muted);
    border: 2px solid var(--theme-border);
}

.btn-modern.btn-secondary:hover {
    background: var(--theme-bg-alt);
    color: var(--theme-text);
}

/* ============================================
   PROFILE EDIT IMAGE UPLOAD
   ============================================ */
.image-upload-container {
    position: relative;
    display: inline-block;
}

.image-preview {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 3px dashed var(--theme-border);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    background: var(--theme-bg-light);
    overflow: hidden;
    position: relative;
}

.image-preview:hover {
    border-color: var(--theme-primary);
    background: color-mix(in srgb, var(--theme-primary) 5%, white);
}

.image-preview.drag-over {
    border-color: var(--theme-primary);
    background: color-mix(in srgb, var(--theme-primary) 10%, white);
    transform: scale(1.02);
}

.image-preview.has-image {
    border-style: solid;
    border-color: var(--theme-primary);
}

.image-preview i {
    font-size: 3rem;
    color: var(--theme-text-muted);
    margin-bottom: 0.5rem;
}

.image-preview p {
    font-size: 0.85rem;
    color: var(--theme-text-muted);
    text-align: center;
    margin: 0;
}

.image-preview .file-info {
    font-size: 0.75rem;
    color: var(--theme-text-muted);
    margin-top: 0.25rem;
}

.image-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.btn-remove-image {
    position: absolute;
    top: 0;
    right: 0;
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--theme-danger), color-mix(in srgb, var(--theme-danger) 80%, black));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 2px 8px color-mix(in srgb, var(--theme-danger) 30%, transparent);
    border: none;
    color: white;
}

.btn-remove-image:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px color-mix(in srgb, var(--theme-danger) 40%, transparent);
}

/* ============================================
   DASHBOARD STAT CARDS
   ============================================ */
.welcome-text {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    margin-top: 1rem;
    margin-bottom: 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    transition: all 0.3s;
}

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

.stat-card.info {
    border-right-color: var(--theme-info);
}

.stat-card.success {
    border-right-color: var(--theme-success);
}

.stat-card.warning {
    border-right-color: var(--theme-warning);
}

.stat-card.danger {
    border-right-color: var(--theme-danger);
}

.stat-card.primary {
    border-right-color: var(--theme-primary);
}

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

.stat-card .stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
}

.stat-card.info .stat-icon {
    background: linear-gradient(135deg, var(--theme-info), color-mix(in srgb, var(--theme-info) 80%, black));
}

.stat-card.success .stat-icon {
    background: linear-gradient(135deg, var(--theme-success), var(--theme-secondary));
}

.stat-card.warning .stat-icon {
    background: linear-gradient(135deg, var(--theme-warning), color-mix(in srgb, var(--theme-warning) 80%, black));
}

.stat-card.danger .stat-icon {
    background: linear-gradient(135deg, var(--theme-danger), color-mix(in srgb, var(--theme-danger) 80%, black));
}

.stat-card.primary .stat-icon {
    background: linear-gradient(155deg, var(--theme-primary) 0%, var(--theme-primary) 55%, rgb(from var(--theme-secondary) r g b / 0.9) 100%);
}

.stat-card .stat-value {
    font-size: 2rem;
    font-weight: 800;
    color: var(--theme-text-dark);
    line-height: 1;
    margin-bottom: 0.25rem;
}

.stat-card .stat-label {
    font-size: 0.9rem;
    color: var(--theme-text-muted);
    font-weight: 600;
}

.stat-footer {
    border-top: 1px solid var(--theme-border);
    padding-top: 1rem;
    margin-top: 0.5rem;
}

.stat-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--theme-primary);
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.2s;
}

.stat-link:hover {
    opacity: 0.8;
}

.stat-link i {
    transition: transform 0.2s;
}

.stat-link:hover i {
    transform: translateX(-4px);
}

/* Stat-link colors based on stat-card variant */
.stat-card.info .stat-link {
    color: var(--theme-info);
}

.stat-card.success .stat-link {
    color: var(--theme-success);
}

.stat-card.warning .stat-link {
    color: color-mix(in srgb, var(--theme-warning) 70%, black);
}

.stat-card.danger .stat-link {
    color: var(--theme-danger);
}

.stat-card.primary .stat-link {
    color: var(--theme-primary);
}

/* Dashboard Action Cards */
.action-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.action-card {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    transition: all 0.3s;
}

.action-card:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.action-card-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--theme-text-dark);
    margin-bottom: 0.75rem;
}

.action-card-title i {
    color: var(--theme-primary);
    font-size: 1.25rem;
}

.action-card-description {
    color: var(--theme-text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1.25rem;
}

.action-card .action-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.action-btn {
    padding: 0.625rem 1rem;
    border-radius: 10px;
    font-weight: 600;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s;
    cursor: pointer;
    font-size: 0.85rem;
    text-decoration: none;
    color: white;
}

.action-btn.primary {
    background: linear-gradient(155deg, var(--theme-primary) 0%, var(--theme-primary) 55%, rgb(from var(--theme-secondary) r g b / 0.9) 100%);
    box-shadow: 0 2px 8px color-mix(in srgb, var(--theme-primary) 20%, transparent);
}

.action-btn.success {
    background: linear-gradient(135deg, var(--theme-success), var(--theme-secondary));
    box-shadow: 0 2px 8px color-mix(in srgb, var(--theme-success) 20%, transparent);
}

.action-btn.warning {
    background: linear-gradient(135deg, var(--theme-warning), color-mix(in srgb, var(--theme-warning) 80%, black));
    color: var(--theme-text-dark);
    box-shadow: 0 2px 8px color-mix(in srgb, var(--theme-warning) 20%, transparent);
}

.action-btn.danger {
    background: linear-gradient(135deg, var(--theme-danger), color-mix(in srgb, var(--theme-danger) 80%, black));
    box-shadow: 0 2px 8px color-mix(in srgb, var(--theme-danger) 20%, transparent);
}

.action-btn.info {
    background: linear-gradient(135deg, var(--theme-info), color-mix(in srgb, var(--theme-info) 80%, black));
    box-shadow: 0 2px 8px color-mix(in srgb, var(--theme-info) 20%, transparent);
}

.action-btn:hover {
    transform: translateY(-2px);
    color: white;
}

.action-btn.warning:hover {
    color: var(--theme-text-dark);
}

/* Dashboard Overview Card */
.overview-card {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    margin-bottom: 2rem;
}

.overview-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--theme-text-dark);
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--theme-border);
}

.overview-title i {
    color: var(--theme-primary);
    font-size: 1.25rem;
}

.overview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
}

.overview-item {
    text-align: center;
    padding: 1rem;
    border-radius: 12px;
    background: linear-gradient(135deg, color-mix(in srgb, var(--theme-primary) 5%, white), color-mix(in srgb, var(--theme-primary) 2%, white));
    border: 1px solid color-mix(in srgb, var(--theme-primary) 10%, transparent);
    transition: all 0.3s;
}

.overview-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px color-mix(in srgb, var(--theme-primary) 15%, transparent);
}

.overview-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(155deg, var(--theme-primary) 0%, var(--theme-primary) 55%, rgb(from var(--theme-secondary) r g b / 0.9) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.75rem;
    color: white;
    font-size: 1.25rem;
    box-shadow: 0 4px 12px color-mix(in srgb, var(--theme-primary) 20%, transparent);
}

.overview-number {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--theme-primary);
    line-height: 1;
    margin-bottom: 0.25rem;
}

.overview-label {
    font-size: 0.85rem;
    color: var(--theme-text-muted);
    font-weight: 600;
}

/* ============================================
   ROUTE CARD - MODERN DESIGN
   ============================================ */
.route-card {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
}

.route-card-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

/* Location Blocks (Origin & Destination) */
.route-location {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
    padding: 1rem 1.25rem;
    background: var(--theme-bg-light);
    border-radius: 12px;
    transition: all 0.3s;
}

.route-location:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* Marker Icons */
.route-marker {
    position: relative;
    width: 50px;
    height: 50px;
    background: linear-gradient(155deg, var(--theme-primary) 0%, var(--theme-primary) 55%, rgb(from var(--theme-secondary) r g b / 0.9) 100%);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
    box-shadow: 0 4px 12px color-mix(in srgb, var(--theme-primary) 25%, transparent);
    flex-shrink: 0;
}

.route-marker .route-marker-dot {
    position: absolute;
    top: -3px;
    right: -3px;
    width: 12px;
    height: 12px;
    background: var(--theme-success);
    border-radius: 50%;
    border: 2px solid white;
    animation: pulse-dot 2s ease-in-out infinite;
}

.destination-marker {
    background: linear-gradient(135deg, var(--theme-success), var(--theme-secondary));
    box-shadow: 0 4px 12px color-mix(in srgb, var(--theme-success) 25%, transparent);
}

.destination-marker .route-marker-dot {
    background: var(--theme-primary);
}

@keyframes pulse-dot {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.2);
        opacity: 0.7;
    }
}

/* Location Details */
.route-details {
    flex: 1;
    min-width: 0;
}

.route-type {
    font-size: 0.75rem;
    color: var(--theme-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
    display: block;
    margin-bottom: 0.25rem;
}

.route-place {
    font-size: 1rem;
    font-weight: 700;
    color: var(--theme-text-dark);
    margin: 0;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Route Path (Connector) - Enhanced */
.route-path {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 0;
    min-width: 140px;
    position: relative;
}

/* The Road - Gradient from origin to destination */
.route-line-track {
    width: 100%;
    height: 40px;
    background: var(--theme-secondary);
    border-radius: 2px;
    position: relative;
}

/* White dashed center line */
.route-line-track::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 10%;
    right: 10%;
    height: 2px;
    transform: translateY(-50%);
    background: repeating-linear-gradient(90deg,
            white 0px,
            white 6px,
            transparent 6px,
            transparent 14px);
    opacity: 0.8;
}

.route-line-track::after {
    display: none;
}

.route-line-progress {
    display: none;
}

/* Car in the center of the road */
.route-vehicle {
    position: absolute;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--theme-primary-soft);
    font-size: 1.3rem;
    z-index: 2;
}

.route-vehicle i {
    transform: scaleX(-1);
}

/* Route responsive */
@media (max-width: 768px) {
    .route-card-inner {
        flex-direction: column;
    }

    .route-path {
        transform: rotate(90deg);
        padding: 0.5rem 0;
    }

    .route-location {
        width: 100%;
    }
}

/* ============================================
   REQUEST SHOW PAGE STYLES
   ============================================ */
.details-container {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    margin-bottom: 2rem;
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
}

.route-info {
    flex: 1;
}

.route-origin .route-icon {
    background: linear-gradient(155deg, var(--theme-primary) 0%, var(--theme-primary) 55%, rgb(from var(--theme-secondary) r g b / 0.9) 100%);
}

.route-destination .route-icon {
    background: linear-gradient(135deg, var(--theme-success), var(--theme-secondary));
}

.empty-assignment {
    background: linear-gradient(135deg, color-mix(in srgb, var(--theme-info) 8%, transparent), color-mix(in srgb, var(--theme-info) 2%, transparent));
    border: 2px dashed color-mix(in srgb, var(--theme-info) 20%, transparent);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    color: var(--theme-text-muted);
}

.empty-assignment i {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
    color: var(--theme-info);
    opacity: 0.5;
}

.empty-assignment p {
    margin: 0;
    font-weight: 600;
}

.timeline-duration {
    position: absolute;
    top: 2%;
    background: white;
    padding: 0.3rem 0.65rem;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--theme-text-muted);
    border: 1px solid var(--theme-border);
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    z-index: 5;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.timeline-duration i {
    font-size: 0.55rem;
    color: var(--theme-primary);
    opacity: 0.7;
}

/* Finish Image in Timeline */

.finish-image {
    max-width: 150px;
    max-height: 150px;
    border-radius: 12px;
    object-fit: cover;
    margin-top: 0.75rem;
    border: 3px solid color-mix(in srgb, var(--timeline-color, var(--theme-success)) 30%, transparent);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
    cursor: pointer;
}


.finish-image:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

/* Timeline card images constraint */
.timeline-card img {
    max-width: 120px;
    max-height: 120px;
    border-radius: 10px;
    object-fit: cover;
    margin-top: 0.5rem;
    border: 2px solid color-mix(in srgb, var(--timeline-color, var(--theme-primary)) 20%, transparent);
}

/* ============================================
   26. STATUS BADGE VARIANTS
   ============================================ */
.status-badge.available,
.status-badge.free {
    background: linear-gradient(135deg, color-mix(in srgb, var(--theme-success) 15%, transparent), color-mix(in srgb, var(--theme-success) 5%, transparent));
    color: color-mix(in srgb, var(--theme-success) 70%, black);
    border: 1px solid color-mix(in srgb, var(--theme-success) 30%, transparent);
}

.status-badge.in_maintenance,
.status-badge.in-use {
    background: linear-gradient(135deg, color-mix(in srgb, var(--theme-warning) 15%, transparent), color-mix(in srgb, var(--theme-warning) 5%, transparent));
    color: color-mix(in srgb, var(--theme-warning) 70%, black);
    border: 1px solid color-mix(in srgb, var(--theme-warning) 30%, transparent);
}

.status-badge.out_of_service {
    background: linear-gradient(135deg, color-mix(in srgb, var(--theme-danger) 15%, transparent), color-mix(in srgb, var(--theme-danger) 5%, transparent));
    color: color-mix(in srgb, var(--theme-danger) 70%, black);
    border: 1px solid color-mix(in srgb, var(--theme-danger) 30%, transparent);
}

/* ============================================
   27. ACTION BUTTONS
   ============================================ */
.action-buttons {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-call {
    padding: 0.5rem 1rem;
    border-radius: 10px;
    font-weight: 600;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s;
    cursor: pointer;
    font-size: 0.85rem;
    background: linear-gradient(135deg, var(--theme-success), var(--theme-secondary));
    color: white;
    text-decoration: none;
    box-shadow: 0 2px 8px color-mix(in srgb, var(--theme-success) 20%, transparent);
}

.btn-call:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px color-mix(in srgb, var(--theme-success) 30%, transparent);
    color: white;
    text-decoration: none;
}

.btn-info-action {
    padding: 0.5rem 1rem;
    border-radius: 10px;
    font-weight: 600;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s;
    cursor: pointer;
    font-size: 0.85rem;
    background: linear-gradient(135deg, var(--theme-primary), var(--theme-secondary));
    color: white;
    text-decoration: none;
    box-shadow: 0 2px 8px color-mix(in srgb, var(--theme-primary) 20%, transparent);
}

.btn-info-action:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px color-mix(in srgb, var(--theme-primary) 30%, transparent);
    color: white;
    text-decoration: none;
}

/* ============================================
   28. RESPONSIVE ADJUSTMENTS FOR AUTH
   ============================================ */
@media (max-width: 768px) {

    .login-container,
    .register-container {
        margin: 10px;
    }

    .login-header,
    .register-header {
        padding: 30px 20px;
    }

    .login-header h1,
    .register-header h1 {
        font-size: 24px;
    }

    .login-body,
    .register-body {
        padding: 30px 20px;
    }

    .profile-container {
        grid-template-columns: 1fr;
    }

    .info-row {
        flex-direction: column;
        gap: 0.5rem;
    }

    .info-label {
        min-width: auto;
    }
}

/* ============================================
   29. SELECT2 INTEGRATION
   ============================================ */
.select2-container--default .select2-selection--single {
    border-radius: 10px !important;
    border: 2px solid var(--theme-border) !important;
    padding: 0.5rem !important;
    min-height: 48px !important;
}

.select2-container--default.select2-container--focus .select2-selection--single {
    border-color: var(--theme-primary) !important;
    box-shadow: 0 0 0 0.25rem color-mix(in srgb, var(--theme-primary) 10%, transparent) !important;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 32px !important;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 46px !important;
}

.select2-dropdown {
    border-radius: 10px !important;
    border: 2px solid var(--theme-border) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
}

.select2-results__option--highlighted {
    background-color: var(--theme-primary) !important;
}

/* ============================================
   30. SUBMIT BUTTON
   ============================================ */
.btn-submit {
    padding: 0.875rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.2s;
    cursor: pointer;
    font-size: 1rem;
    background: linear-gradient(155deg, var(--theme-primary) 0%, var(--theme-primary) 55%, rgb(from var(--theme-secondary) r g b / 0.9) 100%);
    color: white;
    box-shadow: 0 4px 12px color-mix(in srgb, var(--theme-primary) 20%, transparent);
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px color-mix(in srgb, var(--theme-primary) 30%, transparent);
}

.btn-submit:active {
    transform: translateY(0);
}

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

/* ============================================
   31. PASSWORD RESET PAGES
   ============================================ */
.reset-container {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 500px;
    width: 100%;
    overflow: hidden;
}

.reset-header {
    background: linear-gradient(135deg, var(--theme-primary), var(--theme-secondary));
    padding: 40px 30px;
    text-align: center;
    color: white;
}

.reset-header .icon {
    font-size: 60px;
    margin-bottom: 20px;
}

.reset-header h1 {
    margin: 0;
    font-size: 28px;
    font-weight: 700;
}

.reset-header p {
    margin: 10px 0 0;
    opacity: 0.9;
    font-size: 14px;
}

.reset-body {
    padding: 40px 30px;
}

.info-message {
    background: linear-gradient(135deg, color-mix(in srgb, var(--theme-info) 15%, white), color-mix(in srgb, var(--theme-info) 10%, white));
    border: 2px solid var(--theme-info);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 25px;
    text-align: center;
}

.info-message i {
    font-size: 24px;
    color: var(--theme-info);
    margin-bottom: 10px;
    display: block;
}

.info-message p {
    color: var(--theme-primary);
    margin: 0;
    line-height: 1.6;
}

.btn-reset {
    background: linear-gradient(135deg, var(--theme-primary), var(--theme-secondary));
    color: white;
    border: none;
    padding: 15px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    width: 100%;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 12px color-mix(in srgb, var(--theme-primary) 30%, transparent);
}

.btn-reset:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px color-mix(in srgb, var(--theme-primary) 40%, transparent);
}

/* ============================================
   WEBSITE SETTINGS PAGE STYLES
   ============================================ */
.settings-container {
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

.settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.setting-card {
    background: linear-gradient(145deg, var(--theme-bg-light), white);
    border-radius: 16px;
    padding: 1.75rem;
    border: 2px solid var(--theme-border);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}



.setting-card:hover::before {
    opacity: 1;
}

.setting-card.full-width {
    grid-column: 1 / -1;
}

.setting-header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.setting-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: linear-gradient(155deg, var(--theme-primary) 0%, var(--theme-primary) 55%, rgb(from var(--theme-secondary) r g b / 0.9) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.35rem;
    flex-shrink: 0;
    box-shadow: 0 6px 16px color-mix(in srgb, var(--theme-primary) 25%, transparent);
    transition: transform 0.3s, box-shadow 0.3s;
}

.setting-card:hover .setting-icon {
    transform: scale(1.05) rotate(-3deg);
    box-shadow: 0 8px 20px color-mix(in srgb, var(--theme-primary) 35%, transparent);
}

.setting-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--theme-text-dark);
    margin: 0 0 0.35rem 0;
}

.setting-description {
    font-size: 0.875rem;
    color: var(--theme-text-muted);
    margin: 0;
    line-height: 1.5;
}

/* Form Controls in Settings */
.setting-card .form-group {
    margin: 0;
}

.setting-card .form-group label {
    font-weight: 600;
    color: var(--theme-text-dark);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    display: block;
}

.setting-card .form-control {
    border-radius: 12px;
    border: 2px solid var(--theme-border);
    padding: 0.875rem 1.25rem;
    font-size: 1rem;
    transition: all 0.25s;
    background: white;
}

.setting-card .form-control:focus {
    border-color: var(--theme-primary);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--theme-primary) 12%, transparent);
    outline: none;
}

/* Image Upload Container */
.image-upload-container {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.current-image {
    background: linear-gradient(135deg, var(--theme-bg-light) 0%, white 100%);
    border-radius: 14px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px dashed var(--theme-border);
    min-height: 120px;
    transition: all 0.3s;
}

.current-image:hover {
    border-color: var(--theme-primary);
    background: linear-gradient(135deg, color-mix(in srgb, var(--theme-primary) 3%, white) 0%, white 100%);
}

.current-image img {
    max-height: 100px;
    max-width: 100%;
    object-fit: contain;
    border-radius: 8px;
    transition: transform 0.3s;
}

.current-image:hover img {
    transform: scale(1.05);
}

.upload-controls {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

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

.file-input-wrapper input[type="file"] {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
    z-index: 2;
}

.file-input-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    background: linear-gradient(155deg, var(--theme-primary) 0%, var(--theme-primary) 55%, rgb(from var(--theme-secondary) r g b / 0.9) 100%);
    color: white;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 12px color-mix(in srgb, var(--theme-primary) 25%, transparent);
}

.file-input-label:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px color-mix(in srgb, var(--theme-primary) 35%, transparent);
}

.file-input-label i {
    font-size: 1.2rem;
}

.file-name {
    font-size: 0.85rem;
    color: var(--theme-text-muted);
    text-align: center;
    padding: 0.5rem;
    background: var(--theme-bg-light);
    border-radius: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Submit Section */
.submit-section {
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 2px solid var(--theme-border);
    display: flex;
    justify-content: center;
}

.btn-submit {
    display: inline-flex;
    align-items: center;
    gap: 0.85rem;
    padding: 1.1rem 3rem;
    background: linear-gradient(135deg, var(--theme-success), var(--theme-secondary));
    color: white;
    border: none;
    border-radius: 14px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 6px 20px color-mix(in srgb, var(--theme-success) 30%, transparent);
}

.btn-submit:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 30px color-mix(in srgb, var(--theme-success) 40%, transparent);
}

.btn-submit:active {
    transform: translateY(0);
}

.btn-submit i {
    font-size: 1.25rem;
}

/* Responsive adjustments for settings grid */
@media (max-width: 768px) {
    .settings-container {
        padding: 1.5rem;
    }

    .settings-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .setting-card {
        padding: 1.5rem;
    }

    .setting-header {
        flex-direction: column;
        text-align: center;
    }

    .setting-icon {
        margin: 0 auto;
    }

    .btn-submit {
        width: 100%;
        justify-content: center;
    }
}

/* ============================================
   RTL (RIGHT-TO-LEFT) SUPPORT FOR ARABIC
   ============================================ */

/* Base RTL Settings */
html[dir="rtl"],
body.rtl,
[dir="rtl"] {
    direction: rtl;
    text-align: right;
}

/* Force RTL on body level */
body {
    direction: rtl;
    text-align: right;
}

/* ============================================
   RTL - Header & Navigation
   ============================================ */
.modern-header {
    text-align: right;
}

/* Header content - no reversal needed, text direction handles it */

.header-left {
    text-align: right;
}

/* Page title keeps natural flow */

.title-icon {
    margin-left: 1rem;
    margin-right: 0;
}



.breadcrumb-link i {
    margin-left: 0.35rem;
    margin-right: 0;
}

/* ============================================
   RTL - Cards & Containers
   ============================================ */
.setting-header {
    text-align: right;
}

.setting-icon {
    margin-left: 1rem;
    margin-right: 0;
}

.setting-header>div {
    text-align: right;
}

.details-header h2 {
    flex-direction: row-reverse;
}

/* Detail row - RTL direction */
.detail-row {
    flex-direction: row-reverse;
}

.detail-icon-wrapper {
    margin-left: 0;
    margin-right: 1.25rem;
}

.detail-content {
    padding-left: 0;
    padding-right: 0;
    text-align: right;
}

/* Details grid - RTL direction */
.details-grid {
    direction: rtl;
}

/* Route card - RTL */
.route-card-inner {
    direction: rtl;
}

.route-location {
    flex-direction: row-reverse;
}

.route-details {
    text-align: right;
}

.route-marker {
    margin-left: 1rem;
    margin-right: 0;
}

/* ============================================
   RTL - Section Dividers
   ============================================ */
.section-divider {
    text-align: right;
}

.section-divider i {
    margin-left: 0.75rem;
    margin-right: 0;
}

/* ============================================
   RTL - Timeline
   ============================================ */
/* Timeline - text direction handles ordering */

.timeline-track::before {
    left: 24px;
    right: 24px;
}

.timeline-card {
    text-align: right;
}

.timeline-action {
    text-align: center;
}

/* ============================================
   RTL - Buttons
   ============================================ */
/* Buttons - keep natural icon placement */

.btn-modern i,
.btn-view i,
.btn-submit i,
.btn-action i {
    margin-left: 0;
    margin-right: 0;
}

/* ============================================
   RTL - Forms
   ============================================ */
.form-group,
.form-group-modern {
    text-align: right;
}

.form-label-modern {
    flex-direction: row-reverse;
}

.form-label-modern i {
    margin-left: 0.5rem;
    margin-right: 0;
}

.form-control,
.form-modern,
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="tel"],
textarea,
select {
    text-align: right;
    direction: rtl;
}

/* ============================================
   RTL - Tables
   ============================================ */
.table {
    direction: rtl;
}

.table th,
.table td {
    text-align: right !important;
}



/* ============================================
   RTL - DataTables
   ============================================ */
.dataTables_wrapper {
    direction: rtl;
    text-align: right;
}

.dataTables_filter {
    text-align: right !important;
    float: right !important;
}

.dataTables_filter label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.dataTables_length {
    text-align: right !important;
    float: left !important;
}

.dataTables_length label {
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    gap: 0.5rem;
}

.dataTables_info {
    text-align: right !important;
    float: right !important;
}

.dataTables_paginate {
    text-align: left !important;
    float: left !important;
}

.dataTables_paginate .pagination {
    flex-direction: row-reverse;
}

.dt-buttons {
    flex-direction: row-reverse;
}

/* ============================================
   RTL - Route Visualization
   ============================================ */
.route-visual {
    flex-direction: row-reverse;
}

.route-connector {
    transform: scaleX(-1);
}



/* ============================================
   RTL - Stats & Cards
   ============================================ */
.stat-card {
    text-align: right;
}

/* Stat cards - natural layout */

.stat-icon {
    margin-left: 0;
    margin-right: 1rem;
}

.overview-card {
    text-align: right;
}

.overview-header {
    flex-direction: row-reverse;
}

.overview-icon {
    margin-left: 0;
    margin-right: 1rem;
}

/* ============================================
   RTL - Alerts & Messages
   ============================================ */
.alert {
    text-align: right;
    direction: rtl;
}

.alert i {
    margin-left: 0.5rem;
    margin-right: 0;
}

/* ============================================
   RTL - Upload Controls
   ============================================ */
.file-input-label {
    flex-direction: row-reverse;
}

.file-input-label i {
    margin-left: 0.75rem;
    margin-right: 0;
}

/* ============================================
   RTL - Employee & Profile Cards
   ============================================ */
.employee-info {
    flex-direction: row-reverse;
    text-align: right;
}

.employee-info-icon {
    margin-left: 0;
    margin-right: 1rem;
}

.profile-info {
    text-align: right;
}

/* ============================================
   RTL - Notifications
   ============================================ */
.notification-item {
    text-align: right;
}

.notification-icon {
    margin-left: 0;
    margin-right: 1rem;
}

/* ============================================
   RTL - Modal & Dialogs
   ============================================ */
.modal-header {
    text-align: right;
}

.modal-body {
    text-align: right;
}

.modal-footer {
    text-align: right;
}

/* ============================================
   RTL - List Items
   ============================================ */
ul,
ol {
    padding-right: 1.5rem;
    padding-left: 0;
}

li {
    text-align: right;
}

/* ============================================
   RTL - Status Pills & Badges
   ============================================ */
/* Status elements - keep natural layout */

.status-pill i,
.status-badge i {
    margin-left: 0.5rem;
    margin-right: 0;
}

/* ============================================
   RTL - Action Buttons Group
   ============================================ */
/* Action buttons - natural order */

.btn-edit,
.btn-delete,
.btn-action {
    margin-left: 0;
    margin-right: 0.5rem;
}

.btn-edit:first-child,
.btn-delete:first-child,
.btn-action:first-child {
    margin-right: 0;
}

/* ============================================
   RTL - Sidebar Adjustments
   (Sidebar stays on left - AdminLTE handles this)
   ============================================ */

/* Nav items RTL */
.nav-sidebar .nav-link {
    text-align: right;
}

.nav-sidebar .nav-link i {
    margin-left: 0.5rem;
    margin-right: 0;
}

.nav-sidebar .nav-link p {
    margin-right: 0;
    margin-left: auto;
}

.nav-treeview {
    padding-right: 1rem;
    padding-left: 0;
}

.sidebar-collapse [class*="sidebar-dark-"] .nav-sidebar>.nav-item>.nav-treeview {
    padding-inline: 0 !important;

}

.sidebar-collapse .nav-sidebar .nav-treeview .nav-link {
    padding-right: 1rem !important;

}

/* ============================================
   RTL - Dropdown Menus
   ============================================ */
.dropdown-menu {
    text-align: right;
    right: 0;
    left: auto;
}

.dropdown-item {
    text-align: right;
}

.dropdown-item i {
    margin-left: 0.5rem;
    margin-right: 0;
}

/* ============================================
   RTL - Pagination
   ============================================ */
/* Pagination - keep natural order */

/* ============================================
   RTL - Cards General
   ============================================ */
.card-header {
    text-align: right;
}

.card-body {
    text-align: right;
}

.card-footer {
    text-align: right;
}

/* ============================================
   RTL - Grid Adjustments
   (Bootstrap handles grid, keep natural order)
   ============================================ */

/* ============================================
   RTL - Icon Positioning
   ============================================ */
.fa,
.fas,
.far,
.fab,
.fal,
.fad {
    margin-left: 0.35rem;
    margin-right: 0;
}

/* Reset margin for standalone icons */
.btn i:only-child,
.icon-only i,
i:only-child {
    margin: 0;
}

/* ============================================
   RTL - Float Corrections (disabled to avoid conflicts)
   ============================================ */

/* ============================================
   RTL - Margin/Padding Utilities
   ============================================ */
.ml-auto {
    margin-right: auto !important;
    margin-left: 0 !important;
}

.mr-auto {
    margin-left: auto !important;
    margin-right: 0 !important;
}

.ml-1,
.ml-2,
.ml-3,
.ml-4,
.ml-5 {
    margin-left: 0 !important;
}

.mr-1,
.mr-2,
.mr-3,
.mr-4,
.mr-5 {
    margin-right: 0 !important;
}

/* ============================================
   RTL - Auth Pages
   ============================================ */
.auth-card,
.login-card,
.register-card {
    text-align: right;
}

.auth-header,
.login-header,
.register-header {
    text-align: center;
}

.auth-body,
.login-body,
.register-body {
    text-align: right;
}

/* ============================================
   RTL - Password Reset
   ============================================ */
.reset-card {
    text-align: right;
}

.reset-header {
    text-align: center;
}

.reset-body {
    text-align: right;
}

/* ============================================
   RTL - Responsive Adjustments
   ============================================ */
@media (max-width: 768px) {
    .header-content {
        text-align: center;
    }

    .setting-header {
        text-align: center;
    }

    .detail-row {
        text-align: center;
    }

    .detail-content {
        text-align: center;
    }
}

@media (min-width: 992px) {

    .sidebar-mini.sidebar-collapse .content-wrapper,
    .sidebar-mini.sidebar-collapse .main-footer,
    .sidebar-mini.sidebar-collapse .main-header {
        margin-right: 4.6rem !important;
        margin-left: 0 !important;
    }
}

@media (min-width: 768px) {

    body:not(.sidebar-mini-md):not(.sidebar-mini-xs):not(.layout-top-nav) .content-wrapper,
    body:not(.sidebar-mini-md):not(.sidebar-mini-xs):not(.layout-top-nav) .main-footer,
    body:not(.sidebar-mini-md):not(.sidebar-mini-xs):not(.layout-top-nav) .main-header {
        transition: margin-left .3s ease-in-out;
        margin-right: 250px;
        margin-left: 0 !important;
    }
}

.nav {
    padding-right: 0 !important;
}

.sidebar .form-inline .input-group {
    flex-direction: row-reverse;
}

.nav-sidebar .nav-link>.right,
.nav-sidebar .nav-link>p>.right {
    left: 1rem;
    right: auto;
}

/* ============================================
   Treeview Menu Styling
   ============================================ */

/* Open menu parent styling */
.nav-sidebar .nav-item.menu-open>.nav-link {
    background-color: rgba(255, 255, 255, 0.08);
    border-radius: 8px;
}

/* Treeview submenu container */
[class*="sidebar-dark-"] .nav-sidebar>.nav-item>.nav-treeview {
    background-color: rgba(175, 175, 175, 0.1) !important;
    border-radius: 0 0 8px 8px;
    margin: 0;
    padding: 0.5rem 0;
    padding-top: 0.75rem;
}

/* Treeview submenu items */
.nav-sidebar .nav-treeview .nav-item {
    margin: 0;
}

.nav-sidebar .nav-treeview .nav-link {
    padding: 0.65rem 1rem;
    padding-right: 1.5rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.75);
    border-radius: 6px;
    margin: 0.15rem 0;
    transition: all 0.2s;
    width: 100%
}

.nav-sidebar .nav-treeview .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.08);
    color: white;
}

.nav-sidebar .nav-treeview .nav-link.active {
    background-color: rgba(255, 255, 255, 0.12);
    color: white;
    font-weight: 600;
    width: 100%
}

/* Treeview icons */
.nav-sidebar .nav-treeview .nav-icon {
    font-size: 0.8rem;
    margin-left: 0.5rem;
    opacity: 0.8;
}

/* Arrow rotation for open menu */
.nav-sidebar .nav-item.menu-open>.nav-link .right {
    transform: rotate(-90deg);
    transition: transform 0.2s;
}

/* Nested treeview (if any) */
[class*="sidebar-dark-"] .nav-sidebar>.nav-item>.nav-treeview {
    background-color: rgba(175, 175, 175, 0.1) !important;
    padding-inline: 5px !important;
    border-radius: 6px;
}

[class*="sidebar-dark-"] .nav-treeview>.nav-item>.nav-link.active,
[class*="sidebar-dark-"] .nav-treeview>.nav-item>.nav-link.active:focus,
[class*="sidebar-dark-"] .nav-treeview>.nav-item>.nav-link.active:hover {
    color: white;
}

/* ============================================
   USER DROPDOWN MENU - MODERN STYLING
   ============================================ */

/* User menu trigger */
.user-menu .nav-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 12px;
    transition: all 0.3s;
}

.user-menu .nav-link:hover {
    background: color-mix(in srgb, var(--theme-primary) 10%, transparent);
}

.user-menu .user-image {
    width: 36px;
    height: 36px;
    border: 2px solid var(--theme-primary);
    box-shadow: 0 2px 8px color-mix(in srgb, var(--theme-primary) 20%, transparent);
}

.user-menu .nav-link span {
    font-weight: 600;
    color: var(--theme-text-dark);
}

/* Dropdown menu container */
.user-menu .dropdown-menu {
    border: none;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    padding: 0;
    overflow: hidden;
    min-width: 280px;
    margin-top: 0.5rem;
    background: white;
}

/* User footer section */
.user-menu .user-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    background: linear-gradient(to bottom, var(--theme-bg-light), white);
    border-top: 1px solid var(--theme-border);
    gap: 0.75rem;
}

/* Profile button */
.user-menu .user-footer .nav-link,
.user-menu .user-footer a.btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.3s;
    border: none;
}

.user-menu .user-footer .nav-link,
.user-menu .user-footer a.btn:first-of-type {
    background: color-mix(in srgb, var(--theme-primary) 10%, transparent);
    color: var(--theme-primary);
}

.user-menu .user-footer .nav-link:hover,
.user-menu .user-footer a.btn:first-of-type:hover {
    background: color-mix(in srgb, var(--theme-primary) 20%, transparent);
    transform: translateY(-2px);
}

/* Logout button */
.user-menu .user-footer a.btn.float-right,
.user-menu .user-footer a.btn:last-of-type {
    background: color-mix(in srgb, var(--theme-danger) 10%, transparent);
    color: var(--theme-danger);
    float: none !important;
}

.user-menu .user-footer a.btn.float-right:hover,
.user-menu .user-footer a.btn:last-of-type:hover {
    background: color-mix(in srgb, var(--theme-danger) 20%, transparent);
    transform: translateY(-2px);
}

/* Icons in user footer */
.user-menu .user-footer i {
    font-size: 1rem;
}

/* Override AdminLTE text colors */
.user-menu .user-footer .text-lightblue {
    color: var(--theme-primary) !important;
}

.user-menu .user-footer .text-red {
    color: var(--theme-danger) !important;
}

/* RTL adjustments */
.user-menu .user-footer a.btn.float-right {
    float: none !important;
}

/* User header if present */
.user-menu .user-header {
    background: linear-gradient(135deg, var(--theme-primary), var(--theme-secondary));
    padding: 1.5rem;
    text-align: center;
}

.user-menu .user-header img {
    width: 80px;
    height: 80px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    margin-bottom: 0.75rem;
}

.user-menu .user-header p {
    color: white;
    margin: 0;
    font-weight: 600;
}

/* User body links if present */
.user-menu .user-body {
    padding: 1rem;
    border-bottom: 1px solid var(--theme-border);
}

.user-menu .user-body a {
    color: var(--theme-text-dark);
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    display: block;
    text-decoration: none;
    transition: all 0.2s;
}

.user-menu .user-body a:hover {
    background: color-mix(in srgb, var(--theme-primary) 8%, transparent);
    color: var(--theme-primary);
}

/* Override AdminLTE default btn-default styles */
.navbar-nav>.user-menu>.dropdown-menu>.user-footer .btn-default {
    color: var(--theme-primary) !important;
    background-color: color-mix(in srgb, var(--theme-primary) 10%, transparent) !important;
}

.navbar-nav>.user-menu>.dropdown-menu>.user-footer .btn-default:hover {
    background-color: color-mix(in srgb, var(--theme-primary) 20%, transparent) !important;
    color: var(--theme-primary) !important;
}

/* Logout button override */
.navbar-nav>.user-menu>.dropdown-menu>.user-footer .btn-default.float-right,
.navbar-nav>.user-menu>.dropdown-menu>.user-footer a[onclick*="logout"] {
    color: var(--theme-danger) !important;
    background-color: color-mix(in srgb, var(--theme-danger) 10%, transparent) !important;
}

.navbar-nav>.user-menu>.dropdown-menu>.user-footer .btn-default.float-right:hover,
.navbar-nav>.user-menu>.dropdown-menu>.user-footer a[onclick*="logout"]:hover {
    background-color: color-mix(in srgb, var(--theme-danger) 20%, transparent) !important;
    color: var(--theme-danger) !important;
}

/* ============================================
   ROLES PAGE STYLING
   ============================================ */

/* Permissions wrapper in table */
.permissions-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

/* Status badge for permissions */
.status-badge.status-permission {
    background: color-mix(in srgb, var(--theme-info) 12%, transparent);
    color: var(--theme-info);
    font-size: 0.8rem;
    padding: 0.35rem 0.65rem;
}

.status-badge.status-permission i {
    font-size: 0.7rem;
    margin-left: 0.3rem;
}

/* Form container (for edit pages) */
.form-container {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

/* Permissions container in edit form */
.permissions-container {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

/* Permission group */
.permission-group {
    background: var(--theme-bg-light);
    border-radius: 12px;
    padding: 1rem;
    border: 1px solid var(--theme-border);
}

.permission-group-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    font-size: 1rem;
    color: var(--theme-primary);
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid color-mix(in srgb, var(--theme-primary) 20%, transparent);
}

.permission-group-header i {
    font-size: 1.1rem;
}

.permission-group-items {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.75rem;
}

.permission-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: white;
    border-radius: 8px;
    transition: all 0.2s;
}

.permission-item:hover {
    background: color-mix(in srgb, var(--theme-primary) 5%, transparent);
}

.form-check-input {
    width: 18px;
    height: 18px;
    cursor: pointer;
    margin-left: auto !important;
    margin-right: -1.25rem !important;
    accent-color: var(--theme-primary);
}

.permission-item .form-check-label {
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--theme-text-dark);
    margin: 0;
}

/* Form actions */
.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--theme-border);
}

.form-actions .btn {
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s;
}

.form-actions .btn-primary {
    background: linear-gradient(135deg, var(--theme-primary), var(--theme-secondary));
    border: none;
    color: white;
}

.form-actions .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px color-mix(in srgb, var(--theme-primary) 30%, transparent);
}

.form-actions .btn-secondary {
    background: var(--theme-bg-light);
    border: 1px solid var(--theme-border);
    color: var(--theme-text-muted);
}

.form-actions .btn-secondary:hover {
    background: var(--theme-border);
}

/* ============================================
   NOTIFICATIONS PAGE STYLING
   ============================================ */

/* Notification message in table */
.notification-message {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.notification-message i {
    color: var(--theme-primary);
    font-size: 1.1rem;
    margin-top: 0.15rem;
}

.notification-message span {
    flex: 1;
    line-height: 1.5;
}

/* Unread notification row */
tr.unread {
    background: color-mix(in srgb, var(--theme-primary) 5%, transparent) !important;
}

tr.unread td {
    font-weight: 600;
}

/* Status badges for notifications */
.status-badge.status-read {
    background: color-mix(in srgb, var(--theme-success) 12%, transparent);
    color: var(--theme-success);
}

.status-badge.status-unread {
    background: color-mix(in srgb, var(--theme-warning) 12%, transparent);
    color: var(--theme-warning);
}

/* Type badges for notifications */
.type-badge {
    padding: 0.4rem 0.75rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.8rem;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.type-badge.type-created {
    background: color-mix(in srgb, var(--theme-primary) 12%, transparent);
    color: var(--theme-primary);
}

.type-badge.type-assigned {
    background: color-mix(in srgb, var(--theme-info) 12%, transparent);
    color: var(--theme-info);
}

.type-badge.type-approved,
.type-badge.type-completed,
.type-badge.type-finished {
    background: color-mix(in srgb, var(--theme-success) 12%, transparent);
    color: var(--theme-success);
}

.type-badge.type-rejected,
.type-badge.type-cancelled {
    background: color-mix(in srgb, var(--theme-danger) 12%, transparent);
    color: var(--theme-danger);
}

.type-badge.type-driver,
.type-badge.type-vehicle {
    background: color-mix(in srgb, var(--theme-secondary) 12%, transparent);
    color: var(--theme-secondary);
}

.type-badge.type-status,
.type-badge.type-general {
    background: color-mix(in srgb, var(--theme-text-muted) 12%, transparent);
    color: var(--theme-text-muted);
}

/* Mark as read button */
.btn-mark-read {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 0.9rem;
    background: color-mix(in srgb, var(--theme-success) 12%, transparent);
    color: var(--theme-success);
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-mark-read:hover {
    background: color-mix(in srgb, var(--theme-success) 20%, transparent);
    transform: translateY(-1px);
}

/* Add button for header */
.btn-add {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.95);
    color: var(--theme-primary);
    border: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-add:hover {
    background: white;
    color: var(--theme-primary);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    text-decoration: none;
}

.btn-add i {
    font-size: 1rem;
}

/* ============================================
   SELECT2 DRIVER DROPDOWN STYLING
   ============================================ */

/* Select2 Container */
.select2-container--bootstrap-5 .select2-selection {
    min-height: 45px;
    border-radius: 10px;
    border: 1px solid var(--theme-border);
    padding: 0.5rem 1rem;
    background: white;
}

.select2-container--bootstrap-5 .select2-selection:focus,
.select2-container--bootstrap-5.select2-container--focus .select2-selection {
    border-color: var(--theme-primary);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--theme-primary) 15%, transparent);
}

/* Dropdown */
.select2-container--bootstrap-5 .select2-dropdown {
    border: 1px solid var(--theme-border);
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    overflow: hidden;
}

/* Driver option styling */
.driver-option {
    padding: 10px 12px;
}

.driver-name {
    font-weight: 600;
    font-size: 1rem;
    color: var(--theme-text-dark);
    margin-bottom: 4px;
}

.driver-info {
    display: flex;
    gap: 1rem;
    font-size: 0.8rem;
    color: var(--theme-text-muted);
}

.driver-info-item {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.driver-info-item i {
    color: var(--theme-primary);
    font-size: 0.75rem;
}

.driver-info-item.no-trips {
    color: var(--theme-success);
    font-style: italic;
}

/* Highlighted/Hover state - uses theme primary color */
.select2-container--bootstrap-5 .select2-results__option--highlighted[aria-selected] {
    background: linear-gradient(135deg, var(--theme-primary), var(--theme-secondary)) !important;
    color: white;
}

.select2-results__option--highlighted .driver-name,
.select2-container--bootstrap-5 .select2-results__option--highlighted .driver-name {
    color: white !important;
}

.select2-results__option--highlighted .driver-info,
.select2-container--bootstrap-5 .select2-results__option--highlighted .driver-info {
    color: rgba(255, 255, 255, 0.85) !important;
}

.select2-results__option--highlighted .driver-info-item i,
.select2-container--bootstrap-5 .select2-results__option--highlighted .driver-info-item i {
    color: rgba(255, 255, 255, 0.9) !important;
}

.select2-results__option--highlighted .driver-info-item.no-trips,
.select2-container--bootstrap-5 .select2-results__option--highlighted .driver-info-item.no-trips {
    color: rgba(255, 255, 255, 0.9) !important;
}

/* Selected state */
.select2-container--bootstrap-5 .select2-results__option--selected,
.select2-container--bootstrap-5 .select2-dropdown .select2-results__options .select2-results__option.select2-results__option--selected,
.select2-container--bootstrap-5 .select2-dropdown .select2-results__options .select2-results__option[aria-selected="true"]:not(.select2-results__option--highlighted) {
    background: color-mix(in srgb, var(--theme-primary) 12%, transparent) !important;
    color: var(--theme-primary) !important;
}

.select2-container--bootstrap-5 .select2-results__option--selected .driver-name,
.select2-container--bootstrap-5 .select2-dropdown .select2-results__options .select2-results__option[aria-selected="true"]:not(.select2-results__option--highlighted) .driver-name {
    color: var(--theme-primary) !important;
}

/* Clear button */
.select2-container--bootstrap-5 .select2-selection__clear {
    color: var(--theme-danger);
}

/* Search input */
.select2-container--bootstrap-5 .select2-search--dropdown .select2-search__field {
    border-radius: 8px;
    border: 1px solid var(--theme-border);
    padding: 0.5rem 0.75rem;
}

.select2-container--bootstrap-5 .select2-search--dropdown .select2-search__field:focus {
    border-color: var(--theme-primary);
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--theme-primary) 15%, transparent);
}

/* ============================================
   MODERN MODAL STYLING
   ============================================ */

/* Modal Content */
.modal-content.modal-modern,
.modal-modern .modal-content {
    border-radius: 20px;
    border: none;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
}

/* Modal Header */
.modal-header-modern,
.modal-modern .modal-header {
    background: linear-gradient(135deg, var(--theme-primary) 0%, var(--theme-secondary) 100%);
    color: white;
    border: none;
    padding: 1.5rem 2rem;
}

.modal-header-modern .modal-title,
.modal-modern .modal-header .modal-title {
    font-weight: 700;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.modal-header-modern .close,
.modal-header-modern .btn-close,
.modal-modern .modal-header .close,
.modal-modern .modal-header .btn-close {
    color: white;
    opacity: 0.8;
    text-shadow: none;
    font-size: 1.5rem;
    background: transparent;
    border: none;
    padding: 0;
    margin: 0;
    transition: all 0.2s;
}

.modal-header-modern .close:hover,
.modal-header-modern .btn-close:hover,
.modal-modern .modal-header .close:hover,
.modal-modern .modal-header .btn-close:hover {
    opacity: 1;
    transform: scale(1.1);
}

/* Modal Body */
.modal-body-modern,
.modal-modern .modal-body {
    padding: 2rem;
    background: white;
}

/* Modal Footer */
.modal-footer-modern,
.modal-modern .modal-footer {
    border: none;
    padding: 1rem 2rem 2rem;
    background: white;
    gap: 0.75rem;
}

/* Modal Alert - Primary themed */
.modal-alert-info,
.modal-modern .alert-info {
    border-radius: 12px;
    border: none;
    background: color-mix(in srgb, var(--theme-primary) 10%, white);
    color: var(--theme-text-dark);
    padding: 1rem 1.25rem;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.modal-alert-info i,
.modal-modern .alert-info i {
    color: var(--theme-primary);
    font-size: 1.1rem;
    margin-top: 0.1rem;
}

/* Image Upload Area */
.image-upload-area {
    border: 2px dashed var(--theme-border);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: color-mix(in srgb, var(--theme-primary) 3%, white);
    min-height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-upload-area:hover {
    border-color: var(--theme-primary);
    background: color-mix(in srgb, var(--theme-primary) 8%, white);
    transform: translateY(-2px);
}

.image-upload-area.has-image {
    border-style: solid;
    border-color: var(--theme-success);
    background: color-mix(in srgb, var(--theme-success) 5%, white);
}

.upload-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.upload-placeholder i {
    font-size: 3rem;
    color: var(--theme-primary);
    opacity: 0.5;
}

.upload-placeholder p {
    color: var(--theme-text-muted);
    margin: 0;
    font-size: 1rem;
}

.upload-placeholder small {
    color: var(--theme-text-muted);
    opacity: 0.7;
}

.image-preview {
    max-width: 100%;
    max-height: 200px;
    border-radius: 12px;
    object-fit: contain;
}

/* Modal Cancel Button */
.btn-modal-cancel {
    background: var(--theme-light);
    color: var(--theme-text-dark);
    border: 1px solid var(--theme-border);
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s;
}

.btn-modal-cancel:hover {
    background: var(--theme-border);
    transform: translateY(-1px);
}

/* Form inputs in modal */
.modal-modern .form-modern,
.modal-modern input[type="number"],
.modal-modern input[type="text"] {
    border-radius: 12px;
    border: 1px solid var(--theme-border);
    padding: 1rem 1.25rem;
    font-size: 1.05rem;
    transition: all 0.2s;
}

.modal-modern .form-modern:focus,
.modal-modern input:focus {
    border-color: var(--theme-primary);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--theme-primary) 15%, transparent);
    outline: none;
}

/* Form Label in Modal */
.modal-modern .form-label-modern {
    font-weight: 600;
    color: var(--theme-text-dark);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.modal-modern .form-label-modern i {
    color: var(--theme-primary);
}

/* RTL Support for Modal */
[dir="rtl"] .modal-header-modern .close,
[dir="rtl"] .modal-modern .modal-header .close {
    margin-left: 0;
    margin-right: auto;
}

/* ============================================
   LIGHTBOX FOR IMAGES
   ============================================ */

.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.lightbox-overlay.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-content {
    max-width: 90vw;
    max-height: 90vh;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.lightbox-overlay.active .lightbox-content {
    transform: scale(1);
}

.lightbox-image {
    max-width: 100%;
    max-height: 85vh;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
    position: absolute;
    top: -50px;
    right: 0;
    width: 40px;
    height: 40px;
    background: var(--theme-primary);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.lightbox-close:hover {
    background: var(--theme-secondary);
    transform: scale(1.1);
}

.lightbox-caption {
    text-align: center;
    color: white;
    margin-top: 1rem;
    font-size: 0.95rem;
    opacity: 0.9;
}

/* Lightbox trigger styling */
.lightbox-trigger {
    cursor: zoom-in;
    transition: all 0.2s;
}

.lightbox-trigger:hover {
    opacity: 0.9;
    transform: scale(1.02);
}

.timeline-car-image {
    max-width: 100%;
    max-height: 150px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.2s;
    cursor: zoom-in;
}

.timeline-car-image:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    transform: scale(1.02);
}

/* ============================================
   STATUS BADGES
   ============================================ */

/* Base status badge */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.85rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
    transition: all 0.2s;
}

.status-badge i {
    font-size: 0.75rem;
}

/* Status Pills (larger variant) */
.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.25rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
}

/* Request Status Badges - Warning (Pending) */
.status-badge.status-pending,
.status-badge.status-pending_directorate,
.status-badge.status-pending_vehicle,
.status-badge.status-driver_rejection_pending_approval,
.status-badge.status-warning,
.status-badge.in-use,
.status-pill.status-pending,
.status-pill.status-warning {
    background: color-mix(in srgb, var(--theme-warning) 15%, white);
    color: color-mix(in srgb, var(--theme-warning) 70%, black);
    border: 1px solid color-mix(in srgb, var(--theme-warning) 30%, transparent);
}

/* Success (Approved/Completed/Active) */
.status-badge.status-approved,
.status-badge.status-completed,
.status-badge.status-finished,
.status-badge.active,
.status-badge.status-active,
.status-badge.approval-yes,
.status-badge.free,
.status-badge.status-success,
.status-pill.status-success {
    background: color-mix(in srgb, var(--theme-success) 15%, white);
    color: color-mix(in srgb, var(--theme-success) 70%, black);
    border: 1px solid color-mix(in srgb, var(--theme-success) 30%, transparent);
}

/* Danger (Rejected/Cancelled/Inactive) */
.status-badge.status-rejected,
.status-badge.status-rejected_by_directorate,
.status-badge.status-rejected_by_vehicle_directorate,
.status-badge.status-cancelled,
.status-badge.status-cancelled_by_employee,
.status-badge.status-auto_cancelled_timeout,
.status-badge.inactive,
.status-badge.status-inactive,
.status-badge.approval-no,
.status-badge.status-danger,
.status-pill.status-danger {
    background: color-mix(in srgb, var(--theme-danger) 15%, white);
    color: color-mix(in srgb, var(--theme-danger) 70%, black);
    border: 1px solid color-mix(in srgb, var(--theme-danger) 30%, transparent);
}

/* Primary */
.status-badge.status-assigned_to_driver,
.status-badge.status-primary,
.status-badge.status-unread,
.status-pill.status-primary {
    background: color-mix(in srgb, var(--theme-primary) 15%, white);
    color: var(--theme-primary);
    border: 1px solid color-mix(in srgb, var(--theme-primary) 30%, transparent);
}

/* Info (Uses Primary) */
.status-badge.status-edited_by_employee,
.status-badge.status-info,
.status-pill.status-info {
    background: color-mix(in srgb, var(--theme-primary) 10%, white);
    color: var(--theme-primary);
    border: 1px solid color-mix(in srgb, var(--theme-primary) 20%, transparent);
}

/* Secondary */
.status-badge.status-rejection_approved_by_directorate,
.status-badge.status-secondary,
.status-badge.status-read,
.status-pill.status-secondary {
    background: color-mix(in srgb, var(--theme-text-muted) 15%, white);
    color: var(--theme-text-muted);
    border: 1px solid color-mix(in srgb, var(--theme-text-muted) 30%, transparent);
}

/* Permission badge (Uses Secondary theme color) */
.status-badge.status-permission {
    background: color-mix(in srgb, var(--theme-secondary) 15%, white);
    color: var(--theme-secondary);
    border: 1px solid color-mix(in srgb, var(--theme-secondary) 30%, transparent);
}

/* ============================================
   20. CUSTOM AUTH PAGE STYLING
   ============================================ */
.auth-body-custom {
    background-color: #f4f6f9;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-card-custom {
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border-top: 6px solid var(--theme-primary);
    width: 100%;
    max-width: 500px;
    padding: 3rem 2.5rem;
    margin: 20px;
    position: relative;
}

.auth-card-lg {
    max-width: 650px;
}

.auth-header-custom {
    text-align: center;
    margin-bottom: 2.5rem;
}

.auth-logo-custom img {
    height: 80px;
    width: auto;
    margin-bottom: 1.5rem;
    object-fit: contain;
}

.auth-welcome-text {
    color: var(--theme-text-dark, #333);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.auth-sub-text {
    color: #777;
    font-size: 0.85rem;
    margin-bottom: 0;
}

.auth-input-group {
    position: relative;
    margin-bottom: 1.5rem;
}

.auth-label {
    display: block;
    text-align: right;
    font-weight: 700;
    color: var(--theme-text-dark, #333);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

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

.auth-input {
    width: 100%;
    background-color: #f8f9fa;
    border: 1px solid transparent;
    border-radius: 6px;
    padding: 0.8rem 1rem;
    padding-right: 1rem;
    padding-left: 2.5rem;
    /* Icon space on Left */
    font-size: 0.95rem;
    color: #495057;
    transition: all 0.3s;
}

.auth-input:focus {
    background-color: white;
    border-color: var(--theme-primary);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--theme-primary) 10%, transparent);
    outline: none;
}

html[dir="rtl"] .auth-input {
    padding-right: 1rem;
    padding-left: 2.5rem;
}

.auth-input-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--theme-primary);
    font-size: 0.9rem;
}

.btn-auth-custom {
    background-color: var(--theme-primary);
    color: white;
    width: 100%;
    padding: 0.9rem;
    border-radius: 6px;
    font-weight: 700;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 1rem;
    margin-bottom: 1.5rem;
}

.btn-auth-custom:hover {
    opacity: 0.9;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px color-mix(in srgb, var(--theme-primary) 20%, transparent);
}

.auth-footer-links {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    padding-top: 0.5rem;
}

.auth-footer-links a {
    text-decoration: none;
    color: var(--theme-primary);
    font-weight: 600;
    transition: opacity 0.3s;
}

.auth-footer-links a:hover {
    opacity: 0.8;
    text-decoration: none;
}

/* Profile Upload Styles (Register) */
.profile-upload {
    text-align: center;
    margin-bottom: 30px;
}

.profile-preview {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 4px solid var(--theme-primary);
    object-fit: cover;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 12px color-mix(in srgb, var(--theme-primary) 20%, transparent);
}

.profile-preview:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px color-mix(in srgb, var(--theme-primary) 30%, transparent);
}

.upload-hint {
    margin-top: 10px;
    color: var(--theme-primary);
    font-size: 13px;
}

/* CAPTCHA Styling */
.auth-captcha-group {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.auth-captcha-image {
    flex: 1;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e1e1e1;
    position: relative;
}

.auth-captcha-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.btn-auth-refresh {
    background-color: var(--theme-primary);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 0 1.25rem;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.btn-auth-refresh:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}

.btn-auth-refresh:active {
    transform: translateY(0);
}