/* Modern Dark Admin UI */
:root{
  --bg:#0b1220;
  --card:#0f1a33;
  --text:#e8eefc;
  --muted:#9fb1d1;
  --accent:#6d5efc;
  --accent2:#23d5ab;
  --shadow: 0 10px 40px rgba(0,0,0,.35);
  --radius: 18px;
}

*{box-sizing:border-box}
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial;
  color:var(--text);
  background: radial-gradient(900px 400px at 20% 10%, rgba(109,94,252,.25), transparent),
              radial-gradient(900px 400px at 80% 20%, rgba(35,213,171,.18), transparent),
              var(--bg);
}

.bg{
  display:flex;
  min-height:100vh;
  align-items:center;
  justify-content:center;
  padding:24px;
}

.login-card{
  width: 420px;
  max-width: 95vw;
  background: rgba(15,26,51,.85);
  border: 1px solid rgba(255,255,255,.06);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
  padding: 22px;
  backdrop-filter: blur(10px);
}

.brand{ text-align:center; margin-bottom:16px;}
.logo{
  width:56px;height:56px;border-radius:16px;
  display:inline-flex;align-items:center;justify-content:center;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  font-size:26px; box-shadow: var(--shadow);
}
.brand h1{margin:10px 0 2px 0; font-size:20px}
.brand p{margin:0; color:var(--muted); font-size:13px}

.form{display:grid; gap:10px}
label{font-size:12px; color:var(--muted)}
input, .select{
  padding:12px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(10,18,36,.7);
  color: var(--text);
  outline:none;
}
input:focus,.select:focus{border-color: rgba(109,94,252,.6)}

.btn{
  margin-top:8px;
  padding:12px 14px;
  border:0;
  border-radius: 14px;
  color:white;
  font-weight:700;
  cursor:pointer;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
}
.btn:hover{filter:brightness(1.05)}

.alert{
  background: rgba(255,75,75,.12);
  border: 1px solid rgba(255,75,75,.25);
  color:#ffd0d0;
  padding:10px 12px;
  border-radius: 14px;
  margin: 10px 0;
  font-size: 13px;
}

.hint{margin-top:12px;color:var(--muted);font-size:12px;text-align:center}
.muted{color:var(--muted)}
.tiny{font-size:12px}

.sidebar{
  position:fixed;
  left:0; top:0; bottom:0;
  width: 260px;
  padding: 18px;
  border-right: 1px solid rgba(255,255,255,.06);
  background: rgba(7,12,24,.6);
  backdrop-filter: blur(12px);
}
.sidebar-title{
  font-weight:900;
  letter-spacing:.4px;
  margin-bottom:14px;
}
.sidebar-footer{position:absolute; bottom:18px; left:18px; right:18px; opacity:.85}

.nav{
  display:block;
  padding: 10px 12px;
  border-radius: 14px;
  color: var(--muted);
  text-decoration:none;
  margin-bottom:8px;
  border: 1px solid transparent;
}
.nav:hover{background: rgba(255,255,255,.05); color: var(--text);}
.nav.active{border-color: rgba(109,94,252,.35); background: rgba(109,94,252,.12); color: var(--text);}

.main{
  margin-left:260px;
  padding: 22px;
}

.topbar{
  display:flex;
  gap:10px;
  justify-content:flex-end;
  margin-bottom: 16px;
}

.pill{
  font-size: 12px;
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.08);
  color: var(--muted);
}

.grid{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.grid-2{
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.card{
  background: rgba(15,26,51,.75);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px;
}

.card h2{margin:0 0 12px 0; font-size:16px}

.kpi{display:flex; gap:14px}
.kpi-label{font-size:12px;color:var(--muted)}
.kpi-value{font-size:28px;font-weight:900}

.kv{display:flex; justify-content:space-between; padding:8px 0; border-bottom:1px solid rgba(255,255,255,.06)}
.kv:last-child{border-bottom:0}
.kv span{color:var(--muted)}

.table{width:100%; border-collapse: collapse; font-size: 13px}
.table th,.table td{padding:10px 8px; border-bottom: 1px solid rgba(255,255,255,.06); text-align:left}
.table th{color: var(--muted); font-weight: 700}

.phpinfo{overflow:auto; max-height: 75vh}

.tools{display:flex; gap:10px; flex-wrap:wrap}
.tool{
  display:inline-block;
  padding:10px 12px;
  border-radius: 14px;
  border:1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.05);
  color: var(--text);
  text-decoration:none;
  font-weight:700;
}
.tool:hover{border-color: rgba(109,94,252,.35); background: rgba(109,94,252,.12);}

.badge{
  display:inline-block;
  padding:4px 8px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
  font-size: 12px;
  color: var(--muted);
}

.logbox{
  background: rgba(10,18,36,.65);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 14px;
  padding: 12px;
  max-height: 520px;
  overflow:auto;
  font-size: 12px;
}

.row{display:flex; gap:10px; margin-bottom:10px}

@media (max-width: 980px){
  .grid,.grid-2{grid-template-columns:1fr}
  .sidebar{position:static; width:auto}
  .main{margin-left:0}
  .sidebar-footer{position:static}
}
