:root{
  --bg:#d9e9ff;
  --lime:#b8f36b;
  --text:#0f172a;
  --muted:#64748b;
  --line:#e2e8f0;
}
*{box-sizing:border-box}
body{margin:0;font-family:Inter,Arial,sans-serif;background:linear-gradient(180deg,#9cc0f4 0%,#dceaff 100%);color:var(--text)}
a{text-decoration:none}
.login-page{min-height:100vh;display:flex;align-items:center;justify-content:center;padding:24px}
.login-card{width:100%;max-width:420px;border-radius:28px;background:#fff;box-shadow:0 25px 70px rgba(15,23,42,.18);padding:34px;border:1px solid #eef2f7}
.login-card h2{font-weight:800;margin-bottom:8px}
.login-card p{color:var(--muted)}
.app-shell{display:flex;max-width:1440px;margin:28px auto;background:#fff;border-radius:38px;overflow:hidden;min-height:900px;box-shadow:0 28px 80px rgba(15,23,42,.2);border:1px solid #dbe5f1}
.sidebar{width:108px;background:#050505;color:#fff;padding:26px 14px;display:flex;flex-direction:column;align-items:center}
.brand-circle{width:52px;height:52px;border-radius:50%;background:#fff;color:#000;display:flex;align-items:center;justify-content:center;font-size:26px;font-weight:700;margin-bottom:26px}
.sidebar-nav{display:flex;flex-direction:column;gap:14px;width:100%}
.nav-pill{display:flex;flex-direction:column;align-items:center;gap:8px;color:#fff;border-radius:18px;padding:12px 6px;font-size:12px;opacity:.95}
.nav-pill.active,.nav-pill:hover{background:#1e1e1e;color:#b8f36b}
.main-panel{flex:1;display:flex;flex-direction:column;background:#fff}
.topbar{display:flex;justify-content:space-between;align-items:center;padding:28px 34px;border-bottom:1px solid var(--line)}
.topbar h1{margin:0;font-size:34px;font-weight:800}
.topbar p{margin:4px 0 0;color:var(--muted)}
.topbar-user{display:flex;align-items:center;gap:16px}
.user-meta{display:flex;flex-direction:column;align-items:flex-end}
.user-meta span{font-size:12px;color:var(--muted)}
.content-wrap{padding:24px 28px 30px}
.btn-lime{background:var(--lime);border:none;color:#111827;font-weight:700;border-radius:16px;padding:12px 20px}
.search-row{display:grid;grid-template-columns:3fr 1.3fr 1.2fr 1.3fr auto;gap:12px;margin-bottom:18px}
.card-shell{background:#fff;border:1px solid var(--line);border-radius:28px;box-shadow:0 8px 30px rgba(15,23,42,.05)}
.floor-layout{display:grid;grid-template-columns:2.5fr 1fr;gap:18px}
.floor-board{position:relative;min-height:690px;padding:20px;border-radius:28px;background:#f8fafc;border:1px solid var(--line);overflow:hidden}
.floor-grid{position:absolute;inset:0;background-image:radial-gradient(circle, rgba(71,85,105,.12) 1px, transparent 1px);background-size:16px 16px;opacity:.65}
.floor-toolbar{position:relative;z-index:2;display:flex;gap:10px;margin-bottom:14px}
.floor-toolbar .btn{border-radius:12px}
.floor-space{position:relative;z-index:2;height:610px;border:2px solid #cfd8e3;border-radius:18px;background:rgba(255,255,255,.7)}
.room-box{position:absolute;border:3px solid #cbd5e1;background:#fff;border-radius:16px;box-shadow:0 8px 20px rgba(15,23,42,.08);padding:12px;display:flex;flex-direction:column;justify-content:center;align-items:center;cursor:pointer;transition:.2s}
.room-box:hover{transform:translateY(-2px);box-shadow:0 12px 24px rgba(15,23,42,.12)}
.room-box.selected{outline:4px solid rgba(184,243,107,.5)}
.room-status{width:16px;height:16px;border-radius:50%;display:inline-block;margin-right:8px}
.status-available{background:#84cc16}.status-booked{background:#f59e0b}.status-blocked{background:#94a3b8}
.room-1{left:40px;top:90px;width:250px;height:170px;background:#fde7b3;border-color:#f8c755}
.room-2{left:380px;top:72px;width:180px;height:130px}
.room-3{left:620px;top:72px;width:180px;height:130px}
.legend-bar{position:absolute;left:18px;right:18px;bottom:18px;z-index:2;display:flex;gap:22px;align-items:center;background:rgba(255,255,255,.96);border:1px solid var(--line);border-radius:18px;padding:14px 18px;box-shadow:0 8px 20px rgba(15,23,42,.06)}
.detail-panel{padding:18px}
.room-image{height:180px;border-radius:20px;background:linear-gradient(120deg,#d8ecff,#eef5ff);display:flex;align-items:center;justify-content:center;color:#64748b;font-weight:700;border:1px solid var(--line)}
.badge-soft{display:inline-block;padding:8px 12px;border-radius:999px;background:#f1f5f9;font-size:13px;margin:4px 6px 0 0;color:#334155}
.slot-row{display:flex;justify-content:space-between;align-items:center;background:#f8fafc;border-radius:14px;padding:12px 14px;margin-bottom:10px;border:1px solid #edf2f7;font-size:14px}
.table-wrap{background:#fff;border:1px solid var(--line);border-radius:24px;padding:18px}
.form-control,.form-select{border-radius:14px;padding:12px 14px;border-color:#dbe3ee}
.form-label{font-weight:600}
.small-muted{font-size:13px;color:var(--muted)}
.alert{border-radius:16px}
@media (max-width: 1200px){.floor-layout{grid-template-columns:1fr}.search-row{grid-template-columns:1fr 1fr}.app-shell{margin:0;border-radius:0;min-height:100vh}.sidebar{width:84px}.topbar h1{font-size:28px}}
@media (max-width: 768px){.topbar{padding:18px;flex-direction:column;align-items:flex-start;gap:14px}.content-wrap{padding:18px}.search-row{grid-template-columns:1fr}.room-1,.room-2,.room-3{position:relative;left:auto;top:auto;width:100%;margin-bottom:12px;height:120px}.floor-space{height:auto;padding:16px;display:flex;flex-direction:column}.legend-bar{position:relative;left:auto;right:auto;bottom:auto;margin-top:12px;flex-wrap:wrap}}
