:root{
  /* Dark base */
  --bg:#070b08;
  --card:#0d1410;
  --card2:#0a120d;
  --text:#e8fff1;
  --muted:#9bb7a5;
  --line:#1a2b21;

  /* Green accents */
  --accent:#21d07a;
  --accent2:#10b864;
  --accentSoft: rgba(33,208,122,.25);

  /* Status */
  --danger:#ff6b6b;
  --ok:#21d07a;
  --warn:#ffd166;
}

*{ box-sizing:border-box; }
body{
  margin:0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial;
  background:
    radial-gradient(1200px 600px at 10% 0%, rgba(33,208,122,.08), transparent 60%),
    radial-gradient(900px 500px at 90% 10%, rgba(33,208,122,.06), transparent 55%),
    var(--bg);
  color:var(--text);
}

a{ color:var(--accent); text-decoration:none; }
a:hover{ color:var(--accent2); }

.container{ max-width:1100px; margin:24px auto; padding:0 16px; }

.card{
  background:linear-gradient(180deg, rgba(13,20,16,.95), rgba(10,18,13,.95));
  border:1px solid var(--line);
  border-radius:16px;
  padding:16px;
  box-shadow: 0 10px 30px rgba(0,0,0,.35);
}

.row{ display:flex; gap:12px; flex-wrap:wrap; }
.col{ flex:1; min-width:260px; }

label{
  display:block;
  margin-bottom:6px;
  color:var(--muted);
  font-size:13px;
}

input, select, textarea{
  width:100%;
  padding:10px 12px;
  border-radius:12px;
  border:1px solid var(--line);
  background:rgba(7,11,8,.75);
  color:var(--text);
  outline:none;
}
input:focus, select:focus, textarea:focus{
  border-color: rgba(33,208,122,.65);
  box-shadow: 0 0 0 3px rgba(33,208,122,.18);
}

button{
  width:100%;
  padding:10px 12px;
  border-radius:12px;
  border:1px solid rgba(33,208,122,.35);
  background: linear-gradient(180deg, rgba(33,208,122,.22), rgba(33,208,122,.10));
  color:var(--text);
  cursor:pointer;
}
button:hover{
  border-color: rgba(33,208,122,.65);
  box-shadow: 0 0 0 3px rgba(33,208,122,.12);
  filter:brightness(1.08);
}
button:active{ transform: translateY(1px); }

hr{ border:0; border-top:1px solid var(--line); margin:16px 0; }

.muted{ color:var(--muted); font-size:13px; }
.small{ font-size:12px; }

table{ width:100%; border-collapse:collapse; }
th, td{
  border-bottom:1px solid var(--line);
  padding:10px;
  text-align:left;
  font-size:14px;
  vertical-align:top;
}
th{ color: rgba(232,255,241,.9); font-weight:600; }

.badge{
  display:inline-block;
  padding:4px 10px;
  border:1px solid rgba(33,208,122,.25);
  border-radius:999px;
  font-size:12px;
  color: rgba(232,255,241,.85);
  background: rgba(33,208,122,.08);
}

.ok{ color:var(--ok); }
.err{ color:var(--danger); }
.warn{ color:var(--warn); }

code{
  background: rgba(7,11,8,.7);
  border:1px solid var(--line);
  padding:2px 6px;
  border-radius:10px;
}
pre{
  overflow:auto;
  background: rgba(7,11,8,.7);
  border:1px solid var(--line);
  padding:10px;
  border-radius:12px;
}

.hidden{ display:none; }
.right{ text-align:right; }
.mt16{ margin-top:16px; }
.mt12{ margin-top:12px; }

.copyrow{ display:flex; gap:10px; align-items:center; }
.copyrow input{ flex:1; }
.copybtn{ width:auto; white-space:nowrap; }

.layout{ display:flex; gap:16px; align-items:flex-start; }
.sidebar{ width:240px; position:sticky; top:16px; }
.nav{ display:flex; flex-direction:column; gap:10px; }

/* Sidebar buttons */
.nav button{
  text-align:left;
  background: rgba(7,11,8,.75);
  border:1px solid var(--line);
}
.nav button.active{
  border-color: rgba(33,208,122,.75);
  box-shadow: 0 0 0 3px rgba(33,208,122,.14);
}

.main{ flex:1; min-width:320px; }

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

.btn-danger{
  background: linear-gradient(180deg, rgba(255,107,107,.22), rgba(255,107,107,.10));
  border-color: rgba(255,107,107,.35);
}
.btn-danger:hover{
  border-color: rgba(255,107,107,.65);
  box-shadow: 0 0 0 3px rgba(255,107,107,.12);
}

.inline{ display:flex; gap:10px; align-items:center; }
.inline > *{ width:auto; }

/* ===== Auth / Login Layout (lock.php style) ===== */
.auth-wrap{
  min-height: 100vh;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:24px 16px;
}

.auth-card{
  width: 520px;
  max-width: 100%;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(13,20,16,.96), rgba(10,18,13,.96));
  border: 1px solid var(--line);
  box-shadow: 0 18px 60px rgba(0,0,0,.45);
  padding: 20px;
}

.auth-logo{
  display:flex;
  justify-content:center;
  margin-bottom: 10px;
}
.auth-logo img{
  max-width: 240px;
  height: auto;
  display:block;
}

.auth-title{
  text-align:center;
  font-weight: 700;
  font-size: 18px;
  margin: 8px 0 14px 0;
  letter-spacing: .2px;
}

.auth-form label{
  color: var(--muted);
  font-size: 13px;
  display:block;
  margin-bottom: 6px;
}

.auth-actions{
  display:flex;
  gap:10px;
  justify-content:center;
}

.btn-secondary{
  background: rgba(7,11,8,.72);
  border: 1px solid var(--line);
}
.btn-secondary:hover{
  border-color: rgba(33,208,122,.55);
  box-shadow: 0 0 0 3px rgba(33,208,122,.10);
}

.auth-divider{
  height:1px;
  background: var(--line);
  margin: 16px 0;
}

.auth-footer{
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  text-align:center;
  color: var(--muted);
  font-size: 12px;
}

/* progress bar */
progress{
  width:100%;
  height: 14px;
  border-radius: 999px;
  overflow:hidden;
  border: 1px solid var(--line);
  background: rgba(7,11,8,.7);
}
progress::-webkit-progress-bar{
  background: rgba(7,11,8,.7);
}
progress::-webkit-progress-value{
  background: linear-gradient(90deg, var(--accent), var(--accent2));
}
progress::-moz-progress-bar{
  background: linear-gradient(90deg, var(--accent), var(--accent2));
}
