/* hospital.css — uses your existing tokens/feel */
:root {
  --brand: #0fb3b9;
  --brand-600: #00a6ad;
  --bg: #f7fbfb;
  --card: #ffffff;
  --muted: #6b7280;
  --radius: 12px;
  --shadow: 0 8px 24px rgba(11,22,27,0.06);
  --maxw: 1100px;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
}
*{box-sizing:border-box}
html,body{height:100%;margin:0;background:var(--bg);color:#052033}
.container{max-width:var(--maxw);margin:0 auto;padding:20px}
.site-header{position:sticky;top:0;z-index:120;background:var(--card);border-bottom:1px solid #eef2f7}
.header-row{display:flex;align-items:center;justify-content:space-between;padding:14px 20px}
.brand{display:flex;align-items:center;gap:12px;text-decoration:none;color:inherit}
.brand-mark{width:44px;height:44px;border-radius:10px;background:linear-gradient(180deg,var(--brand),var(--brand-600));color:#fff;display:flex;align-items:center;justify-content:center;font-weight:700}
.brand-name{font-weight:700;font-size:30px;color:#00BCD5}
.header-nav{display:flex;gap:14px;align-items:center}
.nav-link{color:var(--muted);text-decoration:none;font-weight:600}
.nav-link.active{color:#052033}
.icon-btn{background:transparent;border:0;padding:8px;border-radius:8px;cursor:pointer}
.main-content{padding-top:28px;padding-bottom:36px}

.card{background:var(--card);border:1px solid #eef2f7;border-radius:12px;padding:16px;margin-bottom:16px;box-shadow:var(--shadow)}
.title{margin:0 0 4px;font-size:20px;font-weight:800}
.section-title{margin:0 0 10px;font-size:18px;font-weight:800}
.muted{color:var(--muted)}
.small{font-size:12px}

.grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.field{display:flex;flex-direction:column;gap:6px}
.field input,.field select{padding:10px;border-radius:10px;border:1px solid #e9f2f4;background:#fff}
.actions{grid-column:1/-1;display:flex;gap:10px}

.btn{border-radius:12px;padding:10px 14px;text-decoration:none;display:inline-flex;align-items:center;gap:8px;font-weight:700;border:1px solid rgba(8,22,25,0.06)}
.btn.primary{background:var(--brand);color:#fff}
.btn.secondary{background:#fff;color:#052033}
.avatar{width:56px;height:56px;border-radius:10px;object-fit:cover;border:1px solid #eef2f7}

.hospital-head{display:flex;align-items:center;justify-content:space-between;gap:12px}
.head-left{display:flex;align-items:center;gap:12px}
.head-right{display:flex;gap:10px;flex-wrap:wrap}

.stats-row{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin-top:12px}
.stat{background:#fff;border:1px solid #eef2f7;border-radius:12px;padding:10px;text-align:center}
.stat-num{font-size:20px;font-weight:800}

.list{display:grid;gap:10px}
.dept-row{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;border:1px solid #eef2f7;border-radius:12px;padding:12px;background:#fff}
.dept-main{display:flex;flex-direction:column;gap:4px}
.dept-actions{display:flex;gap:8px;flex-wrap:wrap}

.modal{position:fixed;inset:0;display:none;z-index:300}
.modal[aria-hidden="false"]{display:block}
.modal-card{position:absolute;left:50%;top:80px;transform:translateX(-50%);width:92%;max-width:720px;background:#fff;border-radius:12px;box-shadow:0 20px 50px rgba(8,22,25,0.12);padding:12px;border:1px solid #eef2f7}
.modal-head{display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #eef2f7;padding-bottom:8px;margin-bottom:8px}
.modal-title{font-weight:800}
.overlay{position:fixed;inset:0;background:rgba(2,6,23,0.45);z-index:250;display:none}
.overlay.show{display:block}

.queue-list{display:grid;gap:8px;max-height:60vh;overflow:auto}
.queue-row{display:flex;align-items:center;justify-content:space-between;border:1px solid #eef2f7;border-radius:10px;padding:10px;background:#fff}

.qrwrap{display:flex;flex-direction:column;align-items:center;gap:10px}

.taskbar{position:fixed;left:0;right:0;bottom:0;height:64px;background:#fff;border-top:1px solid #eef2f7;display:flex;align-items:center;justify-content:space-around;z-index:200;padding:0 8px}
.taskbar-item{flex:1;height:48px;margin:0 6px;border-radius:12px;background:#fff;display:flex;flex-direction:column;align-items:center;justify-content:center;border:1px solid #eef2f7;color:var(--muted);text-decoration:none;font-size:12px;gap:4px}
.taskbar-item i{font-size:16px}
main,.main-content,.site-footer{padding-bottom:90px}

@media (max-width:780px){
  .grid{grid-template-columns:1fr}
  .hospital-head{flex-direction:column;align-items:flex-start}
  .stats-row{grid-template-columns:repeat(2,1fr)}
}
