/* Admin panel styles — matches blue/purple theme */
:root{--bg:#0f172a;--panel:#fff;--muted:#64748b;--accent:#2563eb;--accent-2:#7c3aed}
body{margin:0;font-family:Inter,system-ui,Arial;background:linear-gradient(180deg,#f7f9fb,#fff);color:#0f172a}
.admin-login-page{display:flex;align-items:center;justify-content:center;height:100vh}
.login-panel{width:380px;background:#fff;padding:2rem;border-radius:12px;box-shadow:0 20px 60px rgba(10,30,80,0.08);text-align:left}
.login-panel h1{margin:0 0 .25rem}
.login-panel .muted{color:var(--muted)}
.login-panel input{width:100%;padding:.6rem;border-radius:8px;border:1px solid rgba(15,23,42,0.06);margin-top:.5rem}
.login-panel .actions{margin-top:1rem;display:flex;justify-content:flex-end}

/* Dashboard layout */
.sidebar{position:fixed;left:0;top:0;bottom:0;width:220px;background:linear-gradient(180deg,var(--accent),var(--accent-2));color:#fff;padding:1.25rem;display:flex;flex-direction:column;justify-content:space-between}
.sidebar .brand{font-weight:800;margin-bottom:1rem}
.sidebar .menu a{display:block;color:rgba(255,255,255,0.95);text-decoration:none;padding:.6rem 0;border-radius:6px}
.sidebar .menu a.active, .sidebar .menu a:hover{background:rgba(255,255,255,0.06)}
.sidebar-footer{margin-top:1rem}

.admin-main{margin-left:240px;padding:1.25rem}
.admin-header{display:flex;align-items:center;justify-content:space-between}
.summary-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:1rem}
.summary-grid .card{background:var(--panel);padding:1rem;border-radius:10px;box-shadow:0 10px 30px rgba(10,40,80,0.06);text-align:center}
.summary-grid .card h3{margin:0;font-size:1.6rem}

.panel{margin-top:1rem}
.panel-head{display:flex;justify-content:space-between;align-items:center}
.panel-actions{display:flex;gap:.5rem;align-items:center}
.panel-actions input, .panel-actions select{padding:.5rem;border-radius:8px;border:1px solid rgba(15,23,42,0.06)}
.table-wrap{margin-top:1rem;overflow:auto;background:#fff;border-radius:8px;padding:0.5rem;border:1px solid rgba(15,23,42,0.04)}
.table-wrap table{width:100%;border-collapse:collapse}
.table-wrap th, .table-wrap td{padding:.6rem;border-bottom:1px solid rgba(15,23,42,0.04);text-align:left}
.table-wrap tr.empty{color:var(--muted);text-align:center}

.hidden{display:none}
.modal{position:fixed;inset:0;display:none;align-items:center;justify-content:center;z-index:200}
.modal[aria-hidden="false"]{display:flex}
.modal-backdrop{position:fixed;inset:0;background:rgba(2,6,23,0.6)}
.modal-panel{background:#fff;padding:1rem;border-radius:8px;max-width:820px;width:94%;max-height:90vh;overflow:auto}
.modal-close{position:absolute;right:12px;top:12px;background:transparent;border:0;font-size:1.1rem;cursor:pointer}

.btn{display:inline-block;padding:.45rem .7rem;border-radius:8px;border:0;background:var(--accent);color:#fff;text-decoration:none;cursor:pointer}
.btn.outline{background:transparent;border:2px solid rgba(15,23,42,0.06);color:var(--muted)}
.btn.primary{background:linear-gradient(90deg,var(--accent),var(--accent-2));}

@media (max-width:900px){
  .sidebar{position:relative;width:100%;height:auto}
  .admin-main{margin-left:0}
  .summary-grid{grid-template-columns:repeat(2,1fr)}
}
@media (max-width:640px){
  .summary-grid{grid-template-columns:1fr}
}
