/* ── Fonts & Base ─────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

*, *::before, *::after { box-sizing: border-box; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: #f1f5f9;
  color: #0f172a;
}

/* ── Navbar ───────────────────────────────────────────────── */
.navbar {
  background: #1e293b;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  height: 60px;
}

/* ── Login Page ───────────────────────────────────────────── */
.login-page {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  min-height: 100vh;
}

.login-card {
  width: 400px;
  border-radius: 16px;
  background: white;
}

.login-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  font-size: 1.8rem;
  color: white;
}

/* ── Stat Cards ───────────────────────────────────────────── */
.stat-card {
  border-radius: 12px;
  background: white;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.stat-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}
.bg-primary-soft { background: #ede9fe; }
.bg-success-soft { background: #dcfce7; }
.bg-danger-soft  { background: #fee2e2; }
.bg-warning-soft { background: #fef9c3; }

.stat-value {
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1;
  color: #0f172a;
}
.stat-label {
  font-size: 0.75rem;
  color: #64748b;
  margin-top: 2px;
}

/* ── Site Cards ───────────────────────────────────────────── */
.site-card {
  border-radius: 14px;
  border: 1px solid #e2e8f0;
  background: white;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
  transition: box-shadow 0.2s, transform 0.2s;
  overflow: hidden;
}
.site-card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
  transform: translateY(-2px);
}

.site-card .card-header {
  background: white;
  border-bottom: 1px solid #f1f5f9;
  padding: 1rem 1.25rem 0.75rem;
}

.site-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 2px;
}
.site-domain {
  font-size: 0.78rem;
  color: #64748b;
  text-decoration: none;
}
.site-domain:hover { color: #6366f1; text-decoration: underline; }

/* Status badges */
.status-badge {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}
.status-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.status-running  { background: #dcfce7; color: #16a34a; }
.status-exited   { background: #fee2e2; color: #dc2626; }
.status-missing  { background: #f1f5f9; color: #64748b; }

/* Credentials box */
.cred-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 0.5rem 0.75rem;
  font-family: 'SFMono-Regular', 'Consolas', monospace;
  font-size: 0.82rem;
}

.cred-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #94a3b8;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
}

.btn-icon {
  padding: 2px 6px;
  font-size: 0.78rem;
  line-height: 1.4;
  border-radius: 6px;
}

/* Action buttons row */
.action-row .btn {
  font-size: 0.78rem;
  padding: 0.3rem 0.5rem;
  border-radius: 8px;
}
@media (max-width: 400px) {
  .action-row .btn-label { display: none; }
}

/* ── Terminal ─────────────────────────────────────────────── */
.terminal-header {
  background: #1e293b;
  border-radius: 10px 10px 0 0;
  padding: 0.5rem 0.75rem;
}
.terminal-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
  opacity: 0.8;
}
.terminal-body {
  background: #0f172a;
  color: #a3e635;
  font-family: 'SFMono-Regular', 'Consolas', 'Monaco', monospace;
  font-size: 0.8rem;
  line-height: 1.5;
  padding: 1rem;
  min-height: 200px;
  max-height: 400px;
  overflow-y: auto;
  border-radius: 0 0 10px 10px;
  white-space: pre-wrap;
  word-break: break-all;
}
.terminal-logs {
  min-height: 400px;
  max-height: 60vh;
  border-radius: 0;
}

/* ── Success icon ─────────────────────────────────────────── */
.success-icon { font-size: 3rem; }

/* ── Empty state ──────────────────────────────────────────── */
.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  color: #94a3b8;
}
.empty-state i { font-size: 3rem; margin-bottom: 1rem; display: block; }

/* ── Publish steps ────────────────────────────────────────── */
.step-num {
  width: 28px; height: 28px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.8rem; font-weight: 700; flex-shrink: 0;
}
.dns-table { background: white; border-radius: 8px; overflow: hidden; border: 1px solid #e2e8f0; }
.dns-row {
  display: flex; align-items: center; padding: 0.4rem 0.75rem;
  border-bottom: 1px solid #f1f5f9; gap: 1rem;
}
.dns-row:last-child { border-bottom: none; }
.dns-label { font-size: 0.75rem; color: #64748b; width: 130px; flex-shrink: 0; }
.dns-row code { font-size: 0.82rem; color: #7c3aed; }

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 576px) {
  .login-card { width: 100%; margin: 1rem; }
  .navbar-brand { font-size: 1rem; }
}
