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

/* ── Page Shell ── */
.hc {
    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;
}

/* ── Page Header ── */
.hc-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;
    flex-wrap: wrap !important;
    gap: 12px !important;
}

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

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

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

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

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

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

.hc-btn-primary {
    background: #DD7A28 !important;
    color: #FFFFFF !important;
    border: 1px solid #DD7A28 !important;
    box-shadow: 0 2px 8px rgba(221, 122, 40, 0.25) !important;
}

.hc-btn-primary:hover {
    background: #c56820 !important;
    border-color: #c56820 !important;
    color: #FFFFFF !important;
}

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

.hc-btn-edit { background: #FFF7ED !important; color: #DD7A28 !important; border: 1px solid #FFEDD5 !important; }
.hc-btn-edit:hover { background: #DD7A28 !important; color: #FFFFFF !important; }
.hc-btn-deactivate { background: #FEF2F2 !important; color: #DC2626 !important; border: 1px solid #FECACA !important; }
.hc-btn-deactivate:hover { background: #DC2626 !important; color: #FFFFFF !important; }
.hc-btn-activate { background: #ECFDF5 !important; color: #059669 !important; border: 1px solid #A7F3D0 !important; }
.hc-btn-activate:hover { background: #059669 !important; color: #FFFFFF !important; }
.hc-btn-cancel { background: #FFFFFF !important; color: #4B5563 !important; border: 1px solid #E5E7EB !important; }
.hc-btn-cancel:hover { background: #F9FAFB !important; color: #111827 !important; }

/* Close button for modal */
.hc-close-btn {
    background: none;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: #9CA3AF;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0;
    flex-shrink: 0;
}
.hc-close-btn:hover { background: #F3F4F6; color: #111827; }

/* ── Card Shell ── */
.hc-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;
}

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

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

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

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

.hc-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;
    border-bottom: 1px solid #E5E7EB !important;
    background: #FAFAFA !important;
    white-space: nowrap !important;
    text-align: left !important;
}

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

.hc-table tbody tr:last-child td { border-bottom: none !important; }
.hc-table tbody tr:hover { background-color: #FFFBF7 !important; }

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

.hc-name {
    font-size: 13px !important;
    font-weight: 700 !important;
    color: #111827 !important;
}

.hc-desc {
    font-size: 11px !important;
    color: #6B7280 !important;
    margin-top: 2px !important;
}

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

.hc-badge-active { background: #ECFDF5 !important; color: #065F46 !important; border: 1px solid #A7F3D0 !important; }
.hc-badge-inactive { background: #F3F4F6 !important; color: #6B7280 !important; border: 1px solid #E5E7EB !important; }

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

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

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

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

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

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

/* Checkbox filter */
.hc-filter-check {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    font-size: 12px !important;
    color: #4B5563 !important;
    cursor: pointer !important;
    user-select: none !important;
}

.hc-filter-check input {
    margin: 0 !important;
    cursor: pointer !important;
    accent-color: #DD7A28 !important;
}

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

.hc-empty-icon { font-size: 32px; color: #D1D5DB; margin-bottom: 8px; }
.hc-empty-title { font-size: 14px; font-weight: 700; color: #111827; margin-bottom: 4px; }
.hc-empty-text { font-size: 12px; color: #6B7280; }

/* ── Loading State ── */
.hc-loading {
    text-align: center;
    padding: 48px 16px;
}

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

@keyframes hc-spin { to { transform: rotate(360deg); } }
.hc-loading-text {
    font-size: 12px;
    color: #6B7280;
    margin-top: 8px;
    font-weight: 600;
}

/* ── Toast Messages ── */
.hc-toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: #FFFFFF;
    border-radius: 12px;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
    z-index: 1050;
    font-size: 12px;
    font-weight: 600;
    border: 1px solid #E5E7EB;
    animation: hc-slide-up 0.3s ease;
}

@keyframes hc-slide-up { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.hc-toast-success i { color: #10B981; font-size: 16px; }
.hc-toast-error i { color: #EF4444; font-size: 16px; }
.hc-toast-close { background: none; border: none; color: #9CA3AF; cursor: pointer; padding: 0; font-size: 14px; margin-left: auto; }
.hc-toast-close:hover { color: #111827; }

/* Modal styling matching theme */
.hc-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(4px);
    z-index: 1060;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    font-family: inherit;
    animation: hc-fade-in 0.2s ease;
}

@keyframes hc-fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

.hc-modal-wrapper {
    width: 100%;
    max-width: 500px;
    animation: hc-modal-pop 0.22s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes hc-modal-pop {
    from { transform: scale(0.95); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.hc-modal-content {
    border: 1px solid #E5E7EB;
    border-radius: 14px;
    box-shadow: 0 20px 48px rgba(0,0,0,0.15);
    background: #FFFFFF;
    display: flex;
    flex-direction: column;
    max-height: 90vh;
    overflow: hidden;
}

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

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

.hc-modal-title i {
    color: #DD7A28;
}

.hc-modal-body {
    padding: 20px;
}

.hc-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 14px 20px;
    border-top: 1px solid #F3F4F6;
    background: #FFFFFF;
}

.hc-form-label {
    font-size: 12px;
    font-weight: 700;
    color: #374151;
    margin-bottom: 6px;
    display: block;
}

.hc-form-control {
    font-size: 12px;
    padding: 8px 12px;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    background: #FFFFFF;
    color: #111827;
    width: 100%;
    transition: all 0.2s ease;
    outline: none;
}

.hc-form-control:focus {
    border-color: #DD7A28;
    box-shadow: 0 0 0 2px rgba(221, 122, 40, 0.2);
}

.hc-form-check {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
}

.hc-form-check-input {
    margin: 0;
    cursor: pointer;
    accent-color: #DD7A28;
}

.hc-form-check-label {
    font-size: 12px;
    color: #111827;
    cursor: pointer;
}

