@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

:root {
  --sidebar-bg: #0d1526;
  --sidebar-hover: rgba(255,255,255,0.05);
  --sidebar-active-bg: rgba(59,130,246,0.1);
  --sidebar-active-border: #3b82f6;
  --sidebar-text: #64748b;
  --sidebar-text-active: #f1f5f9;
  --sidebar-text-hover: #cbd5e1;
  --sidebar-width: 224px;

  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --primary-light: #eff6ff;
  --success: #059669;
  --success-light: #f0fdf4;
  --warning: #d97706;
  --warning-light: #fffbeb;
  --danger: #dc2626;
  --danger-light: #fef2f2;
  --info: #0891b2;
  --info-light: #ecfeff;

  --bg: #f5f7fa;
  --card: #ffffff;
  --border: #e2e8f0;
  --border-light: #f1f5f9;
  --text: #0f172a;
  --text-muted: #64748b;
  --text-light: #94a3b8;

  --shadow-xs: 0 1px 2px rgba(15,23,42,0.06);
  --shadow-sm: 0 1px 3px rgba(15,23,42,0.08), 0 1px 2px rgba(15,23,42,0.04);
  --shadow-md: 0 4px 8px rgba(15,23,42,0.06), 0 2px 4px rgba(15,23,42,0.04);
  --shadow-lg: 0 12px 24px rgba(15,23,42,0.08), 0 4px 8px rgba(15,23,42,0.04);

  --radius: 6px;
  --radius-md: 8px;
  --radius-lg: 10px;
  --radius-xl: 14px;
  --transition: 0.15s ease;
}

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

body {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  font-size: 13.5px;
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

/* ── APP LAYOUT ── */
.app-wrapper { display: flex; min-height: 100vh; }

/* ── SIDEBAR ── */
.sidebar {
  width: var(--sidebar-width);
  background: var(--sidebar-bg);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0;
  height: 100vh;
  z-index: 100;
  border-right: 1px solid rgba(255,255,255,0.04);
}

.sidebar-logo {
  padding: 20px 16px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  display: flex;
  align-items: center;
  gap: 10px;
}

.sidebar-logo .logo-mark {
  width: 28px; height: 28px;
  background: var(--primary);
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

.sidebar-logo .logo-mark svg { color: #fff; }

.sidebar-logo .logo-text {
  color: #f1f5f9;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: -0.3px;
  line-height: 1.2;
}

.sidebar-logo .logo-sub {
  color: var(--sidebar-text);
  font-size: 10.5px;
  font-weight: 400;
  letter-spacing: 0.2px;
}

.sidebar-nav {
  list-style: none;
  padding: 12px 8px;
  flex: 1;
  overflow-y: auto;
}

.sidebar-nav li + li { margin-top: 1px; }

.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 10px;
  border-radius: var(--radius-md);
  color: var(--sidebar-text);
  text-decoration: none;
  font-weight: 500;
  font-size: 13px;
  transition: all var(--transition);
  border-left: 2px solid transparent;
  position: relative;
}

.sidebar-nav a:hover {
  background: var(--sidebar-hover);
  color: var(--sidebar-text-hover);
}

.sidebar-nav a.active {
  background: var(--sidebar-active-bg);
  color: var(--sidebar-text-active);
  border-left-color: var(--sidebar-active-border);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.sidebar-nav a svg {
  width: 15px; height: 15px;
  opacity: 0.6;
  flex-shrink: 0;
  stroke-width: 1.75;
}

.sidebar-nav a.active svg,
.sidebar-nav a:hover svg { opacity: 1; }

.sidebar-section-label {
  padding: 16px 10px 4px;
  color: rgba(100,116,139,0.6);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.sidebar-footer {
  padding: 10px 8px 14px;
  border-top: 1px solid rgba(255,255,255,0.05);
}

.sidebar-user {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 10px;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background var(--transition);
}

.sidebar-user:hover { background: var(--sidebar-hover); }

.user-avatar {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: #1e3a5f;
  border: 1px solid rgba(255,255,255,0.1);
  color: #93c5fd;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 600;
  font-size: 11.5px;
  flex-shrink: 0;
}

.user-info .user-name {
  color: #e2e8f0;
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.3;
}

.user-info .user-role {
  color: var(--sidebar-text);
  font-size: 10.5px;
}

/* ── MAIN CONTENT ── */
.main-content {
  margin-left: var(--sidebar-width);
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ── TOPBAR ── */
.topbar {
  background: var(--card);
  border-bottom: 1px solid var(--border);
  padding: 0 28px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 50;
}

.topbar-left h1 {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.2px;
}

.topbar-right { display: flex; align-items: center; gap: 10px; }

.topbar-date {
  font-size: 12px;
  color: var(--text-muted);
  padding: 5px 10px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

/* ── PAGE CONTENT ── */
.page-content { padding: 24px 28px; flex: 1; }

/* ── CARDS ── */
.card {
  background: var(--card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-xs);
}

.card-header {
  padding: 15px 18px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-title {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.1px;
}

.card-body { padding: 18px; }

/* ── STAT CARDS ── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}

.stat-card {
  background: var(--card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: 18px 20px;
  box-shadow: var(--shadow-xs);
}

.stat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.stat-label-top {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.stat-icon-sm {
  width: 28px; height: 28px;
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
}

.stat-icon-sm svg { width: 14px; height: 14px; stroke-width: 2; }

.stat-icon-sm.blue { background: var(--primary-light); color: var(--primary); }
.stat-icon-sm.green { background: var(--success-light); color: var(--success); }
.stat-icon-sm.yellow { background: var(--warning-light); color: var(--warning); }
.stat-icon-sm.red { background: var(--danger-light); color: var(--danger); }
.stat-icon-sm.teal { background: var(--info-light); color: var(--info); }

.stat-value {
  font-size: 26px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -1px;
  line-height: 1;
}

.stat-meta {
  font-size: 11.5px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ── TABLES ── */
.table-wrapper { overflow-x: auto; }

table { width: 100%; border-collapse: collapse; font-size: 13px; }

thead th {
  padding: 10px 14px;
  text-align: left;
  font-weight: 600;
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: #fafbfc;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

tbody td {
  padding: 11px 14px;
  border-bottom: 1px solid var(--border-light);
  color: var(--text);
  vertical-align: middle;
}

tbody tr:last-child td { border-bottom: none; }
tbody tr:hover { background: #fafbfc; }

.table-empty {
  text-align: center;
  padding: 48px 20px;
  color: var(--text-muted);
}

.table-empty-icon {
  width: 40px; height: 40px;
  margin: 0 auto 12px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-light);
}

.table-empty p { font-size: 13px; color: var(--text-muted); }
.table-empty p.sub { font-size: 12px; color: var(--text-light); margin-top: 4px; }

/* ── BADGES ── */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.1px;
}

.badge-success { background: var(--success-light); color: #065f46; border: 1px solid #a7f3d0; }
.badge-warning { background: var(--warning-light); color: #92400e; border: 1px solid #fcd34d; }
.badge-danger { background: var(--danger-light); color: #991b1b; border: 1px solid #fca5a5; }
.badge-info { background: var(--info-light); color: #164e63; border: 1px solid #a5f3fc; }
.badge-neutral { background: #f8fafc; color: var(--text-muted); border: 1px solid var(--border); }
.badge-primary { background: var(--primary-light); color: #1e40af; border: 1px solid #bfdbfe; }

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  white-space: nowrap;
  text-decoration: none;
  font-family: inherit;
  letter-spacing: -0.1px;
}

.btn svg { width: 14px; height: 14px; stroke-width: 2; flex-shrink: 0; }

.btn:active { transform: scale(0.98); }

.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 1px 2px rgba(37,99,235,0.3); }
.btn-primary:hover { background: var(--primary-hover); }
.btn-success { background: var(--success); color: #fff; box-shadow: 0 1px 2px rgba(5,150,105,0.3); }
.btn-success:hover { background: #047857; }
.btn-danger { background: var(--danger); color: #fff; box-shadow: 0 1px 2px rgba(220,38,38,0.3); }
.btn-danger:hover { background: #b91c1c; }
.btn-warning { background: var(--warning); color: #fff; }
.btn-warning:hover { background: #b45309; }

.btn-outline {
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--text);
  box-shadow: var(--shadow-xs);
}

.btn-outline:hover { background: var(--bg); border-color: #cbd5e1; }

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  padding: 5px 8px;
}

.btn-ghost:hover { background: var(--bg); color: var(--text); }

.btn-sm { padding: 5px 10px; font-size: 12px; }
.btn-icon { padding: 6px; }
.btn-icon svg { width: 14px; height: 14px; }

/* ── FORMS ── */
.form-group { margin-bottom: 14px; }

.form-label {
  display: block;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 5px;
  letter-spacing: -0.1px;
}

.form-label .req { color: var(--danger); margin-left: 2px; }

.form-control {
  width: 100%;
  padding: 7px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 13px;
  color: var(--text);
  background: var(--card);
  transition: border-color var(--transition), box-shadow var(--transition);
  font-family: inherit;
  line-height: 1.5;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37,99,235,0.08);
}

.form-control::placeholder { color: var(--text-light); }
select.form-control { cursor: pointer; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px; }

textarea.form-control { resize: vertical; min-height: 80px; }

/* ── MODAL ── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(9,18,38,0.5);
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-overlay.active { display: flex; }

.modal {
  background: var(--card);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  animation: modalIn 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-lg { max-width: 740px; }
.modal-sm { max-width: 400px; }

@keyframes modalIn {
  from { opacity: 0; transform: scale(0.97) translateY(-6px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-header {
  padding: 18px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-title {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.2px;
}

.modal-close {
  width: 28px; height: 28px;
  border: 1px solid var(--border);
  background: var(--card);
  border-radius: var(--radius);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1;
  transition: all var(--transition);
}

.modal-close:hover { background: var(--bg); color: var(--text); }

.modal-body { padding: 20px; overflow-y: auto; flex: 1; }

.modal-footer {
  padding: 14px 20px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

/* ── SECTION HEADINGS IN MODALS ── */
.form-section-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.7px;
  margin-bottom: 12px;
  margin-top: 4px;
}

/* ── FILTER BAR ── */
.filter-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
  background: #fafbfc;
}

.search-box { position: relative; flex: 1; min-width: 200px; }

.search-box input {
  width: 100%;
  padding: 7px 10px 7px 32px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 13px;
  background: var(--card);
  font-family: inherit;
  color: var(--text);
  transition: all var(--transition);
}

.search-box input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37,99,235,0.08);
}

.search-box .search-icon {
  position: absolute;
  left: 9px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-light);
  width: 14px; height: 14px;
  stroke-width: 2;
}

/* ── AVATAR ── */
.avatar {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: #dbeafe;
  color: #1d4ed8;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 600;
  font-size: 11.5px;
  flex-shrink: 0;
  border: 1px solid rgba(0,0,0,0.06);
}

.avatar-sm { width: 26px; height: 26px; font-size: 10px; }
.avatar-lg { width: 44px; height: 44px; font-size: 15px; }

.avatar-green { background: #d1fae5; color: #065f46; }
.avatar-yellow { background: #fef3c7; color: #92400e; }
.avatar-red { background: #fee2e2; color: #991b1b; }
.avatar-purple { background: #ede9fe; color: #4c1d95; }
.avatar-teal { background: #cffafe; color: #164e63; }

/* ── TOAST ── */
.toast-container {
  position: fixed;
  bottom: 24px; right: 24px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toast {
  background: var(--card);
  border-radius: var(--radius-md);
  box-shadow: 0 8px 24px rgba(9,18,38,0.12), 0 2px 6px rgba(9,18,38,0.06);
  border: 1px solid var(--border);
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 280px;
  max-width: 360px;
  animation: toastIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes toastIn {
  from { opacity: 0; transform: translateY(8px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.toast-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.toast.success .toast-dot { background: var(--success); }
.toast.error .toast-dot { background: var(--danger); }
.toast.warning .toast-dot { background: var(--warning); }
.toast.info .toast-dot { background: var(--primary); }
.toast-msg { font-size: 13px; color: var(--text); font-weight: 500; flex: 1; line-height: 1.4; }

/* ── PAGE HEADER ── */
.page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 18px;
}

.page-header h2 {
  font-size: 19px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.5px;
}

.page-header p { font-size: 12.5px; color: var(--text-muted); margin-top: 2px; }

/* ── TAB BUTTONS ── */
.tab-bar {
  display: flex;
  gap: 2px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 3px;
  width: fit-content;
  margin-bottom: 16px;
}

.tab-btn {
  padding: 5px 14px;
  border-radius: var(--radius);
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
  border: none;
  background: transparent;
  color: var(--text-muted);
  transition: all var(--transition);
  font-family: inherit;
}

.tab-btn.active {
  background: var(--card);
  color: var(--text);
  box-shadow: var(--shadow-xs);
  border: 1px solid var(--border);
}

/* ── MISC UTILITIES ── */
.divider { height: 1px; background: var(--border); margin: 14px 0; }

.text-center { text-align: center; }
.text-right { text-align: right; }
.text-muted { color: var(--text-muted); }
.text-sm { font-size: 12px; }
.font-semibold { font-weight: 600; }
.font-mono { font-family: 'JetBrains Mono', 'Fira Code', monospace; }

.mb-4 { margin-bottom: 16px; }
.mb-6 { margin-bottom: 20px; }
.mt-4 { margin-top: 16px; }

.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.flex-1 { flex: 1; }

.info-list { list-style: none; }
.info-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 9px 0;
  border-bottom: 1px solid var(--border-light);
  font-size: 13px;
}
.info-list li:last-child { border-bottom: none; }
.info-list li span:first-child { color: var(--text-muted); font-size: 12.5px; }
.info-list li span:last-child { font-weight: 500; text-align: right; }

/* ── LOADING ── */
.loading {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px;
  color: var(--text-muted);
  gap: 10px;
  font-size: 13px;
}

.spinner {
  width: 18px; height: 18px;
  border: 1.5px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.65s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ── LOGIN PAGE ── */
.login-page { min-height: 100vh; display: flex; background: var(--card); }

.login-panel {
  width: 460px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 64px 52px;
  border-right: 1px solid var(--border);
}

.login-visual {
  flex: 1;
  background: #0d1526;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 56px;
  position: relative;
  overflow: hidden;
}

.login-visual::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 50%, rgba(37,99,235,0.15) 0%, transparent 60%),
              radial-gradient(ellipse at 70% 80%, rgba(5,150,105,0.08) 0%, transparent 50%);
}

.login-visual-grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 40px 40px;
}

.login-visual-content { position: relative; z-index: 1; }

.login-visual h2 {
  font-size: 28px;
  font-weight: 700;
  color: #f1f5f9;
  letter-spacing: -0.7px;
  line-height: 1.25;
  margin-bottom: 12px;
}

.login-visual p {
  color: #64748b;
  font-size: 14px;
  line-height: 1.7;
  max-width: 380px;
}

.login-visual-stats {
  display: flex;
  gap: 24px;
  margin-top: 32px;
}

.login-stat { border-top: 1px solid rgba(255,255,255,0.08); padding-top: 16px; }
.login-stat-value { font-size: 22px; font-weight: 700; color: #f1f5f9; letter-spacing: -0.5px; }
.login-stat-label { font-size: 11.5px; color: #475569; margin-top: 2px; }

.login-wordmark {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 40px;
}

.login-wordmark .mark {
  width: 32px; height: 32px;
  background: var(--primary);
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
}

.login-wordmark .mark svg { color: #fff; width: 16px; height: 16px; }

.login-wordmark .name {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.3px;
}

.login-panel h1 {
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.5px;
  margin-bottom: 4px;
}

.login-panel .subtitle { color: var(--text-muted); margin-bottom: 28px; font-size: 13.5px; }

.login-btn {
  width: 100%;
  padding: 9px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: var(--radius-md);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
  margin-top: 8px;
  font-family: inherit;
  letter-spacing: -0.1px;
}

.login-btn:hover { background: var(--primary-hover); }
.login-btn:active { transform: scale(0.99); }

.login-error {
  background: var(--danger-light);
  border: 1px solid #fca5a5;
  color: #991b1b;
  border-radius: var(--radius-md);
  padding: 9px 12px;
  font-size: 12.5px;
  margin-bottom: 14px;
  display: none;
}

.login-hint {
  margin-top: 20px;
  padding: 12px 14px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 12px;
  color: var(--text-muted);
}

.login-hint code {
  font-family: 'JetBrains Mono', monospace;
  background: var(--card);
  border: 1px solid var(--border);
  padding: 1px 5px;
  border-radius: 4px;
  color: var(--text);
  font-size: 11.5px;
}

/* ── DASHBOARD ACTIVITY ── */
.activity-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-light);
}
.activity-row:last-child { border-bottom: none; }

.activity-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  margin-top: 5px;
  flex-shrink: 0;
}
.activity-dot.blue { background: var(--primary); }
.activity-dot.green { background: var(--success); }
.activity-dot.yellow { background: var(--warning); }

.activity-text { font-size: 13px; color: var(--text); flex: 1; line-height: 1.45; }
.activity-time { font-size: 11.5px; color: var(--text-light); margin-top: 2px; }

/* ── PAYSLIP ── */
.payslip { max-width: 620px; margin: 0 auto; font-size: 13px; }
.payslip-header {
  text-align: center;
  margin-bottom: 22px;
  padding-bottom: 18px;
  border-bottom: 2px solid var(--border);
}

.payslip-header h2 { font-size: 18px; font-weight: 700; color: var(--text); letter-spacing: -0.3px; }
.payslip-header .period { font-size: 12.5px; color: var(--text-muted); margin-top: 4px; }

.payslip-info { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 18px; }
.payslip-section h4 { font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.7px; color: var(--text-muted); font-weight: 600; margin-bottom: 8px; }

.payslip-table { width: 100%; border-collapse: collapse; margin-bottom: 14px; }
.payslip-table th, .payslip-table td { padding: 9px 11px; border: 1px solid var(--border); font-size: 12.5px; }
.payslip-table th { background: #fafbfc; font-weight: 600; font-size: 11px; text-transform: uppercase; letter-spacing: 0.4px; color: var(--text-muted); }
.payslip-table .total-row { background: #f8fafc; font-weight: 600; }
.payslip-table .net-row { background: var(--primary); color: #fff; font-weight: 700; font-size: 14px; }

/* ── PREVIEW BOX ── */
.preview-box {
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px;
  margin-top: 6px;
}

.preview-box .preview-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 10px;
}

.preview-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px 0;
  font-size: 12.5px;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-light);
}
.preview-row:last-child { border-bottom: none; }
.preview-row.total { color: var(--text); font-weight: 700; font-size: 14px; padding-top: 10px; }
.preview-row.total span:last-child { color: var(--success); }
.preview-row.deduct span:last-child { color: var(--danger); }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .sidebar { transform: translateX(-100%); }
  .sidebar.open { transform: translateX(0); }
  .main-content { margin-left: 0; }
  .login-panel { width: 100%; padding: 40px 24px; border-right: none; }
  .login-visual { display: none; }
  .form-grid, .form-grid-3 { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .page-content { padding: 16px; }
}
