/* ============================================
   VAPT LAB - Bright White Theme
   ============================================ */
* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: #f7f9fc;
  color: #1f2937;
  min-height: 100vh;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

/* ---------- Layout ---------- */
.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 32px 20px 64px;
}

.container-narrow {
  max-width: 420px;
  margin: 0 auto;
  padding: 80px 20px 40px;
}

/* ---------- Navbar ---------- */
.navbar {
  background: #ffffff;
  border-bottom: 1px solid #e5e7eb;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 10;
  box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}
.navbar .brand {
  font-weight: 700;
  font-size: 18px;
  color: #111827;
  display: flex;
  align-items: center;
  gap: 8px;
}
.navbar .brand .dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: #06b6d4; box-shadow: 0 0 0 4px #dcfce7;
}
.navbar nav { display: flex; gap: 6px; flex-wrap: wrap; }
.navbar nav a {
  padding: 8px 14px;
  border-radius: 8px;
  text-decoration: none;
  color: #4b5563;
  font-size: 14px;
  font-weight: 500;
  transition: all .15s;
}
.navbar nav a:hover { background: #f3f4f6; color: #111827; }
.navbar nav a.active { background: #eff6ff; color: #2563eb; }

/* ---------- Cards ---------- */
.card {
  background: #ffffff;
  border: 1px solid #eef0f4;
  border-radius: 14px;
  padding: 28px;
  box-shadow: 0 1px 2px rgba(16,24,40,0.04), 0 4px 16px rgba(16,24,40,0.04);
  margin-bottom: 20px;
}
.card h2 {
  font-size: 22px;
  font-weight: 700;
  color: #111827;
  margin-bottom: 4px;
}
.card h3 {
  font-size: 16px;
  font-weight: 600;
  color: #111827;
  margin: 18px 0 10px;
}
.card p.subtitle {
  color: #6b7280;
  font-size: 14px;
  margin-bottom: 20px;
}

/* ---------- Forms ---------- */
label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #374151;
  margin-bottom: 6px;
}
input[type=text], input[type=password], input[type=file], textarea, select {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  font-size: 14px;
  font-family: inherit;
  background: #fafbfc;
  color: #111827;
  transition: all .15s;
  margin-bottom: 16px;
}
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: #3b82f6;
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(59,130,246,0.12);
}
textarea { min-height: 90px; resize: vertical; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 11px 20px;
  border: none;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: all .15s;
  font-family: inherit;
}
.btn-primary {
  background: #2563eb;
  color: #fff;
  box-shadow: 0 1px 2px rgba(37,99,235,0.35);
}
.btn-primary:hover { background: #1d4ed8; transform: translateY(-1px); }
.btn-ghost {
  background: #f3f4f6;
  color: #374151;
}
.btn-ghost:hover { background: #e5e7eb; }
.btn-danger { background: #ef4444; color: #fff; }
.btn-danger:hover { background: #dc2626; }
.btn-block { width: 100%; }

/* ---------- Alert ---------- */
.alert {
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 14px;
  margin-bottom: 16px;
  border: 1px solid;
}
.alert-error { background: #fef2f2; color: #b91c1c; border-color: #fecaca; }
.alert-info  { background: #eff6ff; color: #1d4ed8; border-color: #bfdbfe; }
.alert-success { background: #f0fdf4; color: #15803d; border-color: #bbf7d0; }

/* ---------- Badges ---------- */
.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .4px;
}
.badge-admin { background: #fef3c7; color: #92400e; }
.badge-user  { background: #e0e7ff; color: #3730a3; }
.badge-vuln  { background: #fee2e2; color: #991b1b; }

/* ---------- Comments list ---------- */
.comment {
  padding: 14px 16px;
  border: 1px solid #eef0f4;
  border-radius: 10px;
  background: #fafbfc;
  margin-bottom: 10px;
}
.comment .meta {
  font-size: 12px;
  color: #6b7280;
  margin-bottom: 4px;
  font-weight: 600;
}
.comment .body { font-size: 14px; color: #111827; word-break: break-word; }

/* ---------- Code / Output ---------- */
pre {
  background: #0f172a;
  color: #e2e8f0;
  padding: 16px;
  border-radius: 10px;
  overflow-x: auto;
  font-family: "JetBrains Mono", Consolas, Monaco, monospace;
  font-size: 13px;
  line-height: 1.6;
  margin-top: 10px;
}

/* ---------- Grid ---------- */
.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }

/* ---------- Hero (login) ---------- */
.hero {
  text-align: center;
  margin-bottom: 24px;
}
.hero .logo {
  width: 56px; height: 56px;
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  color: #fff;
  margin-bottom: 12px;
  box-shadow: 0 8px 24px rgba(37,99,235,0.35);
}
.hero h1 { font-size: 24px; color: #111827; margin-bottom: 4px; }
.hero p  { font-size: 14px; color: #6b7280; }

/* ---------- Tooltip / hint ---------- */
.hint {
  font-size: 12px;
  color: #9ca3af;
  margin-top: -10px;
  margin-bottom: 14px;
}
.hint code {
  background: #f3f4f6;
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 11px;
  color: #6b7280;
}

/* ---------- Table ---------- */
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid #eef0f4; }
th { color: #6b7280; font-weight: 600; font-size: 12px; text-transform: uppercase; }
td a { color: #2563eb; text-decoration: none; font-weight: 500; }
td a:hover { text-decoration: underline; }

/* ---------- Footer ---------- */
.footer {
  text-align: center;
  color: #9ca3af;
  font-size: 12px;
  padding: 24px 0;
}

/* ---------- Utilities ---------- */
.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 16px; }
.mb-0 { margin-bottom: 0; }
.text-muted { color: #6b7280; font-size: 13px; }
.flex-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* ---------- Rebranding: SupportHub ---------- */
.hero .logo {
  background: linear-gradient(135deg, #06b6d4, #2563eb);
  box-shadow: 0 8px 24px rgba(6, 182, 212, 0.35);
}
.navbar .brand .dot {
  background: #06b6d4;
  box-shadow: 0 0 0 4px #cffafe;
}
.brand-tagline {
  font-size: 11px;
  color: #9ca3af;
  font-weight: 500;
  margin-left: 6px;
  padding-left: 8px;
  border-left: 1px solid #e5e7eb;
}