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

.ah {
    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 ── */
.ah-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;
}

.ah-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;
}

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

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

/* ── Buttons ── */
.ah-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;
}

.ah-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;
}

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

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

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

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

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

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

.ah-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;
}

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

/* Left 4px vertical accent stripe */
.ah-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;
}

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

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

.ah-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; 
}

.ah-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; 
}

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

/* ── Filter Tabs ── */
.ah-tabs { 
    display: flex !important; 
    gap: 8px !important; 
    margin-bottom: 16px !important; 
    flex-wrap: wrap !important; 
}

.ah-tab {
    font-size: 12px !important; 
    font-weight: 600 !important; 
    padding: 7px 14px !important; 
    border-radius: 8px !important;
    border: 1px solid #E5E7EB !important; 
    background: #FFFFFF !important; 
    color: #4B5563 !important;
    cursor: pointer !important; 
    transition: all 0.15s ease !important; 
    display: inline-flex !important; 
    align-items: center !important; 
    gap: 6px !important;
}

.ah-tab:hover { 
    border-color: #DD7A28 !important; 
    color: #DD7A28 !important; 
}

.ah-tab.active { 
    background: #DD7A28 !important; 
    color: #FFFFFF !important; 
    border-color: #DD7A28 !important; 
    box-shadow: 0 2px 8px rgba(221, 122, 40, 0.3) !important; 
    font-weight: 700 !important;
}

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

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

.ah-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; 
}

.ah-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;
}

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

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

.ah-filter-select {
    padding: 8px 12px !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    border: 1px solid #E5E7EB !important;
    border-radius: 8px !important;
    background: #FFFFFF !important;
    color: #374151 !important;
    outline: none !important;
    cursor: pointer !important;
}

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

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

/* ── Card Container ── */
.ah-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;
}

.ah-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; 
}

.ah-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; 
}

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

.ah-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 ── */
.ah-table { 
    width: 100% !important; 
    border-collapse: collapse !important; 
}

.ah-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;
}

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

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

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

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

.ah-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; 
}

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

.ah-hotel-pub { 
    font-size: 10px; 
    color: #059669; 
    font-weight: 600; 
}

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

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

.ah-loc i, .ah-owner i, .ah-date i { 
    font-size: 12px; 
    color: #9CA3AF; 
}

.ah-price { 
    font-size: 13px; 
    font-weight: 700; 
    color: #111827; 
}

.ah-price-sub { 
    font-size: 10px; 
    color: #9CA3AF; 
}

/* ── Badges ── */
.ah-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; 
}

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

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

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

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

/* ── Actions ── */
.ah-actions { 
    display: flex; 
    gap: 6px; 
}

/* ── Toast ── */
.ah-toast {
    position: fixed; 
    bottom: 24px; 
    right: 24px; 
    z-index: 1050;
    padding: 12px 18px; 
    border-radius: 10px; 
    font-size: 12px; 
    font-weight: 600;
    display: flex; 
    align-items: center; 
    gap: 10px; 
    color: #FFFFFF;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15); 
    animation: ah-slideIn 0.3s ease;
}

.ah-toast-success { background: #10B981; }
.ah-toast-error { background: #EF4444; }

.ah-toast-close { 
    background: none; 
    border: none; 
    color: rgba(255,255,255,0.8); 
    cursor: pointer; 
    font-size: 13px; 
    padding: 0; 
}

@keyframes ah-slideIn { 
    from { transform: translateY(1rem); opacity: 0; } 
    to { transform: translateY(0); opacity: 1; } 
}

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

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

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

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

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

.ah-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: ah-spin 0.6s linear infinite; 
}

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

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

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

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

@media (max-width: 576px) { 
    .ah-stats { grid-template-columns: 1fr !important; } 
    .ah-tabs { flex-direction: column; } 
}
