/* ============================================
   Papa Hotel Admin - Premium Glassmorphism Template
   Full AJAX & Interactive Design with Glass Effects
   ============================================
   PALETTE: Hotel (gambar) - used for dashboard & room list boxes.
   #003049 Navy | #D62828 Red | #F77F00 Orange | #FCBF49 Gold | #EAE2B7 Cream
   ============================================ */

/* ===== CSS Variables ===== */
:root {
    /* Palette from image - single source for dashboard & manage room */
    --palette-navy: #003049;
    --palette-red: #D62828;
    --palette-orange: #F77F00;
    --palette-gold: #FCBF49;
    --palette-cream: #EAE2B7;

    /* Room list box semantic (Manage Room Go Show / Booking) */
    --room-available-bg: var(--palette-cream);
    --room-available-border: var(--palette-gold);
    --room-occupied-bg: var(--palette-red);
    --room-occupied-border: #b81f1f;
    --room-maintenance-bg: rgba(247, 127, 0, 0.2);
    --room-maintenance-border: var(--palette-orange);
    --room-short-time-bg: rgba(247, 127, 0, 0.35);
    --room-short-time-border: var(--palette-orange);
    --room-incentive-bg: var(--palette-navy);
    --room-incentive-border: #002236;

    /* Primary - Hotel Gold (aligned to palette) */
    --primary-gradient: linear-gradient(135deg, #FCBF49 0%, #E5A832 100%);
    --primary-color: #FCBF49;
    --primary-dark: #E5A832;
    --primary-hover: #F0B535;
    --primary-light: #FCDA7A;
    
    /* Secondary / Neutral */
    --secondary-gradient: linear-gradient(135deg, #8592A3 0%, #717386 100%);
    --secondary-color: #8592A3;
    
    /* Neutral dark (teks, sidebar emphasis) */
    --neutral-dark: #2C2C2C;
    --neutral-medium: #5C5C5C;
    --neutral-light: #FAF8F5;
    
    /* Accent - single sharp accent; status only for success/warning/error */
    --accent-gold: #C9A227;
    --accent-coral: #C45C4A;
    --accent-orange: #B8860B;
    --accent-green: #2D6A4F;
    --accent-yellow: #B8860B;
    --accent-pink: #A63D5C;
    
    /* Glassmorphism */
    --glass-bg: rgba(255, 255, 255, 1);
    --glass-bg-light: rgba(255, 255, 255, 1);
    --glass-bg-dark: rgba(250, 248, 245, 1);
    --glass-border: rgba(231, 228, 220, 1);
    --glass-shadow: 0 2px 6px 0 rgba(44, 44, 44, 0.08);
    
    /* Sidebar - warm white with gold active state (palette-gold) */
    --sidebar-bg: #FFFFFF;
    --sidebar-glass: #FFFFFF;
    --sidebar-hover: rgba(252, 191, 73, 0.08);
    --sidebar-active: rgba(252, 191, 73, 0.14);
    --sidebar-border: rgba(231, 228, 220, 1);
    
    /* Background - warm neutral light */
    --bg-primary: #FAF8F5;
    --bg-secondary: #FFFFFF;
    --bg-card: #FFFFFF;
    
    /* Text */
    --text-primary: #2C2C2C;
    --text-secondary: #5C5C5C;
    --text-muted: #B4B7BD;
    
    /* Header accent (navbar bottom border; overridden by user palette) */
    --header-accent: var(--primary-color);

    /* Primary button text (overridden by user palette; default navy for contrast on gold) */
    --btn-primary-color: #003049;
    
    /* Border & Shadow */
    --border-color: rgba(231, 228, 220, 1);
    --shadow-sm: 0 2px 4px 0 rgba(44, 44, 44, 0.06);
    --shadow-md: 0 4px 6px 0 rgba(44, 44, 44, 0.08);
    --shadow-lg: 0 8px 16px 0 rgba(44, 44, 44, 0.1);
    --shadow-xl: 0 16px 24px 0 rgba(44, 44, 44, 0.12);
    --shadow-glass: 0 2px 6px 0 rgba(44, 44, 44, 0.08);
    
    /* Transitions */
    --transition-fast: 0.12s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: 0.25s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    
    /* Sidebar */
    --sidebar-width: 280px;
    --sidebar-collapsed-width: 80px;
    
    /* Blur */
    --blur-sm: blur(8px);
    --blur-md: blur(12px);
    --blur-lg: blur(20px);
}

/* ===== General Styles (mobile-first: base = small viewport; use min-width for desktop) ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Public Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    background: var(--bg-primary);
    background-attachment: fixed;
    color: var(--text-primary);
    line-height: 1.5;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    position: relative;
    zoom: 0.8; /* Zoom out 80% - Chrome compatible */
}

/* Responsive Images */
img {
    max-width: 100%;
    height: auto;
}

/* Container improvements */
.container, .container-fluid {
    padding-left: 16px;
    padding-right: 16px;
    width: 100%;
    max-width: 100%;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    color: var(--text-primary);
}

/* Login Page - warm neutral dark + subtle gold (hotel brand) */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, #1A1A1A 0%, #2C2C2C 40%, #3D3A35 70%, #4A453C 100%);
    background-attachment: fixed;
    zoom: 1.25; /* Override body zoom: 0.8 to restore normal size (0.8 × 1.25 = 1.0) */
}

.login-background-animation {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(201, 162, 39, 0.12) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(184, 134, 11, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(201, 162, 39, 0.06) 0%, transparent 50%);
    animation: float 20s ease-in-out infinite;
    pointer-events: none;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) translateX(0);
    }
    33% {
        transform: translateY(-20px) translateX(20px);
    }
    66% {
        transform: translateY(20px) translateX(-20px);
    }
}

/* Login box: mobile-first base (small viewport) */
.login-box {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 32px 24px;
    border-radius: 18px;
    border: 1px solid rgba(201, 162, 39, 0.25);
    box-shadow: 
        0 25px 50px -12px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    width: 100%;
    max-width: 90%;
    margin: 20px;
    position: relative;
    z-index: 1;
    animation: slideUp 0.6s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-header {
    text-align: center;
    margin-bottom: 32px;
}

.login-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    background: var(--primary-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 
        0 10px 25px rgba(201, 162, 39, 0.35),
        0 0 0 4px rgba(201, 162, 39, 0.12);
    animation: pulse 2s ease-in-out infinite;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 
            0 10px 25px rgba(201, 162, 39, 0.35),
            0 0 0 4px rgba(201, 162, 39, 0.12);
    }
    50% {
        transform: scale(1.03);
        box-shadow: 
            0 15px 35px rgba(201, 162, 39, 0.45),
            0 0 0 6px rgba(201, 162, 39, 0.18);
    }
}

.login-icon i {
    font-size: 32px;
    color: white;
}

.login-box h2 {
    color: var(--text-primary);
    margin-bottom: 8px;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.login-header p {
    color: var(--text-secondary);
    font-size: 14px;
    margin: 0;
    font-weight: 400;
}

.form-group {
    margin-bottom: 22px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.01em;
}

.form-group label i {
    margin-right: 8px;
    color: var(--primary-color);
    font-size: 13px;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 16px;
    color: #64748b;
    font-size: 16px;
    z-index: 1;
    transition: all 0.3s ease;
}

.form-control {
    width: 100%;
    padding: 12px 14px 12px 44px;
    font-size: 16px; /* Prevent zoom on iOS when 16px+ */
    border: 2px solid var(--border-color);
    border-radius: 10px;
    transition: all 0.3s ease;
    background: var(--bg-card);
    color: var(--text-primary);
    font-weight: 400;
}

/* ===== One-row filter forms (match laporan_harian layout) ===== */
.filter-one-row {
    display: flex;
    flex-wrap: nowrap;
    align-items: flex-end;
    gap: 10px; /* spacing antar field & tombol */
}

.filter-one-row .form-group {
    margin-bottom: 0;
    display: flex;
    align-items: center;
}

.filter-one-row .form-group + .form-group {
    margin-left: 4px; /* sedikit tambahan jarak antar field */
}

.filter-one-row .form-group label {
    display: inline-block;
    margin: 0 8px 0 0;
    white-space: nowrap;
    font-size: 13px;
}

.filter-one-row .form-control {
    width: 170px;
    min-width: 170px;
    padding: 6px 20px;
    height: 34px;
    font-size: 13px;
    border-radius: 6px;
}

.filter-one-row input[type="date"].form-control {
    width: 150px;
    min-width: 150px;
    padding-left: 10px;
}

.filter-one-row .btn {
    height: 34px;
    padding: 6px 20px;
    font-size: 13px;
    white-space: nowrap;
}

.filter-one-row--tight .form-control {
    width: 140px;
    min-width: 140px;
}

.filter-one-row--tight input[type="date"].form-control {
    width: 135px;
    min-width: 135px;
}

.form-control::placeholder {
    color: var(--text-muted);
    font-weight: 400;
}

.form-control:hover {
    border-color: var(--neutral-medium);
    background: var(--bg-card);
}

.form-control:focus {
    outline: none;
    border: 2px solid var(--primary-color);
    background: var(--bg-card);
    box-shadow: 
        0 0 0 4px rgba(201, 162, 39, 0.12),
        0 4px 6px -1px rgba(0, 0, 0, 0.05);
    transform: translateY(-1px);
}

.form-control:focus + .input-icon,
.form-control:focus ~ .input-icon {
    color: var(--primary-color);
    transform: scale(1.1);
}

.alert-message {
    padding: 14px 18px;
    border-radius: 10px;
    margin-bottom: 22px;
    font-size: 14px;
    font-weight: 500;
    animation: slideDown 0.4s ease-out;
    line-height: 1.5;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.alert-slide-in {
    animation: slideIn 0.5s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Login Page Button Styling */
.login-box .btn-primary {
    width: 100%;
    padding: 13px 20px;
    font-size: 15px;
    font-weight: 600;
    background: var(--primary-gradient);
    border: none;
    border-radius: 10px;
    box-shadow: 
        0 4px 12px rgba(201, 162, 39, 0.35),
        0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    letter-spacing: 0.02em;
    margin-top: 8px;
}

.login-box .btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-hover) 0%, var(--primary-dark) 100%);
    box-shadow: 
        0 6px 16px rgba(201, 162, 39, 0.4),
        0 4px 8px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.login-box .btn-primary:active {
    transform: translateY(0);
    box-shadow: 
        0 2px 8px rgba(201, 162, 39, 0.25),
        0 1px 2px rgba(0, 0, 0, 0.1);
}

.login-box .btn-primary:focus {
    outline: none;
    box-shadow: 
        0 0 0 4px rgba(201, 162, 39, 0.2),
        0 4px 12px rgba(201, 162, 39, 0.35);
}

/* Login Box Alert Styling */
.login-box .alert {
    font-weight: 500;
    border-width: 1px;
    border-style: solid;
}

.login-box .alert-danger {
    background-color: #fef2f2;
    color: #991b1b;
    border-color: #fecaca;
}

.login-box .alert-success {
    background-color: #f0fdf4;
    color: #166534;
    border-color: #bbf7d0;
}

/* Mobile-first: desktop overrides (min-width) */
@media (min-width: 769px) {
    .login-box {
        padding: 45px 40px;
        max-width: 420px;
        margin: 0 auto;
    }
    
    .login-icon {
        width: 80px;
        height: 80px;
        margin-bottom: 24px;
    }
    
    .login-icon i {
        font-size: 36px;
    }
    
    .login-box h2 {
        font-size: 26px;
    }
    
    .form-group {
        margin-bottom: 22px;
    }
    
    .form-control {
        padding: 14px 16px 14px 48px;
        font-size: 14px;
    }
    
    .login-box .btn-primary {
        padding: 14px 24px;
    }
}

@media (max-height: 700px) {
    .login-box {
        padding: 35px 32px;
    }
    
    .login-header {
        margin-bottom: 24px;
    }
    
    .login-icon {
        width: 70px;
        height: 70px;
        margin-bottom: 18px;
    }
    
    .form-group {
        margin-bottom: 18px;
    }
}

/* ===== Admin Dashboard Layout ===== */
.admin-dashboard {
    display: flex;
    width: 100%;
    height: 100%;
    min-height: 100%;
    position: relative;
    overflow: hidden;
    margin: 0;
    padding: 0;
}

/* ===== Sidebar - Sneat Style (Clean White) ===== */
.sidebar {
    width: var(--sidebar-width);
    background: var(--sidebar-bg);
    color: var(--text-primary);
    transition: all var(--transition-base);
    position: fixed;
    height: 100%;
    z-index: 1000;
    left: 0;
    top: 0;
    box-shadow: 0 2px 8px 0 rgba(67, 89, 113, 0.1);
    overflow-y: auto;
    overflow-x: hidden;
    pointer-events: auto;
    transform: translateZ(0);
    will-change: transform;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    isolation: isolate;
    border-right: 1px solid var(--sidebar-border);
}

.sidebar::-webkit-scrollbar {
    width: 6px;
}

.sidebar::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
}

.sidebar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

.sidebar.collapsed {
    width: var(--sidebar-collapsed-width);
}

.sidebar-sticky {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 100%;
    pointer-events: auto;
    z-index: 1;
}

/* Sidebar Header */
.sidebar-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--sidebar-border);
    background: transparent;
    pointer-events: auto;
    z-index: 1;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    flex-shrink: 0;
}

.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all var(--transition-base);
}

.sidebar-logo i {
    font-size: 2rem;
    color: var(--primary-color);
    animation: none;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.logo-text h3 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    -webkit-text-stroke: 0;
}

.logo-text p {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    -webkit-text-stroke: 0;
}

.sidebar.collapsed .logo-text {
    display: none;
}

.sidebar.collapsed .sidebar-logo {
    justify-content: center;
}

/* Sidebar Menu */
.sidebar-menu {
    padding: 0.5rem 0;
    flex: 1 1 auto;
    overflow-y: auto;
    overflow-x: hidden;
    pointer-events: auto;
    z-index: 1;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

.sidebar-menu-item {
    padding: 0.625rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all var(--transition-base);
    position: relative;
    margin: 0.125rem 0.75rem;
    border-radius: 6px;
    overflow: hidden;
    pointer-events: auto;
    cursor: pointer;
    z-index: 1;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    -webkit-text-stroke: 0;
    background: transparent;
    min-height: 40px;
}

.sidebar-menu-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--primary-color);
    transform: scaleY(0);
    transition: transform var(--transition-base);
    border-radius: 0 2px 2px 0;
}

.sidebar-menu-item:hover {
    color: var(--primary-color);
    background: var(--sidebar-hover);
    transform: none;
    pointer-events: auto;
}

.sidebar-menu-item:hover::before {
    transform: scaleY(1);
}

.sidebar-menu-item.active {
    color: var(--primary-color);
    background: var(--sidebar-active);
    font-weight: 500;
}

.sidebar-menu-item.active::before {
    transform: scaleY(1);
}

.sidebar-menu-item.active .menu-indicator {
    opacity: 1;
    transform: scale(1);
}

.menu-icon {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.125rem;
    transition: all var(--transition-base);
    pointer-events: none;
}

.sidebar-menu-item:hover .menu-icon {
    transform: none;
    pointer-events: none;
}

.menu-text {
    flex: 1;
    font-weight: 500;
    transition: all var(--transition-base);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    -webkit-text-stroke: 0;
}

.menu-indicator {
    display: none;
}

.sidebar.collapsed .menu-text,
.sidebar.collapsed .menu-indicator,
.sidebar.collapsed .sidebar-arrow {
    display: none;
}

.sidebar.collapsed .sidebar-menu-item {
    justify-content: center;
    padding: 0.75rem;
    margin: 0.25rem;
}

/* Sidebar Dropdown */
.sidebar-menu-dropdown {
    position: relative;
}

.sidebar-menu-toggle {
    cursor: pointer;
}

.sidebar-arrow {
    font-size: 0.75rem;
    transition: transform var(--transition-base);
    opacity: 0.7;
}

.sidebar-menu-dropdown.active .sidebar-arrow {
    transform: rotate(180deg);
    opacity: 1;
}

.sidebar-submenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-slow), padding var(--transition-base);
    background: transparent;
    margin: 0.125rem 0.75rem 0.25rem 0.75rem;
    border-radius: 6px;
}

.sidebar-submenu.show {
    max-height: 1000px;
    padding: 0.375rem 0;
}

.sidebar-submenu-item {
    padding: 0.5rem 1rem 0.5rem 2.75rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all var(--transition-base);
    font-size: 0.875rem;
    border-radius: 6px;
    margin: 0.125rem 0;
    position: relative;
    pointer-events: auto;
    cursor: pointer;
    z-index: 1;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    -webkit-text-stroke: 0;
    min-height: 36px;
    background: transparent;
}

.sidebar-submenu-item::before {
    display: none;
}

.sidebar-submenu-item:hover {
    color: var(--primary-color);
    background: var(--sidebar-hover);
    transform: none;
}

.sidebar-submenu-item.active {
    color: var(--primary-color);
    background: var(--sidebar-active);
    font-weight: 500;
}

/* Nested submenu (e.g. Pengajuan Lain Lain under Human Resource) */
.sidebar-submenu .sidebar-menu-dropdown > .sidebar-submenu.sidebar-submenu-nested {
    margin-left: 0.5rem;
    padding-left: 0.35rem;
    border-left: 1px solid var(--border-color, rgba(0, 0, 0, 0.08));
}

.sidebar-submenu .sidebar-menu-dropdown > .sidebar-submenu.sidebar-submenu-nested .sidebar-submenu-item {
    padding-left: 2.25rem;
}

.sidebar.collapsed .sidebar-submenu {
    display: none;
}

/* Sidebar Footer */
.sidebar-footer {
    border-top: 1px solid var(--sidebar-border);
    padding: 0.5rem 0;
    margin-top: auto;
    background: transparent;
    flex-shrink: 0;
}

.sidebar-footer .sidebar-menu-item {
    margin: 0.125rem 0.75rem;
    padding: 0.625rem 1.25rem;
}

/* ===== Main Content Wrapper - Elegant Layout ===== */
.main-content-wrapper {
    margin-left: var(--sidebar-width);
    width: calc(100% - var(--sidebar-width));
    height: 100%;
    min-height: 100%;
    display: flex;
    flex-direction: column;
    background: var(--bg-primary);
    position: relative;
    transition: all var(--transition-base);
    will-change: margin-left, width;
    overflow: hidden;
    margin-top: 0;
    margin-bottom: 0;
}

.main-content-wrapper.expanded {
    margin-left: var(--sidebar-collapsed-width);
    width: calc(100% - var(--sidebar-collapsed-width));
}

/* Legacy support for .main-content */
.main-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    transition: all var(--transition-base);
    width: calc(100% - var(--sidebar-width));
    height: 100%;
    min-height: 100%;
    display: flex;
    flex-direction: column;
    background: var(--bg-primary);
    position: relative;
    z-index: 1;
    will-change: margin-left, width;
    overflow: hidden;
}

.main-content.expanded {
    margin-left: var(--sidebar-collapsed-width);
    width: calc(100% - var(--sidebar-collapsed-width));
}

/* Admin Header - Elegant Positioning */
.admin-header {
    position: sticky;
    top: 0;
    z-index: 1001;
    width: 100%;
    will-change: transform;
    transform: translateZ(0);
    flex-shrink: 0;
}

/* Navbar - Sneat Style (Clean White) */
.navbar-admin {
    background: var(--bg-secondary);
    box-shadow: var(--shadow-sm);
    padding: 0.875rem 1.5rem;
    border-bottom: 2px solid var(--header-accent);
    width: 100%;
    margin: 0;
    flex-shrink: 0;
}

.navbar-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 100%;
    padding: 0;
}

.navbar-left {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
    min-width: 0;
}

.navbar-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.btn-sidebar-toggle {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    font-size: 1.125rem;
    padding: 0.5rem;
    border-radius: 8px;
    transition: all var(--transition-base);
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-sidebar-toggle:hover {
    background: rgba(255, 255, 255, 0.7);
    transform: scale(1.1) rotate(90deg);
    color: var(--primary-color);
    box-shadow: var(--shadow-md);
}

.breadcrumb-nav {
    font-size: 0.9rem;
}

.breadcrumb {
    margin: 0;
    background: transparent;
    padding: 0;
}

.breadcrumb-item a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color var(--transition-base);
}

.breadcrumb-item a:hover {
    color: var(--primary-color);
}

.breadcrumb-item.active {
    color: var(--text-primary);
    font-weight: 600;
}

/* User Dropdown */
.user-dropdown {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--text-primary);
    padding: 0.375rem 0.875rem;
    border-radius: 6px;
    transition: all var(--transition-base);
    background: transparent;
    border: none;
}

.user-dropdown:hover {
    background: var(--sidebar-hover);
    color: var(--primary-color);
    transform: none;
    box-shadow: none;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.5rem;
    box-shadow: none;
}

.user-info {
    text-align: left;
}

.user-name {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-primary);
}

.user-role {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

/* Notification Dropdown */
.btn-notification {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 1.125rem;
    padding: 0.5rem;
    border-radius: 6px;
    position: relative;
    transition: all var(--transition-base);
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-notification:hover {
    background: var(--sidebar-hover);
    color: var(--primary-color);
    transform: none;
    box-shadow: none;
}

.notification-badge {
    position: absolute;
    top: 4px;
    right: 4px;
    background: #FF6B6B;
    color: #fff;
    font-size: 0.625rem;
    padding: 0.125rem 0.375rem;
    border-radius: 10px;
    font-weight: 600;
    box-shadow: none;
    animation: none;
}

.notification-dropdown {
    min-width: 300px;
    max-height: 400px;
    overflow-y: auto;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
    border-radius: 8px;
}

/* Content Wrapper - Proper Spacing */
.content-wrapper {
    flex: 1;
    padding: 1rem;
    animation: fadeIn 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 1;
    min-height: 0;
    width: 100%;
    max-width: 100%;
    overflow-y: auto;
    overflow-x: hidden;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Flash Messages */
#flash-messages {
    margin-bottom: 1.5rem;
}

.alert {
    border-radius: 8px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    animation: slideDown 0.3s ease;
    background: var(--bg-card);
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Alert Slide Down Animation (replaces Animate.css) */
.alert-slide-down {
    animation: slideDown 0.3s ease;
}

/* Cards - Sneat Style (Clean Flat) */
.card {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
    background: var(--bg-card);
    overflow: hidden;
    position: relative;
    will-change: transform, box-shadow;
    transform: translateZ(0);
    margin-bottom: 1.5rem;
}

.card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--border-color);
}

.card-header {
    background: transparent;
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 1.5rem;
    font-weight: 600;
}

.card-body {
    padding: 1.5rem;
}

.card-dashboard {
    border-radius: 8px;
    background: var(--bg-card);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.card-dashboard:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--border-color);
}

/* Buttons - Sneat Style */
.btn {
    border-radius: 6px;
    padding: 0.625rem 1.25rem;
    font-weight: 500;
    transition: all var(--transition-base);
    border: none;
    position: relative;
    overflow: hidden;
}

.btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
    pointer-events: none;
}

.btn:active::after {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--btn-primary-color);
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    background: var(--primary-dark);
    box-shadow: var(--shadow-md);
    transform: none;
    filter: none;
}

.btn-success {
    background: var(--accent-green);
    color: #fff;
}

.btn-danger {
    background: var(--palette-red);
    color: #fff;
}

.btn-warning {
    background: var(--accent-yellow);
    color: #fff;
}

.btn-info {
    background: var(--secondary-color);
    color: #fff;
}

.btn-outline-primary {
    background: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    color: var(--btn-primary-color);
}

.btn-outline-danger {
    background: transparent;
    border: 1px solid var(--palette-red);
    color: var(--palette-red);
}

.btn-outline-danger:hover {
    background: var(--palette-red);
    color: #fff;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
}

/* Action Sheet Button */
.btn-action-sheet {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    transition: all var(--transition-base);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
}

.btn-action-sheet:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    color: var(--primary-color);
}

.btn-action-sheet:active {
    transform: translateY(0);
}

.btn-action-sheet i {
    font-size: 0.875rem;
}

/* Tables - Sneat Style */
.table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    width: 100%;
}

.table {
    border-radius: 12px;
    overflow: hidden;
    width: 100%;
    margin-bottom: 0;
    background: transparent;
}

.table thead {
    background: #F8F9FA;
}

.table thead th {
    border-bottom: 1px solid var(--border-color);
    font-weight: 600;
    color: var(--text-primary);
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.table tbody tr {
    transition: all var(--transition-base);
    background: #fff;
}

.table tbody tr:hover {
    background: #F8F9FA;
    transform: none;
    box-shadow: none;
}

.table tbody td {
    border-bottom: 1px solid var(--border-color);
}

/* Table Actions */
.table-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.table-actions .btn {
    min-width: auto;
    padding: 0.5rem 0.75rem;
    font-size: 0.85rem;
}

/* Badges */
.badge {
    padding: 0.375rem 0.75rem;
    border-radius: 6px;
    font-weight: 500;
    font-size: 0.75rem;
    background: var(--text-muted);
    color: #fff;
}

/* HR swap index: action column — flex so tombol tidak tertutup / hilang */
.swap-action-cell .table-actions {
    justify-content: flex-start;
    align-items: center;
    min-width: 8rem;
}

.swap-action-cell .table-actions form {
    display: inline-block;
    margin: 0;
}

.swap-action-cell .btn {
    white-space: nowrap;
}

/* Badge palette (dashboard & tables) - from image palette */
.badge.bg-primary { background-color: var(--palette-gold) !important; color: #1a1a1a !important; }
.badge.bg-success { background-color: var(--palette-gold) !important; color: #1a1a1a !important; }
.badge.bg-info { background-color: var(--palette-navy) !important; color: #fff !important; }
.badge.bg-warning { background-color: var(--palette-orange) !important; color: #fff !important; }
.badge.bg-danger { background-color: var(--palette-red) !important; color: #fff !important; }
.badge.bg-dark { background-color: var(--palette-navy) !important; color: #fff !important; }
.badge-short-time { background-color: var(--palette-orange) !important; color: #1a1a1a !important; }

/* Accounting / utility backgrounds (palette) */
.bg-purple { background-color: var(--palette-navy) !important; }
.bg-orange { background-color: var(--palette-orange) !important; }
.bg-pink { background-color: var(--palette-red) !important; }

/* Forms - Sneat Style */
.form-control, .form-select {
    border-radius: 6px;
    border: 1px solid var(--border-color);
    padding: 0.625rem 0.875rem;
    transition: all var(--transition-base);
    width: 100%;
    background: #fff;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(252, 191, 73, 0.2);
    outline: none;
    background: #fff;
}

.form-label {
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    display: block;
}

.form-group {
    margin-bottom: 1.25rem;
}

/* Form Row for responsive layouts */
.form-row {
    display: flex;
    flex-wrap: wrap;
    margin-left: -0.5rem;
    margin-right: -0.5rem;
}

.form-row > * {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}

/* Input Groups */
.input-group {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
}

.input-group .form-control {
    flex: 1 1 auto;
    min-width: 0;
}

/* AJAX Loader - Optimized (removed backdrop-filter for better performance) */
.ajax-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.15s ease;
}

.ajax-loader.show {
    display: flex;
    opacity: 1;
}

.loader-content {
    text-align: center;
    animation: pulse 1.5s ease-in-out infinite;
    background: rgba(255, 255, 255, 0.95);
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-glass);
}

.loader-content .spinner-border {
    width: 3rem;
    height: 3rem;
    border-width: 0.3rem;
}

.loader-content p {
    margin-top: 1rem;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 1rem;
}

/* AJAX Content Transitions - Optimized for Smooth Performance */
#content-wrapper .container-fluid {
    transition: opacity 0.12s cubic-bezier(0.4, 0, 0.2, 1), transform 0.12s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: opacity, transform;
    transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

#content-wrapper .container-fluid.fade-out {
    opacity: 0;
    transform: translateY(5px) translateZ(0);
}

#content-wrapper .container-fluid.fade-in {
    animation: fadeInContent 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes fadeInContent {
    from {
        opacity: 0;
        transform: translateY(5px) translateZ(0);
    }
    to {
        opacity: 1;
        transform: translateY(0) translateZ(0);
    }
}

/* Form Error States */
.form-control.is-invalid,
.form-select.is-invalid {
    border-color: #dc3545;
    padding-right: calc(1.5em + 0.75rem);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath d='m5.8 3.6 .4.4.4-.4'/%3e%3cpath d='m6 8.4.4.4.4-.4'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

.invalid-feedback {
    display: block;
    width: 100%;
    margin-top: 0.25rem;
    font-size: 0.875rem;
    color: #dc3545;
    animation: slideDown 0.2s ease;
}

/* Button Loading State */
button[type="submit"]:disabled,
input[type="submit"]:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Smooth scroll behavior */
html {
    height: 100%;
    scroll-behavior: smooth;
}

/* ===== Action Sheet Component ===== */
.action-sheet-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: var(--blur-sm);
    -webkit-backdrop-filter: var(--blur-sm);
    z-index: 1080;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-base), visibility var(--transition-base);
}

.action-sheet-backdrop.show {
    opacity: 1;
    visibility: visible;
}

.action-sheet {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-card);
    backdrop-filter: var(--blur-lg);
    -webkit-backdrop-filter: var(--blur-lg);
    border-top: 1px solid var(--glass-border);
    border-radius: 20px 20px 0 0;
    box-shadow: var(--shadow-xl);
    z-index: 1081;
    transform: translateY(100%);
    transition: transform var(--transition-bounce);
    max-height: 80vh;
    overflow-y: auto;
    padding: 1rem 0;
}

.action-sheet.show {
    transform: translateY(0);
}

.action-sheet-header {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: transparent;
}

.action-sheet-title {
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--text-primary);
    margin: 0;
}

.action-sheet-close {
    background: transparent;
    border: none;
    font-size: 1.5rem;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 8px;
    transition: all var(--transition-base);
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.action-sheet-close:hover {
    background: rgba(0, 0, 0, 0.05);
    color: var(--text-primary);
    transform: rotate(90deg);
}

.action-sheet-body {
    padding: 0.5rem 0;
}

.action-sheet-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    color: var(--text-primary);
    text-decoration: none;
    transition: all var(--transition-base);
    cursor: pointer;
    border: none;
    background: transparent;
    width: 100%;
    text-align: left;
    position: relative;
    overflow: hidden;
}

.action-sheet-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--primary-color);
    transform: scaleX(0);
    transition: transform var(--transition-base);
}

.action-sheet-item:hover {
    background: var(--sidebar-hover);
    padding-left: 2rem;
}

.action-sheet-item:hover::before {
    transform: scaleX(1);
}

.action-sheet-item:active {
    background: var(--sidebar-active);
}

.action-sheet-item i {
    font-size: 1.25rem;
    color: var(--primary-color);
    width: 24px;
    text-align: center;
    transition: transform var(--transition-base);
}

.action-sheet-item:hover i {
    transform: none;
}

.action-sheet-item span {
    flex: 1;
    font-weight: 500;
}

.action-sheet-item.danger {
    color: #FF3E1D;
}

.action-sheet-item.danger i {
    color: #FF3E1D;
}

.action-sheet-item.danger:hover {
    background: rgba(255, 62, 29, 0.08);
}

.action-sheet-divider {
    height: 1px;
    background: var(--border-color);
    margin: 0.5rem 0;
}

/* Desktop Action Sheet */
@media (min-width: 768px) {
    .action-sheet {
        left: 50%;
        right: auto;
        transform: translate(-50%, 100%);
        max-width: 500px;
        border-radius: 12px;
        border: 1px solid var(--border-color);
        box-shadow: var(--shadow-xl);
    }
    
    .action-sheet.show {
        transform: translate(-50%, 0);
    }
}

/* ===== Responsive Styles ===== */

/* Sidebar Backdrop for Mobile */
.sidebar-backdrop {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: var(--blur-sm);
    -webkit-backdrop-filter: var(--blur-sm);
    z-index: 1040;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-base);
}

@media (max-width: 767px) {
    .sidebar-backdrop {
        display: block;
    }
}

.sidebar-backdrop.show {
    opacity: 1;
    pointer-events: auto;
}

/* Mobile devices (max-width 767px) */
@media (max-width: 767px) {
    /* Disable backdrop-filter on mobile for better performance (except action sheet) */
    .ajax-loader,
    .loader-content,
    .btn-sidebar-toggle,
    .btn-action-sheet,
    .modal-content,
    .modal-header,
    .sidebar-backdrop,
    .table thead th {
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }
    
    /* Reduce animation durations on mobile */
    .alert,
    .card,
    .btn,
    .sidebar-menu-item,
    .sidebar-submenu-item {
        transition-duration: 0.15s !important;
    }
    
    .sidebar {
        width: 280px;
        max-width: 85vw;
        transform: translate3d(-100%, 0, 0);
        transition: transform var(--transition-base);
        z-index: 1000;
        pointer-events: auto;
        will-change: transform;
        -webkit-backface-visibility: hidden;
        backface-visibility: hidden;
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
        text-rendering: optimizeLegibility;
        transform-origin: left center;
        isolation: isolate;
    }
    
    .sidebar.show {
        transform: translate3d(0, 0, 0);
        pointer-events: auto;
        z-index: 1050;
    }
    
    .sidebar.collapsed {
        width: 280px;
        max-width: 85vw;
        transform: translate3d(-100%, 0, 0);
    }
    
    .sidebar * {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
        text-rendering: optimizeLegibility;
    }
    
    .sidebar-menu-item,
    .sidebar-submenu-item {
        -webkit-text-stroke: 0;
        font-weight: 500;
        pointer-events: auto;
        cursor: pointer;
    }
    
    .main-content-wrapper,
    .main-content {
        margin-left: 0 !important;
        width: 100% !important;
        height: 100% !important;
    }
    
    .main-content-wrapper.expanded,
    .main-content.expanded {
        margin-left: 0 !important;
        width: 100% !important;
        height: 100% !important;
    }
    
    body.sidebar-open {
        overflow: hidden;
    }
    
    .admin-header {
        z-index: 1001;
    }
    
    .navbar-admin {
        padding: 0.75rem 1rem;
        flex-shrink: 0;
    }
    
    .navbar-container {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .navbar-left {
        flex: 1 1 auto;
        min-width: 0;
    }
    
    .navbar-right {
        flex: 0 0 auto;
    }
    
    .btn-sidebar-toggle {
        font-size: 1.1rem;
        padding: 0.4rem;
        min-width: 44px;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .breadcrumb-nav {
        font-size: 0.8rem;
        margin-left: 0.5rem !important;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        max-width: calc(100vw - 200px);
    }
    
    .breadcrumb {
        flex-wrap: nowrap;
    }
    
    .breadcrumb-item {
        white-space: nowrap;
    }
    
    .breadcrumb-item:not(:last-child) {
        display: none;
    }
    
    .breadcrumb-item:last-child {
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .user-info {
        display: none;
    }
    
    .user-dropdown {
        padding: 0.4rem;
    }
    
    .user-avatar {
        width: 36px;
        height: 36px;
        font-size: 1.25rem;
    }
    
    .btn-notification {
        min-width: 44px;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .content-wrapper {
        padding: 1rem 0.75rem;
        min-height: 0;
        overflow-y: auto;
    }
    
    .card {
        margin-bottom: 1rem;
    }
    
    .card-header {
        padding: 1rem;
        font-size: 0.9rem;
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .card-header h5 {
        font-size: 1rem;
        margin: 0;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    .card-dashboard {
        margin-bottom: 1rem;
    }
    
    .card-header .btn-group,
    .card-header .float-sm-right {
        width: 100%;
        margin-top: 0.5rem;
    }
    
    .card-header .btn-group .btn,
    .card-header .float-sm-right .btn {
        flex: 1;
        min-width: 0;
    }
    
    .table-wrapper {
        position: relative;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        display: block;
        width: 100%;
        margin-bottom: 1rem;
    }
    
    .table-wrapper::after {
        content: '';
        position: absolute;
        top: 0;
        right: 0;
        width: 30px;
        height: 100%;
        background: linear-gradient(to right, transparent, rgba(0, 0, 0, 0.05));
        pointer-events: none;
        opacity: 0;
        transition: opacity var(--transition-base);
    }
    
    .table-wrapper.scrollable::after {
        opacity: 1;
    }
    
    .table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        display: block;
        width: 100%;
        position: relative;
    }
    
    .table {
        font-size: 0.85rem;
        min-width: 600px;
        width: 100%;
    }
    
    .table thead th {
        font-size: 0.7rem;
        padding: 0.75rem 0.5rem;
        white-space: nowrap;
        position: sticky;
        top: 0;
        background: rgba(255, 255, 255, 0.3);
        backdrop-filter: var(--blur-sm);
        -webkit-backdrop-filter: var(--blur-sm);
        z-index: 10;
    }
    
    .table tbody td {
        padding: 0.75rem 0.5rem;
        white-space: nowrap;
    }
    
    .table-responsive::-webkit-scrollbar {
        height: 8px;
    }
    
    .table-responsive::-webkit-scrollbar-track {
        background: var(--bg-primary);
        border-radius: 4px;
    }
    
    .table-responsive::-webkit-scrollbar-thumb {
        background: var(--primary-color);
        border-radius: 4px;
    }
    
    .form-control, .form-select {
        padding: 0.875rem 1rem;
        font-size: 16px;
        min-height: 44px;
        border-radius: 8px;
        -webkit-appearance: none;
        appearance: none;
    }
    
    .form-select {
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
        background-repeat: no-repeat;
        background-position: right 0.75rem center;
        background-size: 16px 12px;
        padding-right: 2.5rem;
    }
    
    .form-label {
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
        font-weight: 500;
    }
    
    .form-group {
        margin-bottom: 1.25rem;
    }
    
    .select2-container {
        width: 100% !important;
    }
    
    .select2-container .select2-selection--single {
        height: 44px;
        min-height: 44px;
    }
    
    .select2-container .select2-selection--single .select2-selection__rendered {
        line-height: 44px;
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .select2-container .select2-selection--single .select2-selection__arrow {
        height: 42px;
        right: 0.5rem;
    }
    
    .select2-dropdown {
        font-size: 16px;
    }
    
    .select2-results__option {
        padding: 0.75rem 1rem;
        min-height: 44px;
    }
    
    .btn {
        padding: 0.75rem 1.25rem;
        font-size: 0.9rem;
        min-height: 44px;
        min-width: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
    
    .btn-sm {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
        min-height: 36px;
    }
    
    .summary-cards-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .small-box {
        min-height: 110px;
        margin-bottom: 1rem;
    }
    
    .small-box .inner {
        padding: 1.25rem;
    }
    
    .small-box .inner h3 {
        font-size: 1.5rem;
    }
    
    .small-box .inner p {
        font-size: 0.85rem;
    }
    
    .small-box .icon {
        font-size: 2.5rem;
        right: 1rem;
    }
    
    .notification-dropdown {
        min-width: 280px;
        max-width: calc(100vw - 2rem);
        right: 0 !important;
        left: auto !important;
    }
    
    .dropdown-menu {
        max-width: calc(100vw - 2rem);
        font-size: 0.9rem;
        background: var(--bg-card);
        border: 1px solid var(--border-color);
        box-shadow: var(--shadow-lg);
        border-radius: 8px;
    }
    
    .alert {
        font-size: 0.9rem;
        padding: 0.75rem 1rem;
        margin-bottom: 1rem;
    }
    
    .content-header {
        margin-bottom: 1rem;
    }
    
    .content-header h1 {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }
    
    .content-header .float-sm-right {
        width: 100%;
        margin-top: 0.5rem;
    }
    
    .content-header .float-sm-right .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    .content-header .float-sm-right .btn:last-child {
        margin-bottom: 0;
    }
    
    .modal-dialog {
        margin: 0.5rem;
        max-width: calc(100% - 1rem);
    }
    
    .modal-content {
        border-radius: 12px;
        background: var(--bg-card);
        backdrop-filter: var(--blur-md);
        -webkit-backdrop-filter: var(--blur-md);
        border: 1px solid var(--glass-border);
        box-shadow: var(--shadow-glass);
    }
    
    .modal-header {
        padding: 1rem;
        background: rgba(255, 255, 255, 0.3);
        backdrop-filter: var(--blur-sm);
        -webkit-backdrop-filter: var(--blur-sm);
    }
    
    .modal-body {
        padding: 1rem;
    }
    
    .modal-footer {
        padding: 1rem;
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .modal-footer .btn {
        flex: 1;
        min-width: 0;
    }
}

/* Tablet devices (768px - 991px) */
@media (min-width: 768px) and (max-width: 991px) {
    .sidebar {
        position: fixed;
        transform: translate3d(0, 0, 0);
        z-index: 1000;
        pointer-events: auto;
        isolation: isolate;
    }
    
    .admin-header {
        z-index: 1001;
    }
    
    .sidebar.collapsed {
        width: var(--sidebar-collapsed-width);
    }
    
    .main-content-wrapper,
    .main-content {
        margin-left: var(--sidebar-width);
        width: calc(100% - var(--sidebar-width));
        height: 100%;
    }
    
    .main-content-wrapper.expanded,
    .main-content.expanded {
        margin-left: var(--sidebar-collapsed-width);
        width: calc(100% - var(--sidebar-collapsed-width));
        height: 100%;
    }
    
    .navbar-admin {
        padding: 0.875rem 1.25rem;
        flex-shrink: 0;
    }
    
    .btn-sidebar-toggle {
        min-width: 44px;
        min-height: 44px;
    }
    
    .breadcrumb-nav {
        font-size: 0.85rem;
    }
    
    .content-wrapper {
        padding: 1.5rem;
        min-height: 0;
        overflow-y: auto;
    }
    
    .table-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .table {
        font-size: 0.9rem;
        min-width: 600px;
    }
    
    .form-control, .form-select {
        padding: 0.75rem 1rem;
        min-height: 44px;
        font-size: 16px;
    }
    
    .btn {
        min-height: 44px;
        padding: 0.75rem 1.5rem;
    }
    
    .summary-cards-row {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
    }
    
    .small-box {
        min-height: 130px;
    }
    
    .small-box .inner h3 {
        font-size: 1.75rem;
    }
}

/* Desktop devices (992px and up) */
@media (min-width: 992px) {
    .sidebar {
        position: fixed;
        transform: translate3d(0, 0, 0);
        z-index: 1000;
        pointer-events: auto;
        isolation: isolate;
    }
    
    .admin-header {
        z-index: 1001;
    }
    
    .sidebar-backdrop {
        display: none !important;
    }
    
    .main-content-wrapper {
        margin-left: var(--sidebar-width);
        width: calc(100% - var(--sidebar-width));
        height: 100%;
    }
    
    .main-content-wrapper.expanded {
        margin-left: var(--sidebar-collapsed-width);
        width: calc(100% - var(--sidebar-collapsed-width));
        height: 100%;
    }
}

/* Large tablets and small desktops (992px - 1199px) */
@media (min-width: 992px) and (max-width: 1199px) {
    .content-wrapper {
        padding: 1.5rem;
        min-height: 0;
        overflow-y: auto;
    }
    
    .summary-cards-row {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    .content-wrapper {
        padding: 1.5rem;
        min-height: 0;
        overflow-y: auto;
    }
    
    .summary-cards-row {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
}

/* Animations */
@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.animate-fade-in-left {
    animation: fadeInLeft 0.5s ease;
}

/* Tooltip for collapsed sidebar */
.sidebar.collapsed .sidebar-menu-item[data-title]:hover::after {
    content: attr(data-title);
    position: absolute;
    left: calc(100% + 15px);
    top: 50%;
    transform: translateY(-50%);
    padding: 0.5rem 0.75rem;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: var(--blur-sm);
    -webkit-backdrop-filter: var(--blur-sm);
    color: #fff;
    white-space: nowrap;
    border-radius: 8px;
    font-size: 0.85rem;
    z-index: 1001;
    box-shadow: var(--shadow-lg);
    pointer-events: none;
    animation: tooltipFadeIn 0.2s ease;
}

.sidebar.collapsed .sidebar-menu-item[data-title]:hover::before {
    content: '';
    position: absolute;
    left: 100%;
    top: 50%;
    transform: translateY(-50%);
    margin-left: 5px;
    border: 6px solid transparent;
    border-right-color: rgba(0, 0, 0, 0.9);
    z-index: 1002;
    pointer-events: none;
}

@keyframes tooltipFadeIn {
    from {
        opacity: 0;
        transform: translateY(-50%) translateX(-5px);
    }
    to {
        opacity: 1;
        transform: translateY(-50%) translateX(0);
    }
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* Utility Classes */
.text-gradient {
    color: var(--primary-color);
    background: none;
    -webkit-background-clip: unset;
    -webkit-text-fill-color: unset;
    background-clip: unset;
}

.bg-gradient-primary {
    background: var(--primary-color);
}

.shadow-custom {
    box-shadow: var(--shadow-lg);
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Smooth Transitions */
* {
    transition: background-color var(--transition-base), color var(--transition-base), border-color var(--transition-base);
}

/* ===== Summary Cards (Small Box) Styling ===== */
.small-box {
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
    overflow: hidden;
    position: relative;
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
    min-height: 140px;
}

.small-box:hover {
    box-shadow: var(--shadow-md);
}

.small-box .inner {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    z-index: 2;
}

.small-box .inner h3 {
    font-size: 2rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
    line-height: 1.2;
    word-break: break-word;
}

.small-box .inner p {
    font-size: 0.95rem;
    margin: 0;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.9;
}

.small-box .icon {
    position: absolute;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 4rem;
    opacity: 0.15;
    transition: all var(--transition-base);
    z-index: 1;
}

.small-box:hover .icon {
    opacity: 0.25;
    transform: translateY(-50%) scale(1.1);
}

/* Small Box Color Variants - Sneat Palette */
.small-box.bg-success {
    background: var(--accent-green);
    color: #fff;
}

.small-box.bg-info {
    background: var(--primary-color);
    color: #fff;
}

.small-box.bg-warning {
    background: var(--accent-yellow);
    color: #fff;
}

.small-box.bg-danger {
    background: #FF3E1D;
    color: #fff;
}

.small-box.bg-primary {
    background: var(--primary-color);
    color: #fff;
    box-shadow: var(--shadow-md);
}

/* Summary Cards Grid Layout */
.summary-cards-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

/* Additional mobile styles for summary cards */
@media (max-width: 767px) {
    .summary-cards-row {
        grid-template-columns: 1fr;
    }
    
    .small-box {
        min-height: 120px;
    }
    
    .small-box .inner h3 {
        font-size: 1.75rem;
    }
    
    .small-box .icon {
        font-size: 3rem;
        right: 1rem;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .summary-cards-row {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
    .btn, .sidebar-menu-item, .btn-sidebar-toggle, .btn-notification {
        -webkit-tap-highlight-color: rgba(139, 92, 246, 0.2);
    }
    
    .card:hover {
        transform: none;
    }
    
    .table tbody tr:hover {
        transform: none;
    }
    
    .sidebar-menu-item {
        padding: 0.75rem 1rem;
    }
}

/* Print Styles */
@media print {
    .sidebar, .navbar-admin, .btn-sidebar-toggle, .btn-notification {
        display: none !important;
    }
    
    .main-content {
        margin-left: 0 !important;
        width: 100% !important;
    }
    
    .content-wrapper {
        padding: 0;
    }
    
    .card {
        box-shadow: none;
        border: 1px solid #ddd;
    }
}

/* ===== Sneat-Style Statistics Cards ===== */
.stat-card {
    border-radius: 0.5rem;
    border: none;
    position: relative;
    overflow: hidden;
    transition: all var(--transition-base);
    box-shadow: 0 2px 6px 0 rgba(67, 89, 113, 0.12);
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px 0 rgba(67, 89, 113, 0.16);
}

.stat-card .card-body {
    padding: 1.5rem;
    position: relative;
    z-index: 2;
}

.stat-content {
    flex: 1;
}

.stat-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: rgba(110, 107, 123, 0.68);
    text-transform: uppercase;
    letter-spacing: 0.4px;
    margin-bottom: 0.5rem;
}

.stat-value {
    font-size: 1.75rem;
    font-weight: 600;
    line-height: 1.2;
    color: #2B2C40;
    margin-bottom: 0.25rem;
}

.stat-meta {
    font-size: 0.75rem;
    color: rgba(110, 107, 123, 0.68);
    font-weight: 400;
}

.stat-icon {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
    position: relative;
}

.stat-icon i {
    position: relative;
    z-index: 2;
}

/* Income Card (Navy - Occupied/Booking) */
.stat-card-income {
    background: linear-gradient(135deg, #003049 0%, #002236 100%);
}

.stat-card-income .card-body {
    background: linear-gradient(135deg, #003049 0%, #002236 100%);
}

.stat-card-income .stat-label,
.stat-card-income .stat-value,
.stat-card-income .stat-meta {
    color: #FFFFFF;
}

.stat-icon-income {
    background: rgba(255, 255, 255, 0.2);
    color: #FFFFFF;
}

.stat-icon-income::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 0.5rem;
    z-index: 1;
}

/* Expenses Card (Palette Red - Checkout/Problem) */
.stat-card-expenses {
    background: linear-gradient(135deg, #D62828 0%, #b81f1f 100%);
}

.stat-card-expenses .card-body {
    background: linear-gradient(135deg, #D62828 0%, #b81f1f 100%);
}

.stat-card-expenses .stat-label,
.stat-card-expenses .stat-value,
.stat-card-expenses .stat-meta {
    color: #FFFFFF;
}

.stat-icon-expenses {
    background: rgba(255, 255, 255, 0.2);
    color: #FFFFFF;
}

.stat-icon-expenses::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 0.5rem;
    z-index: 1;
}

/* Profit Card - Positive */
.stat-card-profit.profit-positive {
    background: var(--primary-gradient);
}

.stat-card-profit.profit-positive .card-body {
    background: var(--primary-gradient);
}

.stat-card-profit.profit-positive .stat-label,
.stat-card-profit.profit-positive .stat-value,
.stat-card-profit.profit-positive .stat-meta {
    color: #FFFFFF;
}

.stat-card-profit.profit-positive .stat-icon-profit {
    background: rgba(255, 255, 255, 0.2);
    color: #FFFFFF;
}

.stat-card-profit.profit-positive .stat-icon-profit::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 0.5rem;
    z-index: 1;
}

/* Profit Card - Negative (Palette Orange) */
.stat-card-profit.profit-negative {
    background: linear-gradient(135deg, #F77F00 0%, #d96d00 100%);
}

.stat-card-profit.profit-negative .card-body {
    background: linear-gradient(135deg, #F77F00 0%, #d96d00 100%);
}

.stat-card-profit.profit-negative .stat-label,
.stat-card-profit.profit-negative .stat-value,
.stat-card-profit.profit-negative .stat-meta {
    color: #FFFFFF;
}

.stat-card-profit.profit-negative .stat-icon-profit {
    background: rgba(255, 255, 255, 0.2);
    color: #FFFFFF;
}

.stat-card-profit.profit-negative .stat-icon-profit::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 0.5rem;
    z-index: 1;
}

/* ===== Enhanced Chart Card Styling ===== */
.card-dashboard .card-header {
    background: #FFFFFF;
    border-bottom: 1px solid rgba(231, 234, 243, 1);
    padding: 1.25rem 1.5rem;
    border-radius: 0.5rem 0.5rem 0 0;
}

.card-dashboard .card-header h5 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #2B2C40;
    margin: 0;
}

.card-dashboard .card-body {
    padding: 1.5rem;
}

/* Chart Container */
#revenueChart {
    max-height: 300px;
}

/* Year Selector Styling */
.card-header .form-select {
    border: 1px solid rgba(231, 234, 243, 1);
    border-radius: 0.375rem;
    padding: 0.5rem 2rem 0.5rem 0.75rem;
    font-size: 0.875rem;
    color: #2B2C40;
    background-color: #FFFFFF;
    transition: all var(--transition-base);
}

.card-header .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(252, 191, 73, 0.2);
    outline: 0;
}

/* ===== Room list boxes - Manage Room / Go Show / Booking (palette from image) ===== */
.go-show-room-grid {
    display: flex;
    flex-wrap: wrap;
}

.go-show-room-box {
    min-width: 110px;
    padding: 0.75rem 0.85rem;
    border-radius: 1.25rem;
    text-align: center;
    border: 2px solid transparent;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.card .go-show-room-box.room-available {
    background-color: var(--room-available-bg) !important;
    border-color: var(--room-available-border) !important;
    color: var(--neutral-dark) !important;
}

.card .go-show-room-box.room-available:hover {
    background-color: #e0d9a8 !important;
    border-color: var(--palette-gold) !important;
}

.card .go-show-room-box.room-occupied {
    background-color: var(--room-occupied-bg) !important;
    border-color: var(--room-occupied-border) !important;
    color: #fff !important;
}

.card .go-show-room-box.room-maintenance {
    background-color: var(--room-maintenance-bg) !important;
    border-color: var(--room-maintenance-border) !important;
    color: #1a1a1a !important;
}

.card .go-show-room-box.room-short-time {
    background-color: var(--room-short-time-bg) !important;
    border-color: var(--room-short-time-border) !important;
    color: #1a1a1a !important;
}

.card .go-show-room-box.room-incentive {
    background-color: var(--room-incentive-bg) !important;
    border-color: var(--room-incentive-border) !important;
    color: #fff !important;
}

.go-show-room-box .room-number {
    font-weight: 700;
    font-size: 1.5rem;
    line-height: 1.3;
    margin-bottom: 0.4rem;
}

.card .go-show-room-box .room-actions .btn,
.card .go-show-room-box .room-actions .btn-sm {
    background-color: #fff !important;
    border: 1px solid rgba(0, 0, 0, 0.15);
    color: inherit;
    min-width: 32px;
}

.card .go-show-room-box .room-actions .btn-info { color: var(--palette-navy) !important; }
.card .go-show-room-box .room-actions .btn-warning { color: var(--palette-orange) !important; }
.card .go-show-room-box .room-actions .btn-primary { color: var(--palette-gold) !important; }
.card .go-show-room-box .room-actions .btn-secondary { color: var(--neutral-medium) !important; }
.card .go-show-room-box .room-actions .btn-danger { color: var(--palette-red) !important; }
.card .go-show-room-box .room-actions .btn-success { color: var(--palette-gold) !important; }

/* Outline primary in room cards: parent .room-occupied uses color:#fff; btn forces white bg + inherit → invisible text */
.card .go-show-room-box .room-actions .btn-outline-primary {
    color: #1a1a1a !important;
}
.card .go-show-room-box .room-actions .btn-outline-primary:hover,
.card .go-show-room-box .room-actions .btn-outline-primary:focus,
.card .go-show-room-box .room-actions .btn-outline-primary:active {
    color: #1a1a1a !important;
    background-color: #fff19f !important;
    border-color: var(--primary-color) !important;
}

.card .go-show-room-box.room-available {
    cursor: pointer;
}

.card .go-show-room-box.room-maintenance .room-actions a,
.card .go-show-room-box.room-maintenance .room-actions button {
    pointer-events: none;
    opacity: 0.8;
}

.go-show-index-card {
    margin-top: 0.25rem;
    margin-bottom: 0.25rem;
}

.go-show-index-card .card-header {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.go-show-index-card .card-body {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.bookings-table table {
    position: relative;
    pointer-events: auto;
}

.bookings-table .d-flex {
    flex-wrap: wrap;
    gap: 4px;
}

.bookings-table .btn-sm {
    min-width: 36px;
    padding: 6px 8px;
}

.bookings-table td:last-child {
    white-space: nowrap;
    position: relative;
}

/* ===== Enhanced Booking Statistics Cards ===== */
.booking-stats-card {
    border-radius: 0.5rem;
    border: 1px solid rgba(231, 234, 243, 1);
    background: #FFFFFF;
    box-shadow: 0 2px 6px 0 rgba(67, 89, 113, 0.12);
    transition: all var(--transition-base);
    overflow: hidden;
}

.booking-stats-card:hover {
    box-shadow: 0 4px 12px 0 rgba(67, 89, 113, 0.16);
    transform: translateY(-2px);
}

.booking-stats-card .card-header {
    background: rgba(248, 249, 250, 1);
    border-bottom: 1px solid rgba(231, 234, 243, 1);
    padding: 1rem 1.25rem;
}

.booking-stats-card .card-header h6 {
    font-size: 1rem;
    font-weight: 600;
    color: #2B2C40;
    margin: 0;
}

.booking-stats-card .card-body {
    padding: 1.25rem;
}

.stat-number-box {
    background: rgba(248, 249, 250, 1);
    border-radius: 0.5rem;
    padding: 1rem;
    text-align: center;
    transition: all var(--transition-base);
}

.stat-number-box:hover {
    background: rgba(231, 234, 243, 0.5);
}

.stat-number-box h4 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    line-height: 1.2;
}

.stat-number-box small {
    font-size: 0.75rem;
    color: rgba(110, 107, 123, 0.68);
    font-weight: 400;
}

.status-badge-item {
    padding: 0.625rem 0.75rem;
    border-radius: 0.375rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all var(--transition-base);
}

.status-badge-item:hover {
    transform: translateX(4px);
}

.status-badge-item.pending {
    background: rgba(255, 193, 7, 0.1);
    color: #FFB400;
}

.status-badge-item.confirmed {
    background: rgba(86, 202, 0, 0.1);
    color: #56CA00;
}

.status-badge-item.cancelled {
    background: rgba(255, 62, 29, 0.1);
    color: #FF3E1D;
}

.status-badge-item.completed {
    background: rgba(252, 191, 73, 0.14);
    color: var(--palette-gold);
}

.status-badge-item i {
    margin-right: 0.5rem;
}

.status-badge-item strong {
    font-weight: 600;
    font-size: 1rem;
}

/* ===== Responsive Adjustments for Statistics Cards ===== */
@media (max-width: 768px) {
    .stat-card .card-body {
        padding: 1.25rem;
    }
    
    .stat-icon {
        width: 3rem;
        height: 3rem;
        font-size: 1.25rem;
    }
    
    .stat-value {
        font-size: 1.5rem;
    }
    
    .booking-stats-card .card-body {
        padding: 1rem;
    }
    
    .stat-number-box {
        padding: 0.875rem;
    }
    
    .stat-number-box h4 {
        font-size: 1.25rem;
    }
}

/* ===== Filter Horizontal Layout ===== */
.filter-horizontal {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 15px;
}

.filter-horizontal .form-group {
    margin-bottom: 0;
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.filter-horizontal .form-group label {
    margin-bottom: 0;
    margin-right: 8px;
    white-space: nowrap;
}

.filter-horizontal .form-control {
    min-width: 120px;
}

.filter-horizontal .btn {
    flex-shrink: 0;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .filter-horizontal {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .filter-horizontal .form-group {
        flex: 1 1 auto;
        min-width: 140px;
    }
    
    .filter-horizontal .btn {
        flex: 1 1 100%;
    }
}
/* ===== Fix Input Icon & Placeholder Alignment ===== */
.input-wrapper {
    position: relative;
    width: 100%;
}

/* Icon kiri */
.input-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    color: #64748b;
    pointer-events: none;
    line-height: 1;
}

/* Input field */
.input-wrapper .form-control {
    padding-left: 48px; /* ruang aman untuk icon */
    height: 48px;       /* tinggi konsisten */
    line-height: 1.4;
    display: flex;
    align-items: center;
}

/* Placeholder */
.input-wrapper .form-control::placeholder {
    color: var(--text-muted);
    opacity: 1;
    line-height: normal;
}

/* Fokus input → icon ikut aktif */
.input-wrapper .form-control:focus + .input-icon,
.input-wrapper .form-control:focus ~ .input-icon {
    color: var(--primary-color);
}
