/* =========================
   MODERN BOOKINGS & ORDERS THEME
========================= */

:root {
    --booking-primary: #3f5185;
    --booking-primary-light: #e8eaf6;
    --booking-secondary: #4fbde8;
    --booking-accent: #ff6b6b;
    --booking-bg-glass: rgba(255, 255, 255, 0.9);
    --booking-shadow: 0 15px 35px rgba(0, 0, 0, 0.05), 0 5px 15px rgba(0, 0, 0, 0.02);
}

.booking-section {
    background: linear-gradient(135deg, #f8f9fc 0%, #f1f4f9 100%);
    padding: 40px 0;
    min-height: 80vh;
}

.table-container {
    background: var(--booking-bg-glass);
    backdrop-filter: blur(10px);
    padding: 40px;
    border-radius: 30px;
    box-shadow: var(--booking-shadow);
    border: 1px solid rgba(255, 255, 255, 0.8);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.section-title-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px dashed #e0e6ed;
}

.section-title-box h3 {
    font-size: 28px;
    font-weight: 800;
    color: #1a202c;
    letter-spacing: -0.5px;
}

/* CUSTOM TABS */
.modern-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    overflow-x: auto;
    padding-bottom: 10px;
}

.tab-btn {
    /* padding: 12px 24px; */
    border-radius: 14px;
    border: none;
    background: #fff;
    color: #64748b;
    font-weight: 700;
    font-size: 14px;
    white-space: nowrap;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
    transition: all 0.3s ease;
    cursor: pointer;
}

.tab-btn.active {
    background: var(--booking-primary);
    color: #fff;
    box-shadow: 0 10px 20px rgba(63, 81, 133, 0.2);
}

.tab-btn:hover:not(.active) {
    background: #f1f5f9;
    color: var(--booking-primary);
}

/* DATATABLES */
.dataTables_wrapper .dataTables_filter {
    margin-bottom: 25px;
}

.dataTables_wrapper .dataTables_filter input {
    border-radius: 14px;
    border: 1.5px solid #e2e8f0;
    padding: 12px 20px;
    width: 300px;
    background: #fff;
    font-size: 14px;
    transition: all 0.3s ease;
}

.dataTables_wrapper .dataTables_filter input:focus {
    border-color: var(--booking-primary);
    box-shadow: 0 0 0 4px rgba(63, 81, 133, 0.1);
    outline: none;
}

.table thead th {
    background: #f8fafc;
    color: #64748b;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 1px;
    padding: 20px 15px;
    border: none;
}

.table tbody tr {
    transition: all 0.3s ease;
}

.table tbody tr:hover {
    background-color: #f8fafc !important;
}

.table td {
    padding: 18px 15px;
    vertical-align: middle;
    color: #334155;
    font-weight: 500;
    border-bottom: 1px solid #f1f5f9;
}

/* BADGES */
.badge-status {
    padding: 8px 14px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

/* Combined Statuses */
.status-pending,
.status-upcoming {
    background: #eff6ff;
    color: #3b82f6;
}

.status-processing,
.status-progress {
    background: #fefce8;
    color: #a16207;
}

.status-shipped,
.status-rescheduled {
    background: #f5f3ff;
    color: #8b5cf6;
}

.status-delivered,
.status-completed {
    background: #f0fff4;
    color: #22c55e;
}

.status-cancelled {
    background: #fff1f2;
    color: #f43f5e;
}

.badge-type {
    font-size: 10px;
    padding: 4px 8px;
    border-radius: 6px;
    background: #f1f5f9;
    color: #475569;
    margin-top: 4px;
    display: inline-block;
}

/* ACTION BUTTONS */
.action-flex {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}

.action-btn-premium {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 15px;
}

.view-btn-p {
    background: #f1f5f9;
    color: #475569;
}

.view-btn-p:hover {
    background: var(--booking-primary);
    color: #fff;
    transform: translateY(-2px);
}

.reorder-btn-p,
.reschedule-btn-p {
    background: #f0f7ff;
    color: #0070f3;
}

.reorder-btn-p:hover,
.reschedule-btn-p:hover {
    background: #0070f3;
    color: #fff;
    transform: translateY(-2px);
}

.cancel-btn-p {
    background: #fff1f2;
    color: #f43f5e;
}

.cancel-btn-p:hover {
    background: #f43f5e;
    color: #fff;
    transform: translateY(-2px);
}

/* SWEETALERT & MODAL STYLE */
.swal2-popup.modern-swal {
    border-radius: 35px !important;
    padding: 10px !important;
}

.modal-divider {
    border-bottom: 2px dashed #e2e8f0;
    margin: 5px 0 25px 0;
    width: 100%;
}

.order-detail-item,
.booking-detail-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px dashed #f1f5f9;
}

.order-detail-item:last-child,
.booking-detail-item:last-child {
    border: none;
}

.detail-label {
    color: #64748b;
    font-size: 14px;
    font-weight: 600;
}

.detail-value {
    color: #1e293b;
    font-size: 14px;
    font-weight: 700;
}

.order-item-list {
    background: #f8fafc;
    border-radius: 20px;
    padding: 20px;
    margin-top: 15px;
}

/* RESPONSIVE */
@media (max-width: 767px) {
    .table-container {
        padding: 25px 15px;
        border-radius: 20px;
    }

    .section-title-box {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .table-box {
        overflow-x: auto;
        margin: 0 -15px;
        padding: 0 15px;
    }

    .table {
        min-width: 900px;
    }
}