/* booking.css */
body {
    background: #f8f9fc;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: #2d3436;
}

/* =========================
   TOP HEADER & BREADCRUMB
========================= */
.page-header {
    background: #ffffff;
    padding: 20px 16px;
    border-bottom: 1px solid #edf2f7;
    margin-bottom: 0;
}

.breadcrumb {
    margin-bottom: 15px;
    font-size: 0.85rem;
}

.breadcrumb-item a {
    color: #6c757d;
    text-decoration: none;
}

.back-btn {
    background: #f1f3f5;
    border: none;
    color: #212529;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.back-btn:hover {
    background: #e9ecef;
    transform: translateX(-3px);
}

/* =========================
   CARDS & TABLE
========================= */
.card {
    border-radius: 20px;
    border: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    background: #ffffff;
}

.table thead th {
    background: #f8f9fa;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 0.5px;
    font-weight: 700;
    color: #95a5a6;
    padding: 15px;
    border: none;
}

.table tbody td {
    padding: 15px;
    border-bottom: 1px solid #f1f1f1;
    vertical-align: middle;
}

/* =========================
   MOBILE RESPONSIVENESS (The "Uber" Look)
========================= */
@media (max-width: 768px) {
    .table-responsive-stack thead {
        display: none;
        /* Hide table headers on mobile */
    }

    .dataTables_wrapper .row:first-child {
        margin-bottom: 15px;
    }

    /* Make each row look like a card */
    #bookingTable tbody tr {
        display: block;
        background: #fff;
        margin-bottom: 15px;
        border-radius: 15px;
        padding: 15px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
        border: 1px solid #edf2f7;
    }

    #bookingTable td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        border: none;
        padding: 5px 0;
    }

    #bookingTable td::before {
        content: attr(data-label);
        font-weight: 600;
        color: #7f8c8d;
        font-size: 13px;
    }
}

/* =========================
   STATUS DESIGN
========================= */
.status-badge {
    padding: 6px 14px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 600;
}

.status-completed {
    background: #e6fcf5;
    color: #0ca678;
}

.status-pending {
    background: #fff9db;
    color: #f08c00;
}

.status-cancelled {
    background: #fff5f5;
    color: #fa5252;
}

.btn-view {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 5px 12px;
    font-size: 13px;
    transition: 0.2s;
}

.btn-view:hover {
    background: #339af0;
    color: white;
    border-color: #339af0;
}


/* Booking details */

/* Invoice Specific Styling */
.invoice-container {
    padding: 10px;
}

/* Vertical Route Line Visualization */
.route-viz {
    position: relative;
    padding-left: 10px;
}

.route-item {
    display: flex;
    align-items: flex-start;
    position: relative;
    z-index: 2;
}

/* The connector line between pickup and dropoff */
.route-viz::before {
    content: '';
    position: absolute;
    left: 15px;
    /* Adjust based on icon width */
    top: 15px;
    bottom: 15px;
    width: 2px;
    background: #e9ecef;
    z-index: 1;
}

.route-item i {
    width: 12px;
    margin-top: 5px;
    background: white;
    /* masks the line behind the icon */
}

/* Modal Polish */
#bookingModal .modal-content {
    border-radius: 24px;
    border: none;
    overflow: hidden;
}

#bookingModal .modal-header {
    border-bottom: 1px solid #f8f9fa;
    background: #fff;
}

@media (max-width: 576px) {
    .invoice-container h4 {
        font-size: 1.1rem;
    }

    .invoice-container .h5 {
        font-size: 1rem;
    }
}


/* Invoice Aesthetics */
.invoice-wrapper {
    font-family: 'Inter', sans-serif;
    color: #444;
}

.invoice-wrapper h1,
.invoice-wrapper h4 {
    color: #000;
}

.bg-light-subtle {
    background-color: #fbfbfc !important;
}

/* Print Styling */
@media print {
    body * {
        visibility: hidden;
    }

    #bookingModal,
    #bookingModal * {
        visibility: visible;
    }

    #bookingModal {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
    }

    .btn-close,
    .modal-header button {
        display: none !important;
    }
}

/* Badge colors for status */
.bg-success-subtle {
    background-color: #d1e7dd;
}

.bg-warning-subtle {
    background-color: #fff3cd;
}

/* Shared button system */
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid #d7e2dc;
    border-radius: 999px;
    padding: 11px 18px;
    background: #ffffff;
    color: #223744;
    font-family: inherit;
    font-size: 0.8rem;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.button:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(12, 36, 57, 0.14);
}

.button:focus-visible {
    outline: 0;
    box-shadow: 0 0 0 3px rgba(9, 29, 45, 0.16), 0 10px 22px rgba(12, 36, 57, 0.14);
}

.button.button-dark,
.button-dark {
    border-color: #0c2439;
    background: linear-gradient(135deg, #0f2d46 0%, #0a1f31 100%);
    color: #ffffff;
    box-shadow: 0 8px 18px rgba(8, 26, 43, 0.24);
}

.button.button-dark:hover,
.button-dark:hover {
    border-color: #163a58;
    background: linear-gradient(135deg, #163a58 0%, #0f2d46 100%);
    color: #ffffff;
}

.button.button-dark:focus-visible,
.button-dark:focus-visible {
    box-shadow: 0 0 0 3px rgba(16, 54, 84, 0.3), 0 10px 22px rgba(8, 26, 43, 0.28);
}

.button:disabled,
.button[disabled],
.button.is-disabled,
.button[aria-disabled="true"] {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.invoice_logo {
    width: 110px;
    height: auto;
}


.table-responsive {
    height: 400px !important;
}

/* Bottom Navigation sheet starts here */
/* CSS to hide/show based on device width */
@media (min-width: 992px) {
    .mobile-action-trigger {
        display: none !important;
    }

    .desktop-action-trigger {
        display: inline-block !important;
    }
}

@media (max-width: 991px) {
    .mobile-action-trigger {
        display: inline-block !important;
    }

    .desktop-action-trigger {
        display: none !important;
    }

    .rounded-top-4 {
        border-top-left-radius: 1.5rem !important;
        border-top-right-radius: 1.5rem !important;
    }
}

/* Bottom Navigation sheet ends here */