/* ===== LivingKu Design System ===== */
:root {
    --bg-primary: #0a0e1a;
    --bg-secondary: #111827;
    --bg-card: rgba(17, 24, 39, 0.8);
    --bg-card-hover: rgba(20, 30, 50, 0.9);
    --bg-input: rgba(255,255,255,0.05);
    --border: rgba(255,255,255,0.08);
    --border-hover: rgba(255,255,255,0.15);
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --accent: #06b6d4;
    --accent2: #14b8a6;
    --accent-gradient: linear-gradient(135deg, #06b6d4, #14b8a6);
    --accent-glow: rgba(6, 182, 212, 0.3);
    --danger: #ef4444;
    --warning: #f59e0b;
    --success: #22c55e;
    --purple: #8b5cf6;
    --sidebar-w: 260px;
    --topbar-h: 64px;
    --radius: 12px;
    --radius-lg: 16px;
    --shadow: 0 4px 24px rgba(0,0,0,0.3);
    --transition: 0.2s ease;
}

/* ===== Light Mode Theme ===== */
body.light-mode {
    --bg-primary: #f8fafc;
    --bg-secondary: #ffffff;
    --bg-card: rgba(255, 255, 255, 0.9);
    --bg-card-hover: rgba(255, 255, 255, 1);
    --bg-input: #f1f5f9;
    --border: #e2e8f0;
    --border-hover: #cbd5e1;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #64748b;
    
    --accent: #0284c7;
    --accent2: #0d9488;
    --accent-gradient: linear-gradient(135deg, #0284c7, #0d9488);
    --accent-glow: rgba(2, 132, 199, 0.3);
    
    --shadow: 0 4px 24px rgba(0,0,0,0.06);
}

body.light-mode .sidebar {
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}
body.light-mode .top-bar {
    background: rgba(248, 250, 252, 0.8);
}
body.light-mode .nav-item:hover {
    background: rgba(0,0,0,0.05);
}
body.light-mode table thead th {
    background: rgba(0,0,0,0.03);
}
body.light-mode table tbody tr:hover {
    background: rgba(0,0,0,0.02);
}
body.light-mode .btn-secondary {
    background: #ffffff;
}
body.light-mode .btn-secondary:hover {
    background: #f1f5f9;
}
body.light-mode .badge-neutral {
    background: #e2e8f0;
    color: #475569;
}
body.light-mode .stat-icon.neutral {
    background: #e2e8f0;
    color: #475569;
}

/* ===== Reset ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 14px; scroll-behavior: smooth; }
body {
    font-family: 'Inter', -apple-system, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; color: inherit; }
input, select, textarea { font-family: inherit; font-size: inherit; }
table { border-collapse: collapse; width: 100%; }

/* ===== Scrollbar ===== */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.2); }

/* ===== App Layout ===== */
#app { display: flex; min-height: 100vh; }

/* ===== Login Screen ===== */
.login-screen {
    position: fixed; inset: 0; background: var(--bg-primary);
    display: flex; align-items: center; justify-content: center; z-index: 1000;
    overflow: hidden;
}
.login-screen::before, .login-screen::after {
    content: ''; position: absolute; border-radius: 50%; filter: blur(80px);
    z-index: -1; animation: floatBlob 10s infinite alternate ease-in-out;
}
.login-screen::before {
    width: 40vw; height: 40vw; background: rgba(6, 182, 212, 0.15);
    top: -10vw; left: -10vw;
}
.login-screen::after {
    width: 30vw; height: 30vw; background: rgba(139, 92, 246, 0.15);
    bottom: -5vw; right: -5vw; animation-delay: -5s;
}
@keyframes floatBlob {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(5vw, 5vw) scale(1.1); }
}

.login-screen.hidden { display: none; }
.login-box {
    background: rgba(17, 24, 39, 0.6); 
    backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
    padding: 48px 40px; border-radius: 24px;
    box-shadow: 0 24px 64px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.1); 
    width: 100%; max-width: 420px;
    border: 1px solid rgba(255,255,255,0.08); 
    margin: 20px; position: relative;
    animation: scaleUp 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes scaleUp {
    from { opacity: 0; transform: scale(0.95) translateY(20px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

body.light-mode .login-box {
    background: rgba(255, 255, 255, 0.7);
    box-shadow: 0 24px 64px rgba(0,0,0,0.08), inset 0 1px 0 rgba(255,255,255,0.5);
    border: 1px solid rgba(255,255,255,0.4);
}

.login-header { text-align: center; margin-bottom: 36px; }
.login-header .logo-icon {
    margin: 0 auto 24px; width: 64px; height: 64px; 
    background: var(--accent-gradient); color: white; 
    border-radius: 18px; display: flex; align-items: center; justify-content: center;
    box-shadow: 0 12px 32px var(--accent-glow);
    animation: pulseGlow 2s infinite alternate;
}
@keyframes pulseGlow {
    from { box-shadow: 0 8px 24px var(--accent-glow); transform: translateY(0); }
    to { box-shadow: 0 16px 40px var(--accent-glow); transform: translateY(-4px); }
}
.login-header h2 { font-size: 1.75rem; font-weight: 800; color: var(--text-primary); margin-bottom: 8px; letter-spacing: -0.5px;}
.login-header p { color: var(--text-secondary); font-size: 0.95rem; }

/* Enhanced Login Inputs */
.login-box .form-group { margin-bottom: 20px; position: relative; }
.login-box .form-label { display: none; }
.login-box .form-input {
    padding: 14px 16px 14px 46px; height: 52px; border-radius: 14px;
    background: rgba(255,255,255,0.03); border: 1px solid var(--border);
    font-size: 0.95rem; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
body.light-mode .login-box .form-input { background: rgba(0,0,0,0.02); }
.login-box .form-input:focus {
    background: rgba(255,255,255,0.06); border-color: var(--accent);
    box-shadow: 0 0 0 4px var(--accent-glow); transform: translateY(-1px);
}
.login-box .input-icon {
    position: absolute; left: 16px; top: 50%; transform: translateY(-50%);
    color: var(--text-muted); transition: color 0.3s; pointer-events: none;
    display: flex; align-items: center; justify-content: center;
}
.login-box .form-input:focus ~ .input-icon { color: var(--accent); }

.login-box .btn-primary {
    height: 52px; border-radius: 14px; font-size: 1.05rem; font-weight: 700;
    margin-top: 8px; transition: all 0.3s;
}
.login-box .btn-primary:hover {
    transform: translateY(-2px); box-shadow: 0 8px 24px var(--accent-glow);
}

/* ===== Sidebar ===== */
.sidebar {
    position: fixed; top: 0; left: 0; bottom: 0;
    width: var(--sidebar-w); z-index: 100;
    background: linear-gradient(180deg, #0f1729 0%, #0a0e1a 100%);
    border-right: 1px solid var(--border);
    display: flex; flex-direction: column;
    transition: transform 0.3s cubic-bezier(0.4,0,0.2,1);
}
.sidebar-header {
    padding: 20px; display: flex; align-items: center; justify-content: space-between;
    border-bottom: 1px solid var(--border);
}
.logo { display: flex; align-items: center; gap: 12px; }
.logo-icon {
    width: 42px; height: 42px; border-radius: 12px;
    background: var(--accent-gradient);
    display: flex; align-items: center; justify-content: center;
    color: white; font-weight: 700;
    box-shadow: 0 4px 16px var(--accent-glow);
}
.logo-text { font-size: 1.35rem; font-weight: 800; letter-spacing: -0.5px;
    background: var(--accent-gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.sidebar-close { display: none; padding: 4px; border-radius: 6px; color: var(--text-secondary); }
.sidebar-close:hover { background: rgba(255,255,255,0.1); }

.sidebar-nav { flex: 1; padding: 12px; overflow-y: auto; display: flex; flex-direction: column; gap: 2px; }
.nav-item {
    display: flex; align-items: center; gap: 12px;
    padding: 10px 14px; border-radius: 10px;
    color: var(--text-secondary); font-weight: 500; font-size: 0.92rem;
    transition: all var(--transition); position: relative;
}
.nav-item:hover { color: var(--text-primary); background: rgba(255,255,255,0.05); }
.nav-item.active {
    color: white; background: var(--accent-gradient);
    box-shadow: 0 4px 16px var(--accent-glow);
}
.nav-item.active svg { stroke: white; }
.nav-divider { height: 1px; background: var(--border); margin: 8px 0; }
.nav-label { padding: 8px 14px 4px; font-size: 0.72rem; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; color: var(--text-muted); }

.sidebar-footer { padding: 16px 20px; border-top: 1px solid var(--border); }
.sidebar-footer-info { display: flex; justify-content: space-between; color: var(--text-muted); font-size: 0.75rem; }

.sidebar-overlay {
    display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.6);
    z-index: 99; backdrop-filter: blur(4px);
}

/* ===== Main Content ===== */
.main-content {
    flex: 1; margin-left: var(--sidebar-w);
    min-height: 100vh; display: flex; flex-direction: column;
    transition: margin-left 0.3s ease;
}
.top-bar {
    height: var(--topbar-h); padding: 0 28px;
    display: flex; align-items: center; justify-content: space-between;
    background: rgba(10,14,26,0.8); backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    position: sticky; top: 0; z-index: 50;
}
.top-bar-left { display: flex; align-items: center; gap: 16px; }
.menu-btn { display: none; padding: 6px; border-radius: 8px; color: var(--text-secondary); }
.menu-btn:hover { background: rgba(255,255,255,0.08); color: var(--text-primary); }
.page-title { font-size: 1.25rem; font-weight: 700; }
.top-bar-right { display: flex; align-items: center; gap: 16px; }
.current-date { color: var(--text-secondary); font-size: 0.85rem; }
.user-avatar {
    width: 36px; height: 36px; border-radius: 10px;
    background: var(--accent-gradient); display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 0.85rem; color: white;
}
.page-content { flex: 1; padding: 28px; animation: fadeIn 0.3s ease; }

/* ===== Cards ===== */
.card {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 24px;
    transition: all var(--transition);
}
.card:hover { border-color: var(--border-hover); }
.card-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.card-title { font-size: 1rem; font-weight: 600; }

/* ===== Stats Grid ===== */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; margin-bottom: 28px; }
.stat-card {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 22px;
    display: flex; align-items: flex-start; gap: 16px;
    transition: all 0.3s ease; position: relative; overflow: hidden;
}
.stat-card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
    background: var(--accent-gradient); opacity: 0; transition: opacity 0.3s;
}
.stat-card:hover { transform: translateY(-2px); border-color: var(--border-hover); box-shadow: var(--shadow); }
.stat-card:hover::before { opacity: 1; }
.stat-icon {
    width: 48px; height: 48px; border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.stat-icon.teal { background: rgba(6,182,212,0.15); color: var(--accent); }
.stat-icon.green { background: rgba(34,197,94,0.15); color: var(--success); }
.stat-icon.purple { background: rgba(139,92,246,0.15); color: var(--purple); }
.stat-icon.warning { background: rgba(245,158,11,0.15); color: var(--warning); }
.stat-icon.danger { background: rgba(239,68,68,0.15); color: var(--danger); }
.stat-info { flex: 1; }
.stat-value { font-size: 1.75rem; font-weight: 800; line-height: 1.2; }
.stat-label { color: var(--text-secondary); font-size: 0.82rem; margin-top: 2px; }

/* ===== Content Grid ===== */
.content-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 28px; }
.content-grid.full { grid-template-columns: 1fr; }
.chart-container { position: relative; height: 280px; }

/* ===== Tables ===== */
.table-wrapper { overflow-x: auto; }
table th, table td { padding: 12px 16px; text-align: left; white-space: nowrap; }
table thead th {
    background: rgba(255,255,255,0.03); color: var(--text-secondary);
    font-weight: 600; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.5px;
    border-bottom: 1px solid var(--border);
}
table tbody tr { border-bottom: 1px solid rgba(255,255,255,0.04); transition: background var(--transition); }
table tbody tr:hover { background: rgba(255,255,255,0.03); }
table tbody tr:last-child { border-bottom: none; }

/* ===== Badges ===== */
.badge {
    display: inline-flex; align-items: center; padding: 4px 10px;
    border-radius: 20px; font-size: 0.75rem; font-weight: 600;
}
.badge-success { background: rgba(34,197,94,0.15); color: #4ade80; }
.badge-warning { background: rgba(245,158,11,0.15); color: #fbbf24; }
.badge-danger { background: rgba(239,68,68,0.15); color: #f87171; }
.badge-info { background: rgba(6,182,212,0.15); color: #22d3ee; }
.badge-neutral { background: rgba(255,255,255,0.08); color: var(--text-secondary); }

/* ===== Buttons ===== */
.btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 10px 20px; border-radius: 10px;
    font-weight: 600; font-size: 0.85rem;
    transition: all var(--transition);
}
.btn-primary {
    background: var(--accent-gradient); color: white;
    box-shadow: 0 2px 12px var(--accent-glow);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 4px 20px var(--accent-glow); }
.btn-secondary { background: rgba(255,255,255,0.08); color: var(--text-primary); border: 1px solid var(--border); }
.btn-secondary:hover { background: rgba(255,255,255,0.12); border-color: var(--border-hover); }
.btn-danger { background: rgba(239,68,68,0.15); color: #f87171; }
.btn-danger:hover { background: rgba(239,68,68,0.25); }
.btn-sm { padding: 6px 14px; font-size: 0.78rem; border-radius: 8px; }
.btn-icon { padding: 8px; border-radius: 8px; }
.btn-icon:hover { background: rgba(255,255,255,0.08); }

/* ===== Action Bar ===== */
.action-bar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-bottom: 20px; }
.search-box {
    display: flex; align-items: center; gap: 8px;
    background: var(--bg-input); border: 1px solid var(--border); border-radius: 10px;
    padding: 8px 14px; min-width: 260px;
}
.search-box svg { color: var(--text-muted); flex-shrink: 0; }
.search-box input {
    background: none; border: none; outline: none;
    color: var(--text-primary); width: 100%; font-size: 0.85rem;
}
.search-box input::placeholder { color: var(--text-muted); }
.filter-group { display: flex; gap: 8px; align-items: center; }

/* ===== Forms ===== */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 16px; }
.form-group.full { grid-column: 1 / -1; }
.form-label { display: block; margin-bottom: 6px; font-weight: 500; font-size: 0.82rem; color: var(--text-secondary); }
.form-input, .form-select, .form-textarea {
    width: 100%; padding: 10px 14px; border-radius: 10px;
    background: var(--bg-input); border: 1px solid var(--border);
    color: var(--text-primary); font-size: 0.9rem;
    transition: all var(--transition); outline: none;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
    border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-glow);
}
.form-textarea { min-height: 80px; resize: vertical; }
.form-select { cursor: pointer; }
.form-select option { background: var(--bg-secondary); color: var(--text-primary); }
.form-actions { display: flex; gap: 12px; justify-content: flex-end; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--border); }

/* ===== Facility Tags ===== */
.facility-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.facility-tag {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 4px 12px; border-radius: 20px; font-size: 0.78rem; font-weight: 500;
    background: rgba(6,182,212,0.1); color: var(--accent); border: 1px solid rgba(6,182,212,0.2);
}
.facility-tag-toggle { cursor: pointer; transition: all var(--transition); }
.facility-tag-toggle.active { background: var(--accent); color: white; }

/* ===== Modal ===== */
.modal-overlay {
    position: fixed; inset: 0; background: rgba(0,0,0,0.7);
    backdrop-filter: blur(8px); z-index: 200;
    display: flex; align-items: center; justify-content: center;
    animation: fadeIn 0.2s ease;
}
.modal-overlay.hidden { display: none; }
.modal-container {
    background: var(--bg-secondary); border: 1px solid var(--border);
    border-radius: var(--radius-lg); width: 90%; max-width: 560px;
    max-height: 90vh; overflow-y: auto;
    animation: slideUp 0.3s cubic-bezier(0.4,0,0.2,1);
}
.modal-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 20px 24px; border-bottom: 1px solid var(--border);
}
.modal-title { font-size: 1.1rem; font-weight: 700; }
.modal-close-btn { padding: 4px; border-radius: 6px; color: var(--text-secondary); }
.modal-close-btn:hover { background: rgba(255,255,255,0.1); color: var(--text-primary); }
.modal-body { padding: 24px; }

/* ===== Toast ===== */
.toast-container { position: fixed; top: 20px; right: 20px; z-index: 300; display: flex; flex-direction: column; gap: 8px; }
.toast {
    padding: 14px 20px; border-radius: 12px;
    background: var(--bg-secondary); border: 1px solid var(--border);
    color: var(--text-primary); font-size: 0.85rem; font-weight: 500;
    box-shadow: 0 8px 32px rgba(0,0,0,0.4);
    animation: slideInRight 0.3s ease;
    display: flex; align-items: center; gap: 10px; min-width: 280px;
}
.toast.success { border-left: 4px solid var(--success); }
.toast.error { border-left: 4px solid var(--danger); }
.toast.warning { border-left: 4px solid var(--warning); }
.toast.removing { animation: slideOutRight 0.3s ease forwards; }

/* ===== Empty State ===== */
.empty-state {
    text-align: center; padding: 60px 20px; color: var(--text-muted);
}
.empty-state svg { margin-bottom: 16px; opacity: 0.3; }
.empty-state h3 { color: var(--text-secondary); margin-bottom: 8px; font-size: 1.1rem; }
.empty-state p { font-size: 0.85rem; margin-bottom: 20px; }

/* ===== Loading ===== */
.loading-spinner { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 80px; color: var(--text-muted); gap: 16px; }
.spinner {
    width: 36px; height: 36px; border: 3px solid var(--border);
    border-top-color: var(--accent); border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

/* ===== Property Cards Grid ===== */
.property-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 20px; }
.property-card { cursor: default; }
.property-card .property-name { font-size: 1.1rem; font-weight: 700; margin-bottom: 4px; }
.property-card .property-address { color: var(--text-secondary); font-size: 0.82rem; margin-bottom: 12px; display: flex; align-items: center; gap: 6px; }
.property-card .property-stats { display: flex; gap: 16px; margin-bottom: 12px; }
.property-card .property-stat { font-size: 0.82rem; color: var(--text-secondary); }
.property-card .property-stat strong { color: var(--text-primary); }
.property-card-actions { display: flex; gap: 8px; padding-top: 12px; border-top: 1px solid var(--border); }

/* ===== Room Grid ===== */
.room-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.room-card {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 18px; text-align: center;
    transition: all 0.3s ease; position: relative;
}
.room-card:hover { transform: translateY(-2px); border-color: var(--border-hover); box-shadow: var(--shadow); }
.room-number { font-size: 1.2rem; font-weight: 700; margin-bottom: 4px; }
.room-type { color: var(--text-secondary); font-size: 0.78rem; margin-bottom: 8px; text-transform: uppercase; letter-spacing: 0.5px; }
.room-price { font-weight: 700; color: var(--accent); margin-bottom: 8px; }
.room-status-dot {
    position: absolute; top: 12px; right: 12px;
    width: 10px; height: 10px; border-radius: 50%;
}
.room-status-dot.available { background: var(--success); box-shadow: 0 0 8px rgba(34,197,94,0.5); }
.room-status-dot.occupied { background: var(--danger); box-shadow: 0 0 8px rgba(239,68,68,0.5); }
.room-status-dot.maintenance { background: var(--warning); box-shadow: 0 0 8px rgba(245,158,11,0.5); }

/* ===== Tenant Info ===== */
.tenant-info-row { display: flex; align-items: center; gap: 12px; }
.tenant-avatar {
    width: 36px; height: 36px; border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 0.8rem; flex-shrink: 0;
}
.tenant-name { font-weight: 600; }
.tenant-room { font-size: 0.78rem; color: var(--text-secondary); }

/* ===== Invoice ===== */
.invoice-preview {
    background: var(--bg-primary); border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 32px; max-width: 500px; margin: 0 auto;
}
.invoice-header-section { text-align: center; margin-bottom: 24px; padding-bottom: 16px; border-bottom: 1px solid var(--border); }
.invoice-detail-row { display: flex; justify-content: space-between; padding: 8px 0; font-size: 0.9rem; }
.invoice-total { font-size: 1.2rem; font-weight: 700; border-top: 2px solid var(--border); padding-top: 12px; margin-top: 8px; }

/* ===== Settings ===== */
.settings-section { margin-bottom: 32px; }
.settings-section h3 { font-size: 1rem; font-weight: 600; margin-bottom: 16px; padding-bottom: 8px; border-bottom: 1px solid var(--border); }

/* ===== Animations ===== */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes slideInRight { from { opacity: 0; transform: translateX(100px); } to { opacity: 1; transform: translateX(0); } }
@keyframes slideOutRight { from { opacity: 1; transform: translateX(0); } to { opacity: 0; transform: translateX(100px); } }
@keyframes spin { to { transform: rotate(360deg); } }

/* ===== Responsive ===== */
@media (max-width: 1024px) {
    .content-grid { grid-template-columns: 1fr; }
    .form-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
    .sidebar { transform: translateX(-100%); }
    .sidebar.open { transform: translateX(0); }
    .sidebar-close { display: block; }
    .sidebar-overlay.active { display: block; }
    .main-content { margin-left: 0; }
    .menu-btn { display: block; }
    .page-content { padding: 16px; }
    .top-bar { padding: 0 16px; }
    .stats-grid { grid-template-columns: 1fr 1fr; }
    .property-grid { grid-template-columns: 1fr; }
    .room-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
    .search-box { min-width: unset; flex: 1; }
    .action-bar { flex-direction: column; align-items: stretch; }
}
@media (max-width: 480px) {
    .stats-grid { grid-template-columns: 1fr; }
    html { font-size: 13px; }
    .login-box { padding: 32px 24px; margin: 16px; }
}
