/* /public_html/assets/css/dashboard.css */

/* ── Theme */
:root{
  --primary:#18b5ae;
  --accent:#58dd6a;
  --text:#0f2a2a;
  --muted:#6b7c7c;
  --bg:#ffffff;
  --surface:#ffffff;
  --border:#e9ecef;
  --shadow:0 10px 26px rgba(0,0,0,.08);
}

/* ── Reset / base */
*{box-sizing:border-box}
html,body{height:100%;margin:0}
body{
  font-family:Inter,system-ui,-apple-system,Segoe UI,Roboto,Arial;
  color:var(--text);
  background:var(--bg);
}

/* ── Layout */
.topbar{
  position:sticky; top:0; z-index:10;
  background:linear-gradient(135deg,#fff,rgba(255,255,255,.92));
  backdrop-filter:saturate(1.2) blur(8px);
  border-bottom:1px solid var(--border);
  padding:14px 18px;
}
.topbar h1{margin:0;font-size:20px;letter-spacing:.2px}

.wrap{
  max-width:1100px;margin:20px auto;padding:0 16px;
  display:grid; grid-template-columns:1fr; gap:16px;
}

/* ── Card */
.card{
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:16px;
  box-shadow:var(--shadow);
  padding:16px;
}
.card h2{margin:4px 0 10px;font-size:18px}

/* ── Table */
.table{width:100%;border-collapse:collapse;font-size:14px}
.table thead th{
  text-align:left; font-weight:700; color:#234; background:#fafbfc;
  border-bottom:1px solid var(--border); padding:10px
}
.table td{
  border-bottom:1px solid var(--border);
  padding:10px; vertical-align:middle;
}
.table tr:hover td{background:#fbfdfd}

/* ── Buttons */
button,.btn{
  --btn-bg:linear-gradient(135deg,var(--primary),var(--accent));
  --btn-fg:#fff;
  appearance:none; border:none; cursor:pointer; user-select:none;
  padding:10px 14px; border-radius:12px;
  background:var(--btn-bg); color:var(--btn-fg);
  box-shadow:0 10px 22px rgba(24,181,174,.18);
  transition:transform .15s ease, box-shadow .15s ease, opacity .15s ease;
}
button:hover,.btn:hover{transform:translateY(-1px)}
button:disabled,.btn:disabled{opacity:.6; cursor:not-allowed}

.btn-ghost{
  background:transparent; color:#0b6b64; border:1px solid #cde5e3;
  padding:8px 12px; border-radius:10px; box-shadow:none;
}
.btn-ghost:hover{background:#f3fbfa}

.deployBtn{
  background:linear-gradient(135deg,#f8fafc,#eef8f7);
  color:#0c3d3c; border:1px solid #dfe9e8; box-shadow:none;
}
.deployBtn:hover{background:#eaf5f3}

/* ── Details panel */
.details-panel{
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:16px;
  box-shadow:var(--shadow);
  padding:14px;
}
.details-head{
  display:flex; align-items:center; justify-content:space-between;
  gap:8px; margin-bottom:10px;
}
.details-body{font-size:14px; color:#233}
.details-body .actions{margin-top:12px}

/* ── Forms in tables */
.table input{
  width:100%; max-width:320px; padding:8px 10px; font-size:14px;
  border:1px solid #d9e2e1; border-radius:10px; outline:none;
  transition:border-color .15s, box-shadow .15s;
}
.table input:focus{border-color:var(--primary); box-shadow:0 0 0 3px rgba(24,181,174,.12)}
.table input[type="checkbox"]{width:auto; max-width:none}

/* ── Utilities */
.spacer{height:8px}

@media (min-width:900px){
  .wrap{grid-template-columns:2fr 1fr}
}
