/* ==========================================================================
   EventHotelBroker — Admin Bookings
   Theme: Digital Storm Honey Amber (#DD7A28) & Warm Cream Canvas (#F5EFE6)
   Typography: Inter
   Prefix: ab-
   ========================================================================== */

.ab {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    -webkit-font-smoothing: antialiased;
    color: #1A1A1A;
    background-color: #F5EFE6;
    min-height: 100%;
    padding: 24px;
    box-sizing: border-box;
}

/* ── Header ── */
.ab-header {
    background: #FFFFFF !important;
    border: 1px solid #E5E7EB !important;
    border-radius: 14px !important;
    padding: 16px 20px !important;
    display: flex !important; 
    align-items: center !important; 
    justify-content: space-between !important;
    margin-bottom: 20px !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03) !important;
}

.ab-header-title { 
    font-size: 18px !important; 
    font-weight: 800 !important; 
    color: #111827 !important; 
    letter-spacing: -0.02em !important; 
    margin: 0 0 2px 0 !important; 
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
}

.ab-header-title i {
    color: #DD7A28 !important;
    font-size: 18px !important;
}

.ab-header-sub { 
    font-size: 12px !important; 
    color: #6B7280 !important; 
    margin: 0 !important; 
}

/* ── Buttons ── */
.ab-btn {
    display: inline-flex; 
    align-items: center; 
    gap: 6px;
    font-size: 12px; 
    font-weight: 600; 
    padding: 7px 14px;
    border-radius: 8px; 
    border: 1px solid #E5E7EB; 
    cursor: pointer;
    transition: all 0.15s ease; 
    text-decoration: none !important; 
    white-space: nowrap;
}

.ab-btn-refresh { 
    background: #FFFFFF !important; 
    color: #374151 !important; 
    border: 1px solid #E5E7EB !important; 
    box-shadow: 0 1px 2px rgba(0,0,0,0.03) !important;
}

.ab-btn-refresh:hover { 
    background: #F9FAFB !important; 
    border-color: #DD7A28 !important; 
    color: #DD7A28 !important; 
}

/* ── KPI Stats Row ── */
.ab-stats { 
    display: grid !important; 
    grid-template-columns: repeat(4, 1fr) !important; 
    gap: 16px !important; 
    margin-bottom: 20px !important; 
}

.ab-stat {
    background: #FFFFFF !important; 
    border: 1px solid #E5E7EB !important; 
    border-radius: 14px !important;
    padding: 16px !important; 
    display: flex !important; 
    align-items: center !important; 
    justify-content: space-between !important;
    transition: transform 0.15s ease, box-shadow 0.15s ease !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03) !important;
    position: relative !important;
    overflow: hidden !important;
}

.ab-stat:hover { 
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06) !important;
}

/* Left 4px vertical accent stripe */
.ab-stat::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important; 
    left: 0 !important; 
    bottom: 0 !important;
    right: auto !important;
    width: 4px !important;
    height: 100% !important;
}

.ab-stat:nth-child(1)::before { background-color: #3B82F6 !important; }
.ab-stat:nth-child(2)::before { background-color: #DD7A28 !important; }
.ab-stat:nth-child(3)::before { background-color: #10B981 !important; }
.ab-stat:nth-child(4)::before { background-color: #EF4444 !important; }

.ab-stat-value { 
    font-size: 22px !important; 
    font-weight: 800 !important; 
    color: #111827 !important; 
    letter-spacing: -0.02em !important; 
    line-height: 1.2 !important; 
}

.ab-stat-label { 
    font-size: 10px !important; 
    color: #6B7280 !important; 
    font-weight: 700 !important; 
    text-transform: uppercase !important; 
    letter-spacing: 0.06em !important; 
    margin-top: 3px !important; 
}

.ab-stat-icon { 
    width: 34px !important; 
    height: 34px !important; 
    border-radius: 8px !important; 
    display: flex !important; 
    align-items: center !important; 
    justify-content: center !important; 
    font-size: 14px !important; 
    flex-shrink: 0 !important; 
}

.ab-stat:nth-child(1) .ab-stat-icon, .ab-icon-terracotta { 
    background: #EFF6FF !important; 
    color: #3B82F6 !important; 
}
.ab-stat:nth-child(2) .ab-stat-icon, .ab-icon-bronze { 
    background: #FFF7ED !important; 
    color: #DD7A28 !important; 
}
.ab-stat:nth-child(3) .ab-stat-icon, .ab-icon-teal { 
    background: #ECFDF5 !important; 
    color: #10B981 !important; 
}
.ab-stat:nth-child(4) .ab-stat-icon, .ab-icon-charcoal { 
    background: #FEF2F2 !important; 
    color: #EF4444 !important; 
}

/* ── Search & Filter ── */
.ab-search-bar { 
    display: flex !important; 
    align-items: center !important; 
    gap: 12px !important; 
    margin-bottom: 20px !important; 
    flex-wrap: wrap !important; 
}

.ab-search-wrap { 
    position: relative !important; 
    flex: 1 !important; 
    min-width: 240px !important; 
}

.ab-search-wrap i { 
    position: absolute !important; 
    left: 10px !important; 
    top: 50% !important; 
    transform: translateY(-50%) !important; 
    font-size: 13px !important; 
    color: #9CA3AF !important; 
    pointer-events: none !important; 
}

.ab-search-input {
    width: 100% !important; 
    padding: 8px 14px 8px 34px !important; 
    font-size: 12px !important; 
    font-family: 'Inter', sans-serif !important;
    border: 1px solid #E5E7EB !important; 
    border-radius: 8px !important; 
    background: #FFFFFF !important; 
    color: #111827 !important; 
    outline: none !important;
    transition: all 0.2s ease !important;
}

.ab-search-input::placeholder { 
    color: #9CA3AF !important; 
}

.ab-search-input:focus { 
    border-color: #DD7A28 !important; 
    box-shadow: 0 0 0 2px rgba(221, 122, 40, 0.2) !important; 
}

.ab-filter-select {
    padding: 8px 12px !important; 
    font-size: 12px !important; 
    font-weight: 600 !important; 
    font-family: inherit !important;
    border: 1px solid #E5E7EB !important; 
    border-radius: 8px !important; 
    background: #FFFFFF !important; 
    color: #374151 !important;
    outline: none !important; 
    cursor: pointer !important; 
    min-width: 140px !important; 
    transition: border-color 0.2s ease !important;
}

.ab-filter-select:focus { 
    border-color: #DD7A28 !important; 
    box-shadow: 0 0 0 2px rgba(221, 122, 40, 0.2) !important; 
}

.ab-search-count { 
    font-size: 11px !important; 
    color: #6B7280 !important; 
    white-space: nowrap !important; 
    font-weight: 600 !important; 
}

/* ── Card Container ── */
.ab-card { 
    background: #FFFFFF !important; 
    border: 1px solid #E5E7EB !important; 
    border-radius: 14px !important; 
    overflow: hidden !important; 
    margin-bottom: 24px !important; 
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03) !important;
}

.ab-card-header { 
    display: flex !important; 
    align-items: center !important; 
    justify-content: space-between !important; 
    padding: 14px 18px !important; 
    background: #FFFFFF !important;
    border-bottom: 1px solid #F3F4F6 !important; 
}

.ab-card-title { 
    font-size: 14px !important; 
    font-weight: 700 !important; 
    color: #111827 !important; 
    display: flex !important; 
    align-items: center !important; 
    gap: 8px !important; 
    margin: 0 !important; 
}

.ab-card-title i { 
    color: #DD7A28 !important; 
    font-size: 14px !important; 
}

.ab-card-count { 
    font-size: 11px !important; 
    font-weight: 700 !important; 
    background: rgba(221, 122, 40, 0.12) !important; 
    color: #DD7A28 !important; 
    padding: 2px 8px !important; 
    border-radius: 6px !important; 
}

/* ── Table ── */
.ab-table { 
    width: 100% !important; 
    border-collapse: collapse !important; 
}

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

.ab-table tbody td { 
    font-size: 12px !important; 
    color: #374151 !important; 
    padding: 12px 14px !important; 
    border-bottom: 1px solid #F3F4F6 !important; 
    vertical-align: middle !important; 
}

.ab-table tbody tr:last-child td { 
    border-bottom: none !important; 
}

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

.ab-hotel-cell { 
    display: flex; 
    align-items: center; 
    gap: 10px; 
}

.ab-hotel-icon { 
    width: 32px; 
    height: 32px; 
    border-radius: 8px; 
    background: rgba(221, 122, 40, 0.12); 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    color: #DD7A28; 
    font-size: 14px; 
    flex-shrink: 0; 
}

.ab-hotel-name { 
    font-size: 13px; 
    font-weight: 700; 
    color: #111827; 
}

.ab-hotel-sub { 
    font-size: 10px; 
    color: #6B7280; 
}

.ab-id { 
    font-size: 11px; 
    font-weight: 700; 
    color: #DD7A28; 
    font-family: monospace; 
}

.ab-guest, .ab-date { 
    font-size: 12px; 
    color: #4B5563; 
    display: flex; 
    align-items: center; 
    gap: 6px; 
}

.ab-guest i, .ab-date i { 
    font-size: 12px; 
    color: #9CA3AF; 
}

/* ── Badges ── */
.ab-badge { 
    font-size: 10px !important; 
    font-weight: 700 !important; 
    padding: 3px 8px !important; 
    border-radius: 12px !important; 
    text-transform: uppercase !important; 
    letter-spacing: 0.03em !important; 
    display: inline-flex !important; 
    align-items: center !important; 
    gap: 4px !important; 
}

.ab-badge-pending { 
    background: #FFF7ED !important; 
    color: #C2410C !important; 
    border: 1px solid #FFEDD5 !important; 
}

.ab-badge-confirmed { 
    background: #ECFDF5 !important; 
    color: #065F46 !important; 
    border: 1px solid #A7F3D0 !important; 
}

.ab-badge-rejected { 
    background: #FEF2F2 !important; 
    color: #991B1B !important; 
    border: 1px solid #FECACA !important; 
}

.ab-badge-cancelled { 
    background: #F3F4F6 !important; 
    color: #6B7280 !important; 
    border: 1px solid #E5E7EB !important; 
}

.ab-badge-guests { 
    background: #EFF6FF !important; 
    color: #1E40AF !important; 
    border: 1px solid #BFDBFE !important; 
}

/* ── Action Buttons ── */
.ab-actions { 
    display: flex; 
    gap: 6px; 
}

.ab-btn-sm { 
    padding: 5px 9px !important; 
    font-size: 11px !important; 
    border-radius: 6px !important; 
}

.ab-btn-view { 
    background: #EFF6FF !important; 
    color: #2563EB !important; 
    border: 1px solid #DBEAFE !important; 
}
.ab-btn-view:hover { 
    background: #2563EB !important; 
    color: #FFFFFF !important; 
    border-color: #2563EB !important; 
}

.ab-btn-confirm { 
    background: #ECFDF5 !important; 
    color: #059669 !important; 
    border: 1px solid #A7F3D0 !important; 
}
.ab-btn-confirm:hover { 
    background: #059669 !important; 
    color: #FFFFFF !important; 
    border-color: #059669 !important; 
}

.ab-btn-reject { 
    background: #FEF2F2 !important; 
    color: #DC2626 !important; 
    border: 1px solid #FECACA !important; 
}
.ab-btn-reject:hover { 
    background: #DC2626 !important; 
    color: #FFFFFF !important; 
    border-color: #DC2626 !important; 
}

.ab-btn-outline { 
    background: #FFFFFF !important; 
    color: #374151 !important; 
    border: 1px solid #E5E7EB !important; 
}
.ab-btn-outline:hover { 
    background: #F9FAFB !important; 
    border-color: #DD7A28 !important; 
    color: #DD7A28 !important; 
}

.ab-date-range { 
    display: flex; 
    align-items: center; 
    gap: 6px; 
}

/* ── Toast ── */
.ab-toast { 
    position: fixed; 
    bottom: 24px; 
    right: 24px; 
    z-index: 1050; 
    min-width: 260px; 
    max-width: 360px; 
    background: #FFFFFF; 
    border: 1px solid #E5E7EB; 
    border-radius: 12px; 
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15); 
    padding: 14px 16px; 
    animation: ab-toast-slide 0.3s ease; 
}

.ab-toast-success { border-left: 4px solid #10B981 !important; }
.ab-toast-error { border-left: 4px solid #EF4444 !important; }
.ab-toast-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; }
.ab-toast-label { font-size: 12px; font-weight: 700; color: #111827; }
.ab-toast-close { background: none; border: none; font-size: 13px; color: #6B7280; cursor: pointer; padding: 0; }
.ab-toast-body { font-size: 12px; color: #4B5563; }
@keyframes ab-toast-slide { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }

/* ── BK Modal System ── */
.bk-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1050;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(4px);
    animation: bk-fade-in 0.2s ease;
    cursor: pointer;
}

.bk-modal-wrap {
    position: fixed;
    inset: 0;
    z-index: 1051;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.bk-modal {
    pointer-events: all;
    background: #FFFFFF;
    border-radius: 14px;
    width: 90%;
    max-width: 480px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
    border: 1px solid #E5E7EB;
    animation: bk-slide-up 0.22s ease;
    max-height: 88vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.bk-modal.bk-modal-lg { max-width: 600px; }
@keyframes bk-fade-in  { from { opacity: 0; } to { opacity: 1; } }
@keyframes bk-slide-up { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

.bk-modal-header {
    display: flex; 
    align-items: center; 
    justify-content: space-between;
    padding: 16px 20px; 
    border-bottom: 1px solid #F3F4F6; 
    flex-shrink: 0;
}

.bk-modal-header h5 {
    font-size: 15px; 
    font-weight: 800; 
    color: #111827;
    display: flex; 
    align-items: center; 
    gap: 8px; 
    margin: 0;
}

.bk-modal-header h5 i { color: #DD7A28; }

.bk-close-btn {
    background: #F9FAFB; 
    border: 1px solid #E5E7EB; 
    width: 32px; 
    height: 32px;
    border-radius: 8px; 
    display: flex; 
    align-items: center; 
    justify-content: center;
    font-size: 13px; 
    color: #6B7280; 
    cursor: pointer; 
    transition: all 0.15s; 
    flex-shrink: 0;
}

.bk-close-btn:hover { 
    background: #F3F4F6; 
    color: #111827; 
    border-color: #DD7A28; 
}

.bk-modal-body { 
    padding: 20px; 
    flex: 1; 
}

.bk-modal-body.text-center { text-align: center; }

.bk-modal-footer {
    display: flex; 
    align-items: center; 
    justify-content: flex-end; 
    gap: 10px;
    padding: 14px 20px; 
    border-top: 1px solid #F3F4F6; 
    flex-shrink: 0;
}

.bk-modal-icon {
    width: 56px; 
    height: 56px; 
    border-radius: 50%; 
    display: inline-flex;
    align-items: center; 
    justify-content: center; 
    font-size: 24px; 
    margin-bottom: 12px;
}

.bk-icon-confirm { background: #ECFDF5; color: #10B981; }
.bk-icon-reject  { background: #FEF2F2; color: #EF4444; }

.bk-modal-title  { 
    font-size: 16px; 
    font-weight: 800; 
    color: #111827; 
    margin: 0 0 4px; 
    letter-spacing: -0.02em; 
}

.bk-modal-sub { 
    font-size: 12px; 
    color: #6B7280; 
    margin-bottom: 12px; 
}

.bk-modal-detail {
    background: #F9FAFB; 
    border-radius: 10px; 
    padding: 12px 14px;
    font-size: 12px; 
    color: #4B5563; 
    border: 1px solid #E5E7EB;
    text-align: left; 
    word-break: break-word;
}

.bk-modal-detail strong { color: #111827; font-size: 13px; }

/* ── Empty / Loading ── */
.ab-empty { 
    text-align: center; 
    padding: 48px 16px; 
}

.ab-empty-icon { 
    font-size: 32px; 
    color: #D1D5DB; 
    margin-bottom: 8px; 
}

.ab-empty-title { 
    font-size: 14px; 
    font-weight: 700; 
    color: #111827; 
    margin-bottom: 4px; 
}

.ab-empty-text { 
    font-size: 12px; 
    color: #6B7280; 
}

.ab-loading { 
    text-align: center; 
    padding: 48px 16px; 
}

.ab-spinner { 
    display: inline-block; 
    width: 28px; 
    height: 28px; 
    border: 3px solid rgba(221, 122, 40, 0.15); 
    border-top-color: #DD7A28; 
    border-radius: 50%; 
    animation: ab-spin 0.6s linear infinite; 
}

@keyframes ab-spin { 
    to { transform: rotate(360deg); } 
}

.ab-loading-text { 
    font-size: 12px; 
    color: #6B7280; 
    margin-top: 8px; 
}

/* ── Responsive ── */
@media (max-width: 992px) { 
    .ab-stats { grid-template-columns: repeat(2, 1fr) !important; } 
}

@media (max-width: 768px) { 
    .ab { padding: 16px !important; } 
    .ab-header { flex-direction: column; align-items: flex-start; gap: 12px; } 
    .ab-table { display: block; overflow-x: auto; } 
}

@media (max-width: 576px) { 
    .ab-stats { grid-template-columns: 1fr !important; } 
}

