@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
    --primary: #4f46e5;
    --primary-hover: #4338ca;
    --primary-glow: rgba(79, 70, 229, 0.12);
    
    --success: #10b981;
    --success-hover: #059669;
    
    --danger: #ef4444;
    --danger-hover: #dc2626;
    
    --warning: #f59e0b;
    --warning-hover: #d97706;
    
    --info: #06b6d4;
    --info-hover: #0891b2;
    
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;
    
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-full: 9999px;
    
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    
    --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-sans);
    background-color: var(--gray-50);
    color: var(--gray-800);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    padding: 1.5rem;
}

/* ─── Layout & Headers ─── */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    background: white;
    padding: 1.25rem 2rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-200);
    box-shadow: var(--shadow-sm);
}

.header h2 {
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--gray-900);
    letter-spacing: -0.025em;
}

.header small {
    color: var(--gray-500);
    font-weight: 500;
    display: block;
    margin-top: 0.25rem;
}

/* ─── Buttons ─── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.625rem 1.25rem;
    font-weight: 600;
    font-size: 0.875rem;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid transparent;
    text-decoration: none;
    gap: 0.5rem;
    box-shadow: var(--shadow-sm);
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

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

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

.btn-success { background: var(--success); color: white; }
.btn-success:hover { background: var(--success-hover); }

.btn-danger { background: var(--danger); color: white; }
.btn-danger:hover { background: var(--danger-hover); }

.btn-warning { background: var(--warning); color: var(--gray-900); }
.btn-warning:hover { background: var(--warning-hover); }

.btn-info { background: var(--info); color: white; }
.btn-info:hover { background: var(--info-hover); }

.btn-secondary { background: white; color: var(--gray-700); border-color: var(--gray-200); }
.btn-secondary:hover { background: var(--gray-100); border-color: var(--gray-300); }

.btn-small {
    padding: 0.4rem 0.75rem;
    font-size: 0.75rem;
    border-radius: var(--radius-sm);
}

.btn-large {
    padding: 0.875rem 1.75rem;
    font-size: 1rem;
}

/* ─── Cards ─── */
.card {
    background: white;
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-200);
    box-shadow: var(--shadow-sm);
    margin-bottom: 2rem;
    transition: box-shadow 0.3s ease;
}

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

.card h3 {
    font-weight: 700;
    font-size: 1.125rem;
    color: var(--gray-900);
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.625rem;
}

/* ─── Stats Grid ─── */
.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.stat-card {
    background: white;
    padding: 1.75rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-200);
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--primary);
}

.stat-card.red::before { background: var(--danger); }
.stat-card.green::before { background: var(--success); }
.stat-card.orange::before { background: var(--warning); }
.stat-card.teal::before { background: var(--info); }

.stat-card h3 {
    font-size: 2.25rem;
    font-weight: 800;
    margin: 0;
    line-height: 1;
    color: var(--gray-900);
    letter-spacing: -0.05em;
}

.stat-card p {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 0.5rem;
}

/* ─── Tables ─── */
table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--gray-200);
    box-shadow: var(--shadow-sm);
}

th {
    background-color: var(--gray-50);
    color: var(--gray-600);
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.875rem 1.25rem;
    border-bottom: 1px solid var(--gray-200);
    text-align: left;
}

td {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--gray-100);
    color: var(--gray-700);
    font-size: 0.875rem;
}

tr:last-child td {
    border-bottom: none;
}

tr:hover td {
    background-color: var(--gray-50);
}

/* ─── Forms & Inputs ─── */
.form-container {
    max-width: 600px;
    margin: 0 auto;
    background: white;
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--gray-200);
}

label {
    display: block;
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--gray-700);
    margin-bottom: 0.5rem;
}

input[type="text"],
input[type="number"],
input[type="email"],
input[type="password"],
input[type="tel"],
input[type="date"],
select,
textarea {
    width: 100%;
    padding: 0.625rem 0.875rem;
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius-md);
    font-size: 0.9375rem;
    background: white;
    transition: all 0.2s;
    color: var(--gray-900);
    margin-bottom: 1.25rem;
    font-family: inherit;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px var(--primary-glow);
}

/* ─── Badges ─── */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.625rem;
    border-radius: var(--radius-full);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.badge-occ { background: #fef3c7; color: #92400e; }
.badge-vac { background: #d1fae5; color: #065f46; }
.badge-paid { background: #dcfce7; color: #166534; }
.badge-due { background: #fee2e2; color: #991b1b; }
.badge-advance { background: #ecfeff; color: #155e75; }
.badge-maint { background: #f3e8ff; color: #6b21a8; }
.badge-active { background: #e0f2fe; color: #0369a1; }
.badge-vacated { background: var(--gray-100); color: var(--gray-600); }

/* ─── Tabs ─── */
.tabs {
    display: flex;
    gap: 0.375rem;
    background: var(--gray-100);
    padding: 0.375rem;
    border-radius: var(--radius-lg);
    margin-bottom: 1.5rem;
    width: fit-content;
    overflow-x: auto;
}

.tab {
    padding: 0.5rem 1.25rem;
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--gray-600);
    border-radius: var(--radius-md);
    text-decoration: none;
    transition: all 0.2s;
    white-space: nowrap;
}

.tab:hover {
    color: var(--gray-900);
    background: rgba(0,0,0,0.05);
}

.tab.active {
    background: white;
    color: var(--primary);
    box-shadow: var(--shadow-sm);
}

/* ─── Filters ─── */
.filters {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    background: white;
    padding: 1.25rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-200);
    margin-bottom: 2rem;
    align-items: flex-end;
}

.filters strong {
    color: var(--gray-900);
    font-size: 0.875rem;
}

.filters select,
.filters input[type="text"] {
    margin-bottom: 0;
    flex: 1;
    min-width: 160px;
}

/* ─── Alerts ─── */
.alert {
    padding: 1rem 1.25rem;
    border-radius: var(--radius-md);
    margin-bottom: 1.5rem;
    font-weight: 500;
    border: 1px solid transparent;
}

.alert-success { background: #d1fae5; color: #065f46; border-left: 4px solid var(--success); }
.alert-error { background: #fee2e2; color: #991b1b; border-left: 4px solid var(--danger); }
.alert-warning { background: #fef3c7; color: #92400e; border-left: 4px solid var(--warning); }
.alert-info { background: #e0f2fe; color: #0369a1; border-left: 4px solid var(--info); }

/* ─── Back Link ─── */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    color: var(--gray-500);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.875rem;
    transition: color 0.2s;
}

.back-link:hover {
    color: var(--primary);
}

/* ─── Responsive ─── */
@media (max-width: 768px) {
    body { padding: 1rem; }
    .header { flex-direction: column; align-items: flex-start; gap: 1rem; }
    .stats-container { grid-template-columns: 1fr; }
    .filters { flex-direction: column; align-items: stretch; }
    .tabs { width: 100%; }
}

/* ─── Print Styles ─── */
@media print {
    body { background: white; padding: 0; }
    .no-print { display: none !important; }
    .card, table { box-shadow: none; border: 1px solid #eee; }
}

/* ─── Utility Classes ─── */
.text-center { text-align: center; }
.text-right { text-align: right; }
.mt-20 { margin-top: 1.25rem; }
.mb-20 { margin-bottom: 1.25rem; }
.p-20 { padding: 1.25rem; }
.flex { display: flex; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.gap-10 { gap: 0.625rem; }
.gap-20 { gap: 1.25rem; }

/* ── Glassmorphism ─── */
.glass {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* ── Specific Overrides ─── */
.btn-large {
    padding: 0.875rem 1.75rem;
    font-size: 1rem;
}


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

/* ─── Login Page ─── */
.login-body-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--gray-900) 0%, var(--gray-800) 100%);
    padding: 1rem;
}

.login-card {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    width: 100%;
    max-width: 420px;
    overflow: hidden;
    animation: slideUp 0.5s ease-out;
}

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

.login-header {
    background: linear-gradient(135deg, var(--primary), var(--primary-hover));
    padding: 2.5rem 2rem 2rem;
    text-align: center;
    color: white;
}

.login-header .icon { font-size: 3rem; margin-bottom: 0.5rem; display: block; filter: drop-shadow(0 4px 6px rgba(0,0,0,0.1)); }
.login-header h1   { font-size: 1.75rem; font-weight: 800; letter-spacing: -0.025em; }
.login-header p    { font-size: 0.875rem; opacity: 0.8; font-weight: 500; }

.mode-tabs {
    display: flex;
    background: var(--gray-50);
    border-bottom: 1px solid var(--gray-200);
}

.mode-tab {
    flex: 1;
    padding: 1rem;
    text-align: center;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--gray-500);
    border: none;
    background: transparent;
    transition: all 0.2s;
    border-bottom: 2px solid transparent;
}

.mode-tab:hover { color: var(--gray-900); background: var(--gray-100); }
.mode-tab.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
    background: white;
}

.login-content { padding: 2rem 2.25rem 2.5rem; }

.hint-box {
    background: var(--primary-glow);
    border-left: 4px solid var(--primary);
    border-radius: var(--radius-md);
    padding: 1rem;
    font-size: 0.8125rem;
    color: var(--gray-700);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.hint-box strong { color: var(--primary); }

.login-footer {
    text-align: center;
    padding: 0 2rem 2rem;
    font-size: 0.8125rem;
    color: var(--gray-400);
}

/* ─── Notifications Page ────────────────────────────────────────────────── */
.notif-card {
    background: white;
    border-radius: 8px;
    padding: 16px 20px;
    margin-bottom: 12px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
    border-left: 5px solid #ccc;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.notif-card.unread    { border-left-color: #007bff; background: #f0f7ff; }
.notif-card.broadcast { border-left-color: #28a745; }
.notif-message { font-size: 1.05em; color: #333; margin: 0; }
.notif-meta    { font-size: 0.82em; color: #888; }
.notif-file    { margin-top: 6px; }
.notif-file a  {
    display: inline-flex; align-items: center; gap: 6px;
    background: #f8f9fa; border: 1px solid #dee2e6;
    border-radius: 4px; padding: 6px 12px;
    font-size: 0.9em; color: #007bff; text-decoration: none;
}
.notif-file a:hover { background: #e2e6ea; }

.broadcast-form {
    background: white;
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border-top: 4px solid #6610f2;
}
.broadcast-form h3 { margin-top: 0; color: #6610f2; }
.broadcast-form textarea {
    width: 100%; padding: 10px; border: 2px solid #e0e0e0;
    border-radius: 6px; font-size: 14px; resize: vertical;
    box-sizing: border-box;
}
.broadcast-form textarea:focus { outline: none; border-color: #6610f2; }
.file-hint { font-size: 0.82em; color: #666; margin-top: 4px; }

/* ─── Vacant Rooms Page ─────────────────────────────────────────────────── */
.room-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.room-card {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    border-top: 4px solid #28a745;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.room-card h3 { margin: 0; color: #333; }

.room-card .details {
    font-size: 0.9em;
    color: #666;
    flex: 1;
}

.room-card .count-big {
    font-size: 1.5em;
    font-weight: 700;
    color: #28a745;
}

/* ─── Allocate Room: rent radio selectors ───────────────────────────────── */
.rent-options { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }

.rent-option {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    background: white;
    border: 2px solid #ddd;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    gap: 12px;
}
.rent-option:hover { border-color: #007bff; background: #f0f7ff; }
.rent-option input[type="radio"] { width: auto; margin: 0; }
.rent-option.selected,
.rent-option:has(input[type="radio"]:checked) {
    border-color: #007bff;
    background: #f0f7ff;
}
.rent-option .rent-label { font-weight: 700; flex: 1; }
.rent-option .rent-note  { font-size: 0.85em; color: #888; }

/* ═══════════════════════════════════════════════════════════════════════════
   ROOM PROFILE PAGE STYLES  (v2)
   ═══════════════════════════════════════════════════════════════════════════ */

/* Breadcrumb */
.prof-breadcrumb {
    font-size: .85em;
    color: #888;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.prof-breadcrumb a { color: #007bff; text-decoration: none; }
.prof-breadcrumb a:hover { text-decoration: underline; }

/* ── Profile Header ─────────────────────────────────────────────────────── */
.prof-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #0f0c29, #302b63, #24243e);
    color: white;
    padding: 28px 32px;
    border-radius: 16px;
    margin-bottom: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    gap: 20px;
    flex-wrap: wrap;
}
.prof-header-left { display:flex; align-items:center; gap:20px; }
.prof-room-icon   { font-size:3.8em; line-height:1; filter:drop-shadow(0 2px 4px rgba(0,0,0,.4)); }
.prof-room-number { font-size:2.4em; font-weight:800; margin:0; letter-spacing:1px; }
.prof-room-meta   { color:rgba(255,255,255,.65); font-size:.9em; margin-top:5px; }
.prof-header-right { display:flex; gap:14px; flex-wrap:wrap; }

.prof-stat {
    text-align: center;
    background: rgba(255,255,255,.12);
    padding: 14px 18px;
    border-radius: 12px;
    min-width: 100px;
    border: 1px solid rgba(255,255,255,.15);
    backdrop-filter: blur(6px);
}
.prof-stat.stat-due     { background:rgba(220,53,69,.35); border-color:rgba(220,53,69,.5); }
.prof-stat.stat-advance { background:rgba(23,162,184,.3); border-color:rgba(23,162,184,.5); }
.prof-stat.stat-clear   { background:rgba(40,167,69,.3);  border-color:rgba(40,167,69,.5);  }
.prof-stat-val { font-size:1.35em; font-weight:700; color:#fff; }
.prof-stat-lbl { font-size:.7em; color:rgba(255,255,255,.6); text-transform:uppercase; letter-spacing:.5px; margin-top:3px; }

/* ── Profile Tabs ─────────────────────────────────────────────────────────── */
.prof-tabs {
    display: flex;
    align-items: center;
    gap: 4px;
    background: white;
    padding: 8px 12px;
    border-radius: 12px;
    margin-bottom: 18px;
    box-shadow: 0 2px 8px rgba(0,0,0,.07);
    overflow-x: auto;
}
.prof-tab {
    padding: 9px 18px;
    color: #555;
    border-radius: 8px;
    background: transparent;
    font-size: .88em;
    white-space: nowrap;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all .2s;
    position: relative;
}
.prof-tab:hover { background:#f2f4f8; color:#333; }
.prof-tab.active {
    background: linear-gradient(135deg,#667eea,#764ba2);
    color: white;
    box-shadow: 0 4px 14px rgba(102,126,234,.4);
}

/* ── Tab panels animation ───────────────────────────────────────────────── */
.tab-panel { animation: fadeSlide .18s ease; }
@keyframes fadeSlide {
    from { opacity:0; transform:translateY(8px); }
    to   { opacity:1; transform:translateY(0);   }
}

/* ── Info Table ──────────────────────────────────────────────────────────── */
.info-table { width:100%; border-collapse:collapse; box-shadow:none; background:transparent; }
.info-table td { padding:9px 6px; border-bottom:1px solid #f4f4f4; vertical-align:middle; }
.info-table td:first-child {
    font-weight:600; color:#888; font-size:.82em;
    text-transform:uppercase; letter-spacing:.3px; width:42%;
}
.info-table tr:last-child td { border-bottom:none; }

/* ── Profile Badges ──────────────────────────────────────────────────────── */
.prof-badge {
    display: inline-block; padding:5px 14px; border-radius:20px;
    font-size:.78em; font-weight:700; text-transform:uppercase; letter-spacing:.5px;
}
.prof-occ   { background:linear-gradient(135deg,#f6d365,#fda085); color:#7d3800; }
.prof-vac   { background:linear-gradient(135deg,#84fab0,#8fd3f4); color:#064d38; }
.prof-maint { background:linear-gradient(135deg,#a18cd1,#fbc2eb); color:#4a004e; }

/* ── Status button group ─────────────────────────────────────────────────── */
.status-btn-group { display:flex; flex-direction:column; gap:10px; }
.status-btn-group .btn { text-align:left; }
.status-btn-group .btn:disabled { opacity:.5; cursor:default; }
.cur-lbl { font-size:.75em; opacity:.75; }

/* ── Empty state ─────────────────────────────────────────────────────────── */
.empty-state {
    text-align: center; padding: 70px 20px;
    background: white; border-radius: 12px;
    box-shadow: 0 2px 6px rgba(0,0,0,.06);
}
.empty-icon { font-size:3.5em; margin-bottom:12px; }
.empty-state h3 { color:#aaa; margin:0 0 8px; }
.empty-state p  { color:#bbb; font-size:.9em; margin:0; }

/* ── Delete button in table ─────────────────────────────────────────────── */
.btn-del { background:none; border:none; cursor:pointer; font-size:1em; padding:2px 6px; }
.btn-del:hover { transform:scale(1.2); }

/* ── 12-Month Calendar Grid ─────────────────────────────────────────────── */
.month-grid {
    display: grid;
    grid-template-columns: repeat(6,1fr);
    gap: 10px;
    background: white;
    padding: 18px;
    border-radius: 12px;
    margin-bottom: 16px;
    box-shadow: 0 2px 6px rgba(0,0,0,.07);
}
.month-cell {
    padding: 14px 6px;
    border-radius: 10px;
    text-align: center;
    transition: all .2s;
    border: 2px solid transparent;
}
.mc-name   { font-weight:700; font-size:.85em; margin-bottom:6px; }
.mc-status { font-size:.72em; font-weight:600; }
.mc-amount { font-size:.7em; margin-top:5px; opacity:.8; }

.month-cell.paid    { background:#d4edda; color:#155724; border-color:#b8dacc; }
.month-cell.charged { background:#fff3cd; color:#7d5a00; border-color:#ffd97d; }
.month-cell.unpaid  { background:#f4f5f7; color:#bbb;    border-color:#e4e6ea; }
.month-cell.slider-sel {
    background: linear-gradient(135deg,rgba(102,126,234,.15),rgba(118,75,162,.15));
    color: #3d3d9e; border-color:#667eea;
    box-shadow: 0 0 0 3px rgba(102,126,234,.2);
    transform: scale(1.05);
}
/* Legend swatches */
.month-cell-demo {
    display:inline-block; width:13px; height:13px; border-radius:3px;
    vertical-align:middle; margin-right:4px; border:1.5px solid rgba(0,0,0,.1);
}
.month-cell-demo.paid       { background:#d4edda; }
.month-cell-demo.charged    { background:#fff3cd; }
.month-cell-demo.unpaid     { background:#f4f5f7; }
.month-cell-demo.slider-sel { background:rgba(102,126,234,.25); border-color:#667eea; }

/* ── Slider Card ─────────────────────────────────────────────────────────── */
.slider-card {
    border: none;
    background: linear-gradient(135deg,#f8f9ff,#fff);
    border-top: 5px solid #667eea;
    margin-bottom: 16px;
}
.slider-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 6px;
}
.slider-summary-box {
    background: white;
    border: 2px solid #e0e4f5;
    border-radius: 10px;
    padding: 10px 18px;
    text-align: center;
    min-width: 120px;
}

/* ── Slider track ────────────────────────────────────────────────────────── */
.slider-wrapper { position:relative; padding-bottom:26px; }

.slider-track-labels {
    display: flex;
    justify-content: space-between;
    font-size: .65em;
    color: #aaa;
    font-weight: 600;
    margin-bottom: 6px;
    padding: 0 2px;
    text-transform: uppercase;
}

.slider-wrapper input[type="range"] {
    width: 100%;
    height: 12px;
    border-radius: 6px;
    appearance: none;
    -webkit-appearance: none;
    background: linear-gradient(90deg,#667eea,#764ba2);
    border: none;
    margin-bottom: 0;
    padding: 0;
    cursor: pointer;
    box-shadow: 0 3px 10px rgba(102,126,234,.35);
}
.slider-wrapper input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 28px; height: 28px;
    border-radius: 50%;
    background: white;
    border: 4px solid #667eea;
    cursor: pointer;
    box-shadow: 0 3px 12px rgba(102,126,234,.5);
    transition: transform .15s, border-color .15s;
}
.slider-wrapper input[type="range"]::-webkit-slider-thumb:hover { transform:scale(1.2); border-color:#764ba2; }
.slider-wrapper input[type="range"]::-moz-range-thumb {
    width:28px; height:28px; border-radius:50%;
    background:white; border:4px solid #667eea;
    cursor:pointer; box-shadow:0 3px 12px rgba(102,126,234,.5);
}
.slider-wrapper input[type="range"]::-ms-thumb {
    width:28px; height:28px; border-radius:50%;
    background:white; border:4px solid #667eea;
}

.slider-display-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f0f2ff;
    border: 2px solid #dde2f8;
    border-radius: 10px;
    padding: 12px 18px;
    font-size: .93em;
    color: #444;
}
.slider-display-icon { font-size:1.3em; }

/* ═══════════════════════════════════════════════════════════════════
   DASHBOARD – Teal stat card + Month info bar + Toast
   ═══════════════════════════════════════════════════════════════════ */
.stat-card.teal {
    background: linear-gradient(135deg, #17a2b8, #138496);
    color: white;
}
.stat-card.teal h3 { color: white; }

.month-info-bar {
    background: linear-gradient(135deg, #e8f4f8, #d6eaf8);
    border: 1px solid #bee5eb;
    border-radius: 10px;
    padding: 10px 20px;
    margin: 0 20px 8px;
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: .9em;
    color: #117a8b;
}
.month-bar-tip {
    color: #5a9cad;
    font-size: .85em;
}

/* Toast notification */
.pay-toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    padding: 12px 22px;
    border-radius: 10px;
    font-size: .93em;
    font-weight: 600;
    box-shadow: 0 6px 24px rgba(0,0,0,.18);
    animation: slideUp .25s ease;
}
.toast-success { background: #28a745; color: white; }
.toast-error   { background: #dc3545; color: white; }
@keyframes slideUp {
    from { transform: translateY(20px); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
}

/* ═══════════════════════════════════════════════════════════════════
   DASHBOARD – Month checkbox column
   ═══════════════════════════════════════════════════════════════════ */
.month-col { text-align: center; vertical-align: middle; }

.month-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    user-select: none;
    padding: 4px 8px;
    border-radius: 8px;
    transition: background .15s;
}
.month-toggle:hover { background: #f0f4ff; }

/* Hide native checkbox, use label emoji as visual */
.month-toggle input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}
.month-toggle-label {
    font-size: 1.3em;
    line-height: 1;
    cursor: pointer;
    transition: transform .15s;
}
.month-toggle:hover .month-toggle-label { transform: scale(1.2); }
.month-toggle input:disabled + .month-toggle-label { opacity: .5; cursor: not-allowed; }

/* Column header */
#month-col-header {
    background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
    color: #2e7d32;
    font-size: .82em;
    white-space: nowrap;
}

/* ═══════════════════════════════════════════════════════════════════
   ROOM PROFILE – Current-month banner
   ═══════════════════════════════════════════════════════════════════ */
.cur-month-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 0 20px 16px;
    padding: 14px 20px;
    border-radius: 12px;
    border-left: 5px solid transparent;
    flex-wrap: wrap;
}
.cmb-paid    { background: #d4edda; border-left-color: #28a745; }
.cmb-charged { background: #fff3cd; border-left-color: #ffc107; }
.cmb-unpaid  { background: #f8d7da; border-left-color: #dc3545; }

.cmb-left  { display: flex; align-items: center; gap: 14px; }
.cmb-right { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

.cmb-icon  { font-size: 1.8em; line-height: 1; }

.cmb-title {
    font-weight: 700;
    font-size: 1em;
    color: #333;
}
.cmb-sub {
    font-size: .85em;
    color: #555;
    margin-top: 3px;
}
.cmb-paid    .cmb-title { color: #155724; }
.cmb-charged .cmb-title { color: #856404; }
.cmb-unpaid  .cmb-title { color: #721c24; }

/* ═══════════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════════ */
@media (max-width:768px) {
    .prof-header { flex-direction:column; align-items:flex-start; }
    .prof-header-right { width:100%; gap:10px; }
    .month-grid { grid-template-columns:repeat(3,1fr); }
    .prof-tabs  { flex-wrap:nowrap; overflow-x:scroll; }
    .slider-card-header { flex-direction:column; }
    .cur-month-banner { flex-direction: column; align-items: flex-start; }
    .month-info-bar { flex-direction: column; align-items: flex-start; gap: 4px; }
}
