:root {
  --navy-950: #141a24;
  --navy-900: #1f2937;
  --navy-800: #2b3444;
  --green-600: #159a4a;
  --green-500: #22c55e;
  --green-100: #e8f7ef;
  --gray-100: #f3f5f7;
  --gray-200: #e7eaee;
  --red-600: #dc2626;
  --red-100: #fee2e2;
  --text-body: #3f4753;
  --text-muted: #6b7280;
  --radius-md: 12px;
  --radius-lg: 18px;
  --shadow-sm: 0 2px 8px rgba(31,41,55,.06);
  --shadow-md: 0 8px 24px rgba(31,41,55,.10);
}
* , *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; width: 100%; max-width: 100%; overflow-x: hidden; }
body {
  font-family: "Nunito", system-ui, sans-serif;
  background: var(--gray-100);
  color: var(--text-body);
  line-height: 1.5;
}
h1, h2, h3 { font-family: "Poppins", "Nunito", sans-serif; color: var(--navy-900); margin: 0 0 .4em; }
.hidden { display: none !important; }

/* ---------- Login ---------- */
.login-screen {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  background: linear-gradient(135deg, var(--navy-950), var(--navy-900));
}
.login-card {
  background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-md);
  padding: 36px 32px; width: 100%; max-width: 380px;
}
.login-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 24px; font-weight: 800; font-size: 18px; color: var(--navy-900); }
.login-brand .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--green-500); }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 6px; color: var(--navy-900); }
.field input {
  width: 100%; padding: 11px 14px; border-radius: 10px; border: 1px solid var(--gray-200);
  font-size: 15px; font-family: inherit;
}
.field input:focus { outline: 2px solid var(--green-500); outline-offset: 1px; }
.pw-wrap { position: relative; }
.pw-wrap input { padding-right: 42px; }
.pw-toggle {
  position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  background: none; border: none; cursor: pointer; font-size: 16px;
  padding: 8px; line-height: 1; opacity: .55; border-radius: 8px;
}
.pw-toggle:hover { opacity: .9; background: var(--gray-100); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; padding: 12px 20px; border-radius: 999px; border: none;
  font-weight: 700; font-size: 15px; cursor: pointer;
  background: linear-gradient(135deg, var(--green-500), var(--green-600)); color: #fff;
  transition: box-shadow .15s, opacity .15s;
}
.btn:hover { box-shadow: var(--shadow-md); }
.btn:disabled { opacity: .6; cursor: not-allowed; }
.btn-secondary { background: var(--gray-100); color: var(--navy-900); }
.error-msg { background: var(--red-100); color: var(--red-600); padding: 10px 14px; border-radius: 10px; font-size: 13.5px; margin-bottom: 14px; }
.hint { font-size: 13px; color: var(--text-muted); margin-top: 14px; text-align: center; }

/* ---------- App shell ---------- */
.app-header {
  background: #fff; border-bottom: 1px solid var(--gray-200);
  padding: 14px 24px; display: flex; align-items: center; justify-content: space-between;
  position: sticky; top: 0; z-index: 10;
}
.app-header .brand { display: flex; align-items: center; gap: 10px; font-weight: 800; color: var(--navy-900); }
.app-header .brand .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--green-500); }
.app-main { max-width: 1200px; margin: 0 auto; padding: 24px; }
.logout-btn { background: none; border: 1px solid var(--gray-200); border-radius: 999px; padding: 8px 16px; font-size: 13px; font-weight: 700; cursor: pointer; color: var(--text-body); }
.logout-btn:hover { background: var(--gray-100); }

.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 20px; }
.toolbar select {
  padding: 9px 14px; border-radius: 10px; border: 1px solid var(--gray-200); font-size: 14px; font-family: inherit; background: #fff;
}

.cards-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 16px; margin-bottom: 28px; }
.stat-card { background: #fff; border-radius: var(--radius-md); padding: 18px 20px; box-shadow: var(--shadow-sm); }
.stat-card .label { font-size: 12.5px; color: var(--text-muted); font-weight: 700; text-transform: uppercase; letter-spacing: .02em; margin-bottom: 6px; }
.stat-card .value { font-size: 26px; font-weight: 800; color: var(--navy-900); font-family: "Poppins", sans-serif; }
.stat-card .sub { font-size: 12.5px; color: var(--text-muted); margin-top: 4px; word-break: break-all; }

.panel { background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); padding: 20px; margin-bottom: 24px; overflow-x: auto; }
.panel h2 { font-size: 16px; }
table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 480px; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--gray-200); }
th { font-size: 12px; text-transform: uppercase; letter-spacing: .02em; color: var(--text-muted); font-weight: 700; }
tr:last-child td { border-bottom: none; }
.empty-state { color: var(--text-muted); font-size: 14px; padding: 12px 0; }

.comment-item { border: 1px solid var(--gray-200); border-radius: var(--radius-md); padding: 14px 16px; margin-bottom: 12px; }
.comment-meta { font-size: 12.5px; color: var(--text-muted); margin-bottom: 6px; }
.comment-body { font-size: 14.5px; margin-bottom: 10px; }
.comment-actions { display: flex; gap: 8px; }
.comment-actions button { padding: 7px 16px; border-radius: 999px; border: none; font-weight: 700; font-size: 13px; cursor: pointer; }
.btn-approve { background: var(--green-100); color: var(--green-600); }
.btn-reject { background: var(--red-100); color: var(--red-600); }

@media (max-width: 640px) {
  .app-main { padding: 16px; }
  .app-header { padding: 12px 16px; }
}
