﻿/* ==========================================================================
   Safari Vents â€” My Bookings (Hotel Bookings)
   Theme: Digital Storm Honey Amber (#DD7A28) & Warm Cream Canvas (#F5EFE6)
   Typography: Inter
   ========================================================================== */

.bookings-page {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    -webkit-font-smoothing: antialiased;
    color: #111827;
    background-color: #F5EFE6;
    min-height: calc(100vh - 64px);
    padding: 16px 24px;
    box-sizing: border-box;
}

/* â”€â”€ Header â”€â”€ */
.bookings-header {
    background: #FFFFFF;
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
    flex-wrap: wrap;
    gap: 12px;
}

.bookings-header-left h1 {
    font-size: 17px;
    font-weight: 800;
    color: #111827;
    letter-spacing: -0.02em;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 2px 0;
}

.bookings-header-left h1 i {
    color: #DD7A28;
    font-size: 18px;
}

.bookings-header-left p {
    font-size: 12px;
    color: #6B7280;
    margin: 0;
    font-weight: 500;
}

.bookings-new-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    background: #DD7A28;
    color: #FFFFFF;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.15s ease;
    border: 1px solid #DD7A28;
    box-shadow: 0 1px 3px rgba(221, 122, 40, 0.25);
}

.bookings-new-btn:hover {
    background: #c56820;
    border-color: #c56820;
    color: #FFFFFF;
    transform: translateY(-1px);
}

/* â”€â”€ Statistics Cards â”€â”€ */
.bookings-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 16px;
}

.stat-card {
    background: #FFFFFF;
    border-radius: 12px;
    padding: 14px 16px;
    border: 1px solid #E5E7EB;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
    transition: all 0.15s ease;
}

.stat-card:hover {
    border-color: #DD7A28;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(221, 122, 40, 0.08);
}

.stat-value {
    font-size: 20px;
    font-weight: 800;
    color: #111827;
    line-height: 1.1;
    margin-bottom: 2px;
    letter-spacing: -0.02em;
}

.stat-label {
    font-size: 11px;
    font-weight: 600;
    color: #6B7280;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.stat-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

.stat-icon.total { background: #F3F4F6; color: #1F2937; }
.stat-icon.pending { background: #FEF3C7; color: #D97706; }
.stat-icon.confirmed { background: #D1FAE5; color: #059669; }
.stat-icon.upcoming { background: #FFEDD5; color: #DD7A28; }

/* â”€â”€ Search & Filter Bar â”€â”€ */
.bookings-search-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    background: #FFFFFF;
    border-radius: 10px;
    padding: 8px 14px;
    border: 1px solid #E5E7EB;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
    flex-wrap: wrap;
}

.search-input-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 220px;
}

.search-input-wrap i {
    color: #9CA3AF;
    font-size: 14px;
}

.search-input-wrap input {
    border: none;
    outline: none;
    background: transparent;
    font-size: 12.5px;
    color: #111827;
    width: 100%;
    font-family: inherit;
}

.search-input-wrap input::placeholder {
    color: #9CA3AF;
}

.search-filters {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.filter-select {
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    padding: 6px 12px;
    font-size: 12px;
    color: #374151;
    background: #F9FAFB;
    outline: none;
    cursor: pointer;
    font-weight: 500;
    font-family: inherit;
    transition: border-color 0.15s;
}

.filter-select:focus {
    border-color: #DD7A28;
    background: #FFFFFF;
}

.filter-count {
    font-size: 11.5px;
    font-weight: 600;
    color: #6B7280;
    white-space: nowrap;
}

/* â”€â”€ Table Card â”€â”€ */
.bookings-table-card {
    background: #FFFFFF;
    border-radius: 12px;
    border: 1px solid #E5E7EB;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.table-responsive-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.bookings-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.bookings-table thead {
    background: #F9FAFB;
}

.bookings-table thead th {
    padding: 10px 14px;
    font-size: 11px;
    font-weight: 700;
    color: #6B7280;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border-bottom: 1px solid #E5E7EB;
    white-space: nowrap;
}

.bookings-table tbody tr {
    border-bottom: 1px solid #F3F4F6;
    transition: background 0.15s ease;
}

.bookings-table tbody tr:hover {
    background: #FDFBF7;
}

.bookings-table tbody tr:last-child {
    border-bottom: none;
}

.bookings-table tbody td {
    padding: 11px 14px;
    font-size: 12.5px;
    color: #374151;
    vertical-align: middle;
}

/* â”€â”€ Table Cell Elements â”€â”€ */
.cell-id {
    font-weight: 700;
    font-size: 11.5px;
    color: #DD7A28;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    background: #FFF7ED;
    padding: 2px 6px;
    border-radius: 5px;
    display: inline-block;
}

.cell-hotel-name {
    font-weight: 700;
    font-size: 13px;
    color: #111827;
    margin-bottom: 1px;
}

.cell-hotel-note {
    display: block;
    font-size: 11px;
    color: #6B7280;
    font-weight: 400;
    line-height: 1.3;
}

.cell-location,
.cell-date,
.cell-guests {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    white-space: nowrap;
    color: #4B5563;
}

.cell-location i { color: #DD7A28; font-size: 11.5px; }
.cell-guests i { color: #6B7280; font-size: 11.5px; }

.cell-price {
    font-weight: 700;
    font-size: 12.5px;
    color: #111827;
    font-feature-settings: 'tnum';
}

/* â”€â”€ Status Badges â”€â”€ */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    text-transform: capitalize;
    white-space: nowrap;
}

.status-badge.pending {
    background: #FEF3C7;
    color: #B45309;
    border: 1px solid #FDE68A;
}

.status-badge.confirmed {
    background: #D1FAE5;
    color: #065F46;
    border: 1px solid #A7F3D0;
}

.status-badge.rejected,
.status-badge.cancelled {
    background: #FEE2E2;
    color: #991B1B;
    border: 1px solid #FECACA;
}

.status-badge i {
    font-size: 9px;
}

.rejection-info-inline {
    display: flex;
    align-items: flex-start;
    gap: 4px;
    margin-top: 4px;
    font-size: 11px;
    color: #DC2626;
    line-height: 1.3;
}

.rejection-date-inline {
    font-size: 10px;
    color: #9CA3AF;
    margin-top: 2px;
}

/* â”€â”€ Actions â”€â”€ */
.cell-actions {
    display: flex;
    align-items: center;
    gap: 6px;
}

.action-btn-sm {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    border: 1px solid transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.15s ease;
    text-decoration: none;
}

.action-btn-sm.view {
    background: #FFF7ED;
    color: #DD7A28;
    border-color: #FED7AA;
}

.action-btn-sm.view:hover {
    background: #DD7A28;
    color: #FFFFFF;
    border-color: #DD7A28;
}

.action-btn-sm.cancel {
    background: #FEF2F2;
    color: #EF4444;
    border-color: #FECACA;
}

.action-btn-sm.cancel:hover {
    background: #EF4444;
    color: #FFFFFF;
    border-color: #EF4444;
}

/* â”€â”€ Empty & Loading â”€â”€ */
.bookings-empty {
    text-align: center;
    padding: 48px 20px;
    background: #FFFFFF;
    border-radius: 12px;
    border: 1px solid #E5E7EB;
}

.bookings-empty i {
    font-size: 32px;
    color: #D1D5DB;
    margin-bottom: 8px;
    display: block;
}

.bookings-empty h4 {
    font-size: 15px;
    font-weight: 800;
    color: #111827;
    margin-bottom: 4px;
}

.bookings-empty p {
    font-size: 12px;
    color: #6B7280;
    margin-bottom: 14px;
}

.bookings-loading {
    text-align: center;
    padding: 48px 20px;
    background: #FFFFFF;
    border-radius: 12px;
    border: 1px solid #E5E7EB;
}

.bookings-loading .spinner-border {
    width: 28px;
    height: 28px;
    border-width: 2.5px;
    color: #DD7A28 !important;
}

.bookings-loading p {
    font-size: 12px;
    color: #6B7280;
    margin-top: 10px;
    font-weight: 500;
}

/* â”€â”€ Pagination â”€â”€ */
.bookings-pagination {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 16px;
    justify-content: center;
}

.page-btn {
    width: 30px;
    height: 30px;
    border-radius: 6px;
    border: 1px solid #E5E7EB;
    background: #FFFFFF;
    color: #374151;
    font-size: 11.5px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.15s ease;
}

.page-btn:hover:not(:disabled) {
    border-color: #DD7A28;
    color: #DD7A28;
    background: #FFF7ED;
}

.page-btn.active {
    background: #111827;
    color: #FFFFFF;
    border-color: #111827;
}

.page-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.page-info {
    font-size: 11.5px;
    color: #6B7280;
    font-weight: 500;
    margin-left: 8px;
}

/* â”€â”€ Responsive â”€â”€ */
@media (max-width: 992px) {
    .bookings-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .bookings-page {
        padding: 12px 14px;
    }

    .bookings-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .bookings-stats {
        grid-template-columns: 1fr 1fr;
    }

    .bookings-table {
        min-width: 720px;
    }
}

@media (max-width: 480px) {
    .bookings-stats {
        grid-template-columns: 1fr;
    }
}