:root {
    --primary-color: #6366f1;
    --primary-dark: #4f46e5;
    --secondary-color: #8b5cf6;
    --success-color: #10b981;
    --danger-color: #ef4444;
    --warning-color: #f59e0b;
    --info-color: #3b82f6;
    --dark-color: #1e293b;
    --light-color: #f8fafc;
    --sidebar-width: 260px;
    --header-height: 60px;

    /* Light mode colors */
    --bg-color: #ffffff;
    --text-color: #1e293b;
    --sidebar-bg: rgba(255, 255, 255, 0.98);
    --card-bg: rgba(255, 255, 255, 0.95);
    --border-color: #e2e8f0;
    --input-bg: #ffffff;
    --table-bg: #ffffff;
    --hover-bg: #f8fafc;
    --muted-text: #64748b;
}

/* Dark mode variables */
[data-theme="dark"] {
    --bg-color: #0f172a;
    --text-color: #f1f5f9;
    --sidebar-bg: rgba(15, 23, 42, 0.98);
    --card-bg: rgba(30, 41, 59, 0.95);
    --border-color: #334155;
    --input-bg: #1e293b;
    --table-bg: #1e293b;
    --hover-bg: #334155;
    --muted-text: #94a3b8;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: url('../images/bg.png') no-repeat center center fixed;
    background-size: cover;
    min-height: 100vh;
    color: var(--text-color);
    background-color: var(--bg-color);
}

body.rtl {
    direction: rtl;
    font-family: 'Noto Sans Arabic', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body.rtl .sidebar {
    text-align: right;
    right: 0;
    left: auto;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    background: var(--sidebar-bg);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
}

body.rtl .content-wrapper {
    direction: rtl;
    margin-right: var(--sidebar-width);
    margin-left: 0;
}

body.rtl .top-header {
    direction: rtl;
}

body.rtl .sidebar .nav-link {
    border-left: none;
    border-right: 3px solid transparent;
}

body.rtl .sidebar .nav-link:hover,
body.rtl .sidebar .nav-link.active {
    border-left-color: transparent;
    border-right-color: var(--primary-color);
}

body.rtl .sidebar .nav-link i {
    margin-right: 0;
    margin-left: 10px;
}

/* Login Styles */
.activation-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
}

.activation-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    padding: 32px;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    width: 100%;
    max-width: 460px;
    animation: fadeIn 0.5s ease;
}

.login-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
}

.login-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    width: 100%;
    max-width: 400px;
    animation: fadeIn 0.5s ease;
}

.login-logo {
    width: 80px;
    height: 80px;
    object-fit: contain;
    border-radius: 50%;
    border: 3px solid var(--primary-color);
    padding: 10px;
}

.company-name {
    color: var(--primary-color);
    font-weight: 700;
}

/* Login Copyright */
.login-copyright {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px solid #e2e8f0;
    text-align: center;
    pointer-events: none;
}

.login-copyright p {
    margin: 0;
    font-size: 0.85rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.developer-name {
    margin: 8px 0;
    font-size: 1.3rem;
    font-weight: 800;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 2px;
}

.login-copyright small {
    color: #94a3b8;
    font-size: 0.75rem;
}

/* App Footer */
.app-footer {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 10px 30px;
    text-align: center;
    margin-top: auto;
    flex-shrink: 0;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

.app-footer p {
    margin: 0;
    font-size: 0.8rem;
    line-height: 1.4;
}

.developer-signature {
    font-weight: 800;
    letter-spacing: 2px;
    color: #ffd700;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

/* Data Protection Notice */
.data-protection-notice {
    background: linear-gradient(135deg, #ffeaa7 0%, #fdcb6e 100%);
    border-left: 4px solid #f39c12;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.data-protection-notice h6 {
    color: #d35400;
    font-weight: 700;
    margin-bottom: 10px;
}

.data-protection-notice ul {
    margin: 0;
    padding-left: 20px;
    color: #5f3c0a;
    font-size: 0.9rem;
}

.data-protection-notice ul li {
    margin-bottom: 5px;
}

/* Main Container */
.main-container {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: var(--sidebar-width);
    background: var(--sidebar-bg);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-right: 1px solid var(--border-color);
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    transition: transform 0.3s ease;
    will-change: transform;
    z-index: 1000;
}

.sidebar-header {
    padding: 20px;
    text-align: center;
    border-bottom: 1px solid #e2e8f0;
}

.sidebar-logo {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

.sidebar .nav-link {
    padding: 12px 20px;
    color: #64748b;
    transition: all 0.3s;
    border-left: 3px solid transparent;
}

.sidebar .nav-link:hover {
    background: #f1f5f9;
    color: var(--primary-color);
    border-left-color: var(--primary-color);
}

.sidebar .nav-link.active {
    background: linear-gradient(90deg, #eef2ff, transparent);
    color: var(--primary-color);
    border-left-color: var(--primary-color);
    font-weight: 600;
}

.sidebar .nav-link i {
    margin-right: 10px;
    font-size: 1.1rem;
}

/* Content Wrapper */
.content-wrapper {
    margin-left: var(--sidebar-width);
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Header */
.top-header {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.4);
    height: var(--header-height);
    padding: 0 30px;
    display: flex;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

.sidebar-toggle {
    font-size: 1.5rem;
    color: var(--dark-color);
    display: none;
}

/* Main Content */
.main-content {
    padding: 30px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Cards */
.stat-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s, box-shadow 0.3s;
    will-change: transform, box-shadow;
    border-left: 4px solid var(--primary-color);
    border-top: 1px solid rgba(255, 255, 255, 0.4);
    border-right: 1px solid rgba(255, 255, 255, 0.4);
    border-bottom: 1px solid rgba(255, 255, 255, 0.4);
    height: 100%;
    min-height: 140px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.stat-card h3 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 5px;
    min-height: 48px;
    display: flex;
    align-items: center;
}

.stat-card p {
    color: #64748b;
    margin: 0;
    font-size: 0.95rem;
}

.stat-card i {
    font-size: 2.5rem;
    opacity: 0.3;
}

/* Data Table */
.data-table-container {
    background: var(--card-bg);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid var(--border-color);
    border-radius: 18px;
    padding: 22px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    overflow-x: auto;
}

.data-table-container h2,
.data-table-container h3,
.data-table-container h4 {
    font-weight: 700;
    color: var(--text-color);
    letter-spacing: 0.01em;
}

.data-table-container .d-flex.justify-content-between.align-items-center {
    gap: 10px;
    flex-wrap: wrap;
}

.passport-photo-modal-img {
    max-width: 100%;
    max-height: 70vh;
    border-radius: 12px;
    border: 3px solid var(--primary-color);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    object-fit: contain;
}

.table {
    margin: 0;
}

.table thead th {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    font-weight: 600;
    padding: 15px;
    position: sticky;
    top: 0;
    z-index: 2;
}

.table tbody tr {
    transition: background 0.2s;
}

.table tbody td {
    padding: 12px 15px;
    border-color: rgba(148, 163, 184, 0.22);
}

.table tbody tr:hover {
    background: var(--hover-bg);
}

.passenger-table-scroll {
    overflow-y: auto;
}

.customer-table-scroll {
    overflow-y: auto;
}

.table-scroll-10 {
    overflow-y: auto;
}

/* Badges */
.badge {
    padding: 6px 12px;
    font-weight: 500;
    border-radius: 20px;
}

.badge-success {
    background: var(--success-color);
}

.badge-warning {
    background: var(--warning-color);
}

.badge-danger {
    background: var(--danger-color);
}

.badge-info {
    background: var(--info-color);
}

/* Buttons */
.btn {
    border-radius: 8px;
    padding: 10px 20px;
    font-weight: 500;
    transition: all 0.3s;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border: none;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(99, 102, 241, 0.4);
}

.btn-sm {
    padding: 5px 10px;
    font-size: 0.875rem;
}

/* Search Box */
.search-box {
    position: relative;
    max-width: 400px;
}

.search-box input {
    border-radius: 25px;
    padding-left: 40px;
    border: 2px solid #e2e8f0;
}

.search-box i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
}

/* Passengers Page */
.passengers-hero {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.14), rgba(16, 185, 129, 0.08));
    border: 1px solid rgba(99, 102, 241, 0.15);
    border-radius: 16px;
    padding: 18px;
}

.passengers-hero-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.passengers-subtitle {
    color: #64748b;
    font-size: 0.92rem;
}

.passengers-add-btn {
    white-space: nowrap;
}

.passenger-stat-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(120px, 1fr));
    gap: 10px;
}

.passenger-stat-card {
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(148, 163, 184, 0.24);
    border-radius: 12px;
    padding: 10px 12px;
}

.passenger-stat-card .stat-label {
    font-size: 0.75rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.passenger-stat-card .stat-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: #0f172a;
}

.passengers-table-wrap {
    border-radius: 14px;
}

.passengers-toolbar {
    display: flex;
    align-items: center;
    gap: 8px;
}

.passengers-search-box {
    max-width: none;
    flex: 1;
}

.passenger-table-shell {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow-x: auto;
    overflow-y: auto;
    max-height: 62vh;
}

.passenger-modern-table {
    margin-bottom: 0;
}

.passenger-modern-table thead th {
    background: #f8fafc;
    color: #334155;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    border-bottom: 1px solid #e2e8f0;
    white-space: nowrap;
}

.passenger-modern-table tbody td {
    vertical-align: middle;
}

.passenger-modern-table tbody tr:hover {
    background: #f8fafc;
}

.passenger-name {
    font-weight: 600;
    color: #0f172a;
}

.passenger-actions {
    white-space: nowrap;
}

.passenger-actions .btn {
    margin-right: 4px;
    margin-bottom: 4px;
}

@media (max-width: 992px) {
    .passenger-stat-grid {
        grid-template-columns: repeat(2, minmax(120px, 1fr));
    }

    .passengers-hero-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .passengers-add-btn {
        width: 100%;
    }
}

/* Modal Enhancements */
.modal-content {
    border-radius: 15px;
    border: none;
}

.modal-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-radius: 15px 15px 0 0;
}

.modal-header .btn-close {
    filter: brightness(0) invert(1);
}

.modal:not(.show) {
    pointer-events: none;
}

.app-confirm-body {
    text-align: center;
}

/* Form Controls */
.form-control, .form-select {
    border-radius: 8px;
    border: 2px solid #e2e8f0;
    padding: 10px 15px;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(99, 102, 241, 0.25);
}

/* Bank Check Receipt Styles - A5 Size */
.bank-check-receipt {
    width: 148mm;
    min-height: 210mm;
    padding: 15mm;
    background: linear-gradient(to bottom, #ffffff 0%, #f8f9fa 100%);
    border: 3px double #2c3e50;
    position: relative;
    font-family: 'Courier New', monospace;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
}

.check-border {
    position: absolute;
    top: 10mm;
    left: 10mm;
    right: 10mm;
    bottom: 10mm;
    border: 1px solid #cbd5e1;
    pointer-events: none;
}

.check-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 2px solid #2c3e50;
}

.check-header-left {
    display: flex;
    gap: 15px;
    align-items: center;
}

.check-logo {
    width: 60px;
    height: 60px;
    object-fit: contain;
    border: 2px solid #2c3e50;
    padding: 5px;
    background: white;
}

.check-company-info h3 {
    margin: 0;
    font-size: 16px;
    font-weight: bold;
    color: #2c3e50;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.check-company-info p {
    margin: 2px 0;
    font-size: 10px;
    color: #555;
}

.check-header-right {
    text-align: right;
}

.check-number {
    font-size: 18px;
    font-weight: bold;
    color: #c0392b;
    background: #fff3cd;
    padding: 5px 15px;
    border: 2px solid #856404;
    border-radius: 5px;
    margin-bottom: 8px;
}

.check-date {
    font-size: 12px;
    font-weight: bold;
    color: #2c3e50;
}

.check-title {
    text-align: center;
    margin: 10px 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 6px;
    border-radius: 5px;
}

.check-title h4 {
    margin: 0;
    font-size: 18px;
    letter-spacing: 3px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.check-payto {
    margin: 10px 0;
}

.check-field {
    margin-bottom: 8px;
}

.check-field label {
    display: block;
    font-size: 9px;
    font-weight: bold;
    color: #555;
    margin-bottom: 5px;
    letter-spacing: 1px;
}

.check-field-value {
    border-bottom: 2px solid #2c3e50;
    padding: 8px 5px;
    font-size: 14px;
    font-weight: bold;
    min-height: 30px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.check-amount-box {
    position: absolute;
    right: 20mm;
    top: 70mm;
    width: 35mm;
    border: 3px double #2c3e50;
    background: #fff9e6;
    padding: 8px;
    text-align: center;
}

.check-amount-label {
    font-size: 9px;
    font-weight: bold;
    color: #856404;
}

.check-amount-value {
    font-size: 24px;
    font-weight: bold;
    color: #2c3e50;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.check-amount-words {
    margin: 20px 0;
    padding-right: 40mm;
}

.check-details {
    margin: 25px 0;
    padding: 15px;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 5px;
}

.check-detail-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 12px;
}

.check-detail-item {
    display: flex;
    flex-direction: column;
}

.check-detail-item.full-width {
    grid-column: 1 / -1;
}

.check-detail-item label {
    font-size: 9px;
    font-weight: bold;
    color: #666;
    margin-bottom: 3px;
    letter-spacing: 0.5px;
}

.check-detail-item span {
    font-size: 12px;
    font-weight: bold;
    color: #2c3e50;
    border-bottom: 1px dotted #adb5bd;
    padding: 4px 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.remaining-balance {
    color: #c0392b !important;
    font-size: 14px !important;
}

.check-signature-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin: 30px 0 20px 0;
}

.check-signature {
    text-align: center;
}

.signature-line {
    border-bottom: 2px solid #2c3e50;
    margin: 40px 10px 8px 10px;
}

.check-signature label {
    font-size: 10px;
    color: #555;
    font-weight: bold;
    letter-spacing: 0.5px;
}

.check-footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 2px double #2c3e50;
}

/* A5 Format */
@media print {
    @page {
        size: auto;
        margin: 8mm;
    }

    html,
    body {
        margin: 0 !important;
        padding: 0 !important;
        height: auto !important;
    }

    body * {
        visibility: hidden;
    }

    #receiptContent, #receiptContent *,
    #passengerPrintContent, #passengerPrintContent *,
    #invoiceViewContent, #invoiceViewContent *,
    #reportPreviewContent, #reportPreviewContent * {
        visibility: visible;
    }

    #receiptContent,
    #passengerPrintContent,
    #invoiceViewContent,
    #reportPreviewContent {
        position: fixed !important;
        left: 50% !important;
        top: 0 !important;
        transform: translateX(-50%) !important;
        width: var(--print-content-width, 190mm) !important;
        max-width: var(--print-content-width, 190mm) !important;
        padding: 0 !important;
        margin: 0 !important;
        right: auto !important;
    }

    #passengerPrintContent {
        width: var(--print-content-width, 190mm) !important;
        max-width: var(--print-content-width, 190mm) !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    #reportPreviewContent {
        width: var(--print-content-width, 190mm) !important;
        max-width: var(--print-content-width, 190mm) !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    .modal,
    .modal-dialog,
    .modal-content,
    .modal-body {
        margin: 0 !important;
        padding: 0 !important;
        border: 0 !important;
        box-shadow: none !important;
        transform: none !important;
        min-height: auto !important;
    }

    .modal-header, .modal-footer,
    .sidebar, .top-header,
    .modal-backdrop {
        display: none !important;
    }

    .passenger-registration-print {
        width: 100%;
        max-width: none;
        min-height: auto;
        padding: 0;
        font-size: 11px;
        line-height: 1.6;
        word-spacing: 0.08em;
        margin: 0;
        margin-top: 0;
    }

    .passenger-registration-print h2 {
        font-size: 16px;
        margin-bottom: 4px;
    }

    .passenger-registration-print h3 {
        font-size: 13px;
    }

    .passenger-registration-print h5 {
        font-size: 12px;
        margin-bottom: 8px;
    }

    .passenger-registration-print img {
        width: 80px !important;
        height: 80px !important;
    }

    .passenger-registration-print table th,
    .passenger-registration-print table td {
        padding: 6px !important;
        line-height: 1.6 !important;
        word-spacing: 0.08em !important;
        white-space: normal !important;
        word-break: break-word !important;
        overflow-wrap: anywhere !important;
        vertical-align: top !important;
    }

    #reportPreviewContent,
    #reportPreviewContent * {
        line-height: 1.6 !important;
        word-spacing: 0.08em !important;
    }

    .passenger-registration-print .row {
        margin-left: -6px;
        margin-right: -6px;
    }

    .passenger-registration-print .col-3,
    .passenger-registration-print .col-6,
    .passenger-registration-print .col-md-4,
    .passenger-registration-print .col-md-6 {
        padding-left: 6px;
        padding-right: 6px;
    }

    .passenger-registration-print .print-title-bar {
        border-color: #111827;
        color: #111827;
    }

    .passenger-registration-print .print-title-bar h3 {
        color: #111827;
    }

    .passenger-registration-print .print-section {
        background: #ffffff !important;
        border-color: #111827;
        page-break-inside: avoid;
    }

    .passenger-registration-print .print-section-title {
        color: #111827;
        border-bottom-color: #111827;
    }

    .passenger-registration-print .print-table th,
    .passenger-registration-print .print-total-row td {
        background: #ffffff !important;
    }

    .passenger-registration-print .print-status-badge {
        background: #ffffff !important;
        color: #111827 !important;
        border-color: #111827;
    }

    .passenger-registration-print .print-table tr,
    .passenger-registration-print .print-grid > div,
    .passenger-registration-print .print-meta-row {
        page-break-inside: avoid;
    }

    /* A5 Check Receipt Print */
    .bank-check-receipt {
        page-break-after: auto;
        box-shadow: none;
        margin: 0;
        width: 100%;
        min-height: auto;
        padding: 8mm;
        transform: none;
        border-width: 1px;
    }

    .check-border {
        display: none !important;
    }

    .check-header {
        margin-bottom: 6px;
        padding-bottom: 6px;
    }

    .check-title {
        margin: 6px 0;
        padding: 4px;
    }

    .check-payto,
    .check-details {
        margin: 6px 0;
    }

    .check-field {
        margin-bottom: 6px;
    }

    .check-field-value {
        padding: 6px 4px;
        font-size: 12px;
    }

    .check-amount {
        margin: 6px 0;
    }

    .check-amount-value {
        font-size: 18px;
    }

    .check-footer {
        margin-top: 8px;
        padding-top: 8px;
    }

    /* Ensure colors print */
    .passenger-registration-print *,
    .bank-check-receipt * {
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .print-double-active > :not(.print-duplicate-overlay) {
        display: none !important;
    }

    .print-double-active {
        height: 281mm !important;
        max-height: 281mm !important;
        overflow: hidden !important;
        page-break-inside: avoid !important;
        break-inside: avoid !important;
        page-break-after: avoid !important;
        break-after: avoid !important;
    }

    .print-double-active .print-duplicate-overlay {
        display: grid !important;
        grid-template-rows: repeat(2, minmax(0, 1fr));
        row-gap: 3mm;
        height: 281mm;
        max-height: 281mm;
        overflow: hidden;
        position: relative;
    }

    .print-double-active .print-duplicate-copy {
        display: flex;
        justify-content: center;
        align-items: flex-start;
        height: 100%;
        max-height: 100%;
        overflow: hidden;
    }


    .print-double-active .print-duplicate-inner {
        display: block;
        margin-left: auto;
        margin-right: auto;
        width: var(--print-duplicate-inverse-width, 200%) !important;
        transform: scale(var(--print-duplicate-scale, 0.5));
        transform-origin: top center;
    }
}

.print-duplicate-overlay {
    display: none;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.5s ease;
}

/* Status Indicators */
.status-paid {
    color: var(--success-color);
}

.status-pending {
    color: var(--warning-color);
}

.status-overdue {
    color: var(--danger-color);
}

/* Responsive Design */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
    }

    .sidebar.active {
        transform: translateX(0);
    }

    .content-wrapper {
        margin-left: 0;
    }

    .sidebar-toggle {
        display: block;
    }

    .main-content {
        padding: 15px;
    }

    .stat-card {
        margin-bottom: 15px;
    }

    .stat-card h3 {
        font-size: 1.5rem;
        min-height: auto;
    }

    .stat-card p {
        font-size: 0.85rem;
    }

    .stat-card i {
        font-size: 2rem;
    }

    .data-table-container {
        padding: 15px;
    }

    .table {
        font-size: 0.875rem;
    }

    .login-card {
        padding: 30px 20px;
    }

    /* Contractor cards on mobile */

    /* Small mobile adjustments */
    .stat-card {
        padding: 15px;
    }

    .stat-card h3 {
        font-size: 1.3rem;
    }

    .stat-card h5 {
        font-size: 1rem;
    }

    .stat-card .mb-2,
    .stat-card .mb-3 {
        margin-bottom: 0.5rem !important;
    }

    h2 {
        font-size: 1.5rem;
    }

    .d-flex.justify-content-between {
        flex-direction: column;
        gap: 10px;
    }

    .d-flex.justify-content-between .btn {
        width: 100%;
    }
    .stat-card .btn-group {
        flex-direction: column;
        width: 100%;
    }

    .stat-card .btn-group .btn {
        width: 100%;
        margin-bottom: 5px;
    }

    .stat-card .row {
        margin: 0;
    }

    .stat-card .row .col-6,
    .stat-card .row .col-md-6,
    .stat-card .row .col-md-4 {
        padding: 5px;
    }
}

@media (max-width: 768px) {
    body.rtl .sidebar {
        transform: translateX(100%);
        right: 0;
        left: auto;
    }

    body.rtl .sidebar.active {
        transform: translateX(0);
    }

    body.rtl .content-wrapper {
        margin-right: 0;
    }
}

/* Tablet specific adjustments */
@media (min-width: 768px) and (max-width: 1024px) {
    .stat-card h3 {
        font-size: 1.75rem;
    }

    .stat-card p {
        font-size: 0.9rem;
    }
    
    .main-content {
        padding: 20px;
    }
}

@media (max-width: 576px) {
    .top-header {
        padding: 0 15px;
    }

    .btn {
        padding: 8px 15px;
        font-size: 0.875rem;
    }

    .modal-body {
        padding: 20px 15px;
    }

    .app-footer {
        padding: 10px 15px;
    }

    .app-footer p {
        font-size: 0.7rem;
        line-height: 1.3;
    }

    .developer-signature {
        display: block;
        margin-top: 2px;
        font-size: 0.75rem;
    }

    .main-content {
        padding: 15px;
        padding-bottom: 10px;
    }
}

/* Passenger Registration Print Styles */
.passenger-registration-print {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #1e293b;
    line-height: 1.6;
}

.passenger-registration-print .print-header {
    display: grid;
    grid-template-columns: 90px 1fr 90px;
    align-items: start;
    gap: 12px;
    padding: 8px 12px 0 12px;
    text-align: center;
}

.passenger-registration-print .print-logo img,
.passenger-registration-print .print-photo img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    border-radius: 8px;
    border: 2px solid #2563eb;
}

.passenger-registration-print .print-photo p {
    margin: 4px 0 0 0;
    font-size: 0.7rem;
    color: #64748b;
}

.passenger-registration-print .print-company h2 {
    margin: 0;
    font-size: 1.3rem;
    color: #1d4ed8;
    font-weight: 800;
    letter-spacing: 0.5px;
    line-height: 1.45;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.passenger-registration-print .print-subtitle {
    margin: 6px 0;
    color: #64748b;
    font-size: 0.85rem;
    line-height: 1.45;
}

.passenger-registration-print .print-contact {
    margin: 0;
    color: #1e293b;
    font-size: 0.85rem;
    display: flex;
    justify-content: center;
    gap: 6px;
    flex-wrap: wrap;
    line-height: 1.45;
}

.passenger-registration-print .print-separator {
    color: #94a3b8;
}

.passenger-registration-print .print-title-bar {
    margin: 12px 12px 10px 12px;
    padding: 8px 12px;
    border: 2px solid #1d4ed8;
    border-radius: 10px;
    text-align: center;
}

.passenger-registration-print .print-title-bar h3 {
    margin: 0;
    font-size: 1rem;
    color: #1d4ed8;
    font-weight: 800;
    letter-spacing: 1px;
}

.passenger-registration-print .print-meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    padding: 0 12px 10px 12px;
}

.passenger-registration-print .print-meta-row {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    padding: 3px 0;
    border-bottom: 1px dashed #cbd5f5;
    font-size: 0.85rem;
}

.passenger-registration-print .print-label {
    color: #475569;
    font-weight: 600;
}

.passenger-registration-print .print-value {
    color: #0f172a;
    font-weight: 700;
    word-break: break-word;
    white-space: normal;
}

.passenger-registration-print .print-section {
    margin: 8px 12px;
    padding: 10px 12px;
    border: 1px solid #cbd5f5;
    border-radius: 10px;
    background: #f8fafc;
}

.passenger-registration-print .print-section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    color: #1d4ed8;
    border-bottom: 1px solid #cbd5f5;
    padding-bottom: 6px;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.passenger-registration-print .print-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 14px;
}

.passenger-registration-print .print-field-label {
    font-size: 0.8rem;
    color: #64748b;
    margin-bottom: 2px;
}

.passenger-registration-print .print-field-value {
    font-size: 0.95rem;
    font-weight: 700;
    color: #0f172a;
    word-break: break-word;
    white-space: normal;
}

.passenger-registration-print .print-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}

.passenger-registration-print .print-table th {
    text-align: left;
    padding: 6px;
    background: #eef2ff;
    border-bottom: 2px solid #cbd5f5;
}

.passenger-registration-print .print-table td {
    padding: 6px;
    border-bottom: 1px solid #e2e8f0;
    word-break: break-word;
}

.passenger-registration-print .print-status-badge {
    display: inline-block;
    padding: 2px 8px;
    border: 1px solid #94a3b8;
    border-radius: 999px;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #0f172a;
    background: #f1f5f9;
}

.passenger-registration-print .print-total-row td {
    border-top: 2px solid #1d4ed8;
    font-weight: 800;
    color: #1d4ed8;
    background: #eef2ff;
}

.passenger-registration-print .print-notes {
    margin: 0;
    color: #475569;
    font-size: 0.85rem;
}

.passenger-registration-print .print-footer {
    margin: 10px 12px 0 12px;
    padding: 8px 12px;
    border-top: 2px solid #1d4ed8;
    text-align: center;
    color: #1e293b;
    font-size: 0.8rem;
    font-weight: 600;
}

.passenger-registration-print .print-footer-contact {
    display: flex;
    justify-content: center;
    gap: 6px;
    flex-wrap: wrap;
    color: #64748b;
}

.passenger-registration-print h2,
.passenger-registration-print h3,
.passenger-registration-print h5 {
    font-weight: 700;
}

.passenger-registration-print table {
    width: 100%;
    margin-bottom: 1rem;
}

.passenger-registration-print table th,
.passenger-registration-print table td {
    padding: 10px;
}

body.rtl .passenger-registration-print,
body.rtl .passenger-registration-print * {
    letter-spacing: normal !important;
    word-spacing: 0.08em;
    font-family: 'Noto Sans Arabic', 'Segoe UI', Tahoma, Arial, sans-serif;
}

body.rtl .passenger-registration-print .print-title-bar h3,
body.rtl .passenger-registration-print .print-company h2,
body.rtl .passenger-registration-print .print-status-badge {
    letter-spacing: normal !important;
}

/* Modern Print Templates */
.modern-print-doc {
    font-family: 'Segoe UI', Tahoma, Arial, sans-serif;
    color: #0f172a;
    background: #ffffff;
    border: 1px solid #dbe3f3;
    border-radius: 10px;
    padding: 12px;
    line-height: 1.5;
}

.modern-print-doc .doc-header {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
    margin-bottom: 10px;
}

.modern-print-doc .doc-brand-row {
    display: grid;
    grid-template-columns: 56px 1fr;
    gap: 10px;
    align-items: start;
}

.modern-print-doc .doc-logo {
    width: 56px;
    height: 56px;
    object-fit: contain;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #fff;
}

.modern-print-doc .doc-company {
    margin: 0;
    font-size: 1rem;
    font-weight: 800;
    color: #1d4ed8;
}

.modern-print-doc .doc-sub {
    margin: 2px 0;
    font-size: 0.8rem;
    color: #475569;
}

.modern-print-doc .doc-meta-box {
    min-width: 170px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 8px;
    background: #f8fafc;
}

.modern-print-doc .doc-badge {
    font-size: 0.72rem;
    font-weight: 800;
    color: #1d4ed8;
    border-bottom: 1px solid #dbe3f3;
    padding-bottom: 4px;
    margin-bottom: 5px;
    text-transform: uppercase;
}

.modern-print-doc .doc-meta-row {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin: 2px 0;
    font-size: 0.76rem;
}

.modern-print-doc .doc-meta-row span {
    color: #475569;
}

.modern-print-doc .doc-meta-row strong {
    color: #0f172a;
    font-weight: 700;
}

.modern-print-doc .doc-section {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 8px;
    margin-top: 8px;
    background: #ffffff;
}

.modern-print-doc .doc-section-title {
    font-size: 0.8rem;
    font-weight: 800;
    color: #1d4ed8;
    margin-bottom: 7px;
}

.modern-print-doc .doc-grid-two {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 7px 10px;
}

.modern-print-doc .doc-grid-three {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 7px 10px;
}

.modern-print-doc .doc-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.modern-print-doc .doc-label {
    font-size: 0.72rem;
    color: #64748b;
    font-weight: 600;
}

.modern-print-doc .doc-value {
    font-size: 0.84rem;
    color: #0f172a;
    font-weight: 700;
    word-break: break-word;
}

.modern-print-doc .doc-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.76rem;
}

.modern-print-doc .doc-table th,
.modern-print-doc .doc-table td {
    border: 1px solid #dbe3f3;
    padding: 5px 6px;
}

.modern-print-doc .doc-table th {
    background: #eef2ff;
    color: #1e293b;
    font-weight: 700;
}

.modern-print-doc .doc-table tfoot td {
    background: #f8fafc;
    font-weight: 800;
}

body[data-print-paper-size="a4"] .modern-print-doc {
    font-size: 1rem;
}

body[data-print-paper-size="a5"] .modern-print-doc {
    font-size: 0.95rem;
}

body.rtl .modern-print-doc,
body.rtl .modern-print-doc * {
    letter-spacing: normal !important;
    word-spacing: 0.06em;
    font-family: 'Noto Sans Arabic', 'Segoe UI', Tahoma, Arial, sans-serif;
}

@media print {
    .modern-print-doc {
        border: 0;
        border-radius: 0;
        padding: 0;
    }
}

/* Utilities */
.text-muted {
    color: #64748b !important;
}

.bg-light {
    background-color: #f8fafc !important;
}

.rounded-circle {
    border-radius: 50% !important;
}

.shadow-sm {
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08) !important;
}

.receipt-no {
    direction: ltr;
    unicode-bidi: isolate;
    display: inline-block;
}

.d-none {
    display: none !important;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Passport photo preview thumbnail in the passenger form (keeps large scans
   from overflowing the modal). */
.photo-preview-img {
    max-width: 150px;
    max-height: 150px;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid var(--primary-color, #6c5ce7);
    vertical-align: middle;
}

/* ============================================================
   Modern UI refinements (2026) — fit-to-display + clean surfaces.
   Appended last so these win over earlier rules. RTL-safe (logical props).
   ============================================================ */

/* Soft scrim above the wallpaper: the app sits on a calm, light surface
   while the wallpaper remains a faint, tasteful backdrop instead of a
   full photo competing with the content. */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(248, 250, 252, 0.90), rgba(241, 245, 249, 0.94));
}
[data-theme="dark"] body::before {
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.92), rgba(2, 6, 23, 0.95));
}

/* Always fill the viewport height so the backdrop never dominates. */
.content-wrapper {
    min-height: 100vh;
    min-height: 100dvh;
}
.main-content {
    gap: 20px;
}

/* Cleaner, more modern card surfaces. */
.stat-card,
.data-table-container {
    border: 1px solid rgba(15, 23, 42, 0.06);
    border-radius: 18px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 10px 30px rgba(15, 23, 42, 0.06);
}
[data-theme="dark"] .stat-card,
[data-theme="dark"] .data-table-container {
    border-color: rgba(255, 255, 255, 0.07);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 10px 30px rgba(0, 0, 0, 0.35);
}

/* Stat cards: swap the heavy colored side border for a refined accent bar
   that works in both LTR and RTL. */
.stat-card {
    border-left: 1px solid rgba(15, 23, 42, 0.06);
    border-top: 1px solid rgba(15, 23, 42, 0.06);
    border-right: 1px solid rgba(15, 23, 42, 0.06);
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
    position: relative;
    overflow: hidden;
}
.stat-card::before {
    content: "";
    position: absolute;
    inset-inline-start: 0;
    inset-block: 0;
    width: 4px;
    background: linear-gradient(180deg, var(--primary-color), var(--secondary-color));
}
.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 2px 4px rgba(15, 23, 42, 0.06), 0 18px 42px rgba(15, 23, 42, 0.13);
}

/* Sidebar: solid, modern, pill-style active item. */
.sidebar {
    border: none;
    box-shadow: 1px 0 0 rgba(15, 23, 42, 0.05);
}
.sidebar .nav-link {
    border-radius: 12px;
    margin: 3px 12px;
    padding: 11px 14px;
    border-left: none;
    border-right: none;
}
.sidebar .nav-link:hover {
    background: var(--hover-bg);
    border-left-color: transparent;
    border-right-color: transparent;
}
.sidebar .nav-link.active,
body.rtl .sidebar .nav-link.active {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: #fff;
    border-left-color: transparent;
    border-right-color: transparent;
    box-shadow: 0 8px 18px rgba(99, 102, 241, 0.32);
}
.sidebar .nav-link.active i {
    color: #fff;
}

/* Header: clean solid surface. */
.top-header {
    background: var(--card-bg);
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

/* ------------------------------------------------------------
   Passengers table: fit ALL columns on screen — no left/right
   scroll on desktop (vertical scroll stays). Compacts the action
   buttons and cells, and lets text columns wrap.
   ------------------------------------------------------------ */
.passenger-modern-table {
    width: 100%;
    font-size: 0.84rem;
}
.passenger-modern-table thead th,
.passenger-modern-table tbody td {
    padding: 8px 8px;
    vertical-align: middle;
}
.passenger-modern-table thead th {
    font-size: 0.7rem;
    white-space: normal;
}
/* Allow text-heavy columns to wrap instead of forcing the table wide. */
.passenger-modern-table .passenger-name { white-space: normal; }
.passenger-modern-table .badge {
    white-space: normal;
    padding: 4px 8px;
    font-size: 0.76rem;
    line-height: 1.2;
    display: inline-block;
}
/* Compact, single-row action buttons. */
.passenger-actions {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 3px;
    white-space: nowrap;
}
.passenger-actions .btn {
    margin: 0;
    padding: 4px 6px;
    font-size: 0.78rem;
    line-height: 1;
    border-radius: 8px;
}
.passenger-actions .btn i {
    font-size: 0.9rem;
}
/* The shell fits content on desktop; keep auto as a fallback for very
   narrow screens only. */
@media (min-width: 1100px) {
    .passenger-table-shell {
        overflow-x: visible;
    }
}

/* ------------------------------------------------------------
   Mobile-friendly: off-canvas sidebar drawer + backdrop, and
   sensible touch/table behaviour on phones.
   ------------------------------------------------------------ */
.sidebar-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease;
}
.sidebar-backdrop.active {
    opacity: 1;
    visibility: visible;
}

@media (max-width: 768px) {
    /* Drawer: fully off-screen until opened, then slides over the content.
       Use explicit directions so it works in both LTR and RTL. */
    .sidebar {
        width: 82vw;
        max-width: 300px;
        height: 100vh;
        height: 100dvh;
        transform: translateX(-110%);
    }
    body.rtl .sidebar {
        transform: translateX(110%);
    }
    .sidebar.active,
    body.rtl .sidebar.active {
        transform: translateX(0);
    }
    .content-wrapper,
    body.rtl .content-wrapper {
        margin-left: 0;
        margin-right: 0;
    }
    .sidebar-toggle {
        display: block;
        font-size: 1.6rem;
    }

    /* Header: compact and tidy on small screens. */
    .top-header {
        padding: 0 12px;
    }
    .top-header .language-select {
        max-width: 130px;
    }

    /* Comfortable content padding and bigger touch targets. */
    .main-content {
        padding: 14px;
        gap: 14px;
    }
    .btn {
        min-height: 40px;
    }

    /* Passengers: stack each row as a card on phones — NO sideways scroll. */
    .passenger-table-shell {
        overflow-x: hidden;
        max-height: none;
        border: none;
    }
    .passenger-modern-table thead {
        display: none;
    }
    .passenger-modern-table,
    .passenger-modern-table tbody,
    .passenger-modern-table tr,
    .passenger-modern-table td {
        display: block;
        width: 100%;
    }
    .passenger-modern-table tr {
        background: var(--card-bg);
        border: 1px solid var(--border-color);
        border-radius: 14px;
        margin-bottom: 12px;
        padding: 4px 12px;
        box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
    }
    .passenger-modern-table td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 12px;
        text-align: end;
        padding: 9px 0;
        border: none;
        border-bottom: 1px solid rgba(15, 23, 42, 0.06);
        white-space: normal;
    }
    .passenger-modern-table td:last-child {
        border-bottom: none;
    }
    .passenger-modern-table td::before {
        content: attr(data-label);
        font-weight: 600;
        color: var(--muted-text);
        font-size: 0.8rem;
        text-align: start;
        flex: 0 0 auto;
    }
    .passenger-modern-table td.passenger-actions {
        justify-content: center;
        flex-wrap: wrap;
        gap: 6px;
        padding-top: 12px;
    }
    .passenger-modern-table td.passenger-actions::before {
        display: none;
    }
    .passenger-actions .btn {
        min-height: 36px;
        padding: 7px 11px;
    }

    /* Other wide tables: allow horizontal scroll as a fallback on phones. */
    .table-responsive:not(.passenger-table-shell) {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}

/* ============================================================
   DESIGN POLISH (2026) — cohesive radii, transitions, focus rings,
   buttons, inputs, tables, badges, modals. Appended last so it wins.
   RTL-safe (no physical-direction assumptions). CSS-only.
   ============================================================ */
:root {
    --radius-sm: 10px;
    --radius-md: 14px;
    --radius-lg: 18px;
    --focus-ring: 0 0 0 3px rgba(99, 102, 241, 0.28);
}

/* Smooth, consistent micro-interactions. */
.btn,
.form-control,
.form-select,
.sidebar .nav-link,
.badge,
.search-box input,
.page-link,
.dropdown-item {
    transition: background-color 0.18s ease, color 0.18s ease,
        border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

/* Headings: tighter, stronger hierarchy. */
h1, h2, h3, h4, h5,
.data-table-container h2,
.data-table-container h5 {
    letter-spacing: -0.01em;
    font-weight: 700;
}

/* Buttons — unified radius, weight, focus + active feedback. */
.btn {
    border-radius: var(--radius-sm);
    font-weight: 600;
}
.btn:focus-visible {
    outline: none;
    box-shadow: var(--focus-ring);
}
.btn:active {
    transform: translateY(0);
}
.btn-primary:hover {
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.35);
}
.btn-outline-primary,
.btn-outline-secondary,
.btn-outline-danger,
.btn-outline-warning,
.btn-outline-success,
.btn-outline-info {
    border-width: 1.5px;
}

/* Inputs & selects — lighter borders, clean focus ring. */
.form-control,
.form-select {
    border-radius: var(--radius-sm);
    border: 1.5px solid var(--border-color);
    padding: 10px 14px;
}
.form-control:focus,
.form-select:focus,
.search-box input:focus {
    border-color: var(--primary-color);
    box-shadow: var(--focus-ring);
}
.form-label {
    font-weight: 600;
    margin-bottom: 6px;
}
.search-box input {
    border-width: 1.5px;
}

/* Tables — clean uppercase header, comfortable rows, subtle hover. */
.table thead th {
    background: var(--hover-bg);
    color: var(--muted-text);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-weight: 700;
    border-bottom: 1px solid var(--border-color);
}
.table tbody td {
    padding: 11px 12px;
    vertical-align: middle;
}
.table-hover tbody tr:hover {
    background: var(--hover-bg);
}

/* Badges — crisp pill. */
.badge {
    font-weight: 600;
    letter-spacing: 0.01em;
}

/* Modals — match the card radius, softer shadow, clean header. */
.modal-content {
    border-radius: var(--radius-lg);
    border: none;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.25);
    overflow: hidden;
}
.modal-header {
    padding: 16px 22px;
}
.modal-body {
    padding: 22px;
}

/* Stat numbers — tighter for a premium feel. */
.stat-card h3 {
    letter-spacing: -0.02em;
}
