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

:root {
  --primary:       #1a3c6e;
  --primary-light: #2a5298;
  --accent:        #e8f0fe;
  --border:        #d0d7e3;
  --text:          #1e2a3a;
  --muted:         #6b7a99;
  --bg:            #f0f4f9;
  --white:         #ffffff;
  --danger:        #c0392b;
  --success:       #1a7a4a;
  --add-btn:       #0d6efd;
  --remove-btn:    #dc3545;
  --radius:        8px;
  --shadow:        0 2px 12px rgba(26,60,110,0.10);
  --sidebar-w:     220px;
  --topbar-h:      64px;
}

body {
  font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.5;
}

/* ══════════════════════════════════════════════════════
   LOGIN / SIGNUP
══════════════════════════════════════════════════════ */
.login-page { background: #f0f4f9; min-height: 100vh; display: flex; align-items: center; justify-content: center; }
.login-center { width: 100%; display: flex; justify-content: center; padding: 24px 16px; }
.login-card { background: var(--white); border-radius: 14px; box-shadow: 0 8px 40px rgba(26,60,110,0.13); padding: 44px 40px 36px; width: 100%; max-width: 420px; }
.login-logo-row { display: flex; align-items: center; gap: 10px; margin-bottom: 28px; }
.login-logo-box { width: 40px; height: 40px; border-radius: 10px; background: linear-gradient(135deg, var(--primary), var(--primary-light)); display: flex; align-items: center; justify-content: center; }
.login-logo-text { font-size: 1.3rem; font-weight: 700; color: var(--primary); letter-spacing: 1px; }
.login-title    { font-size: 1.35rem; font-weight: 700; color: var(--text); margin-bottom: 4px; }
.login-subtitle { font-size: 0.85rem; color: var(--muted); margin-bottom: 28px; }
.login-footer { margin-top: 20px; text-align: center; font-size: 0.82rem; color: var(--muted); }
.lf-link { color: var(--primary-light); font-weight: 600; text-decoration: none; }
.lf-link:hover { text-decoration: underline; }
.lf-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.lf-label { font-size: 0.82rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 0.4px; }
.lf-input { width: 100%; padding: 10px 14px; border: 1.5px solid var(--border); border-radius: 8px; font-size: 0.92rem; color: var(--text); background: #fafbfd; outline: none; font-family: inherit; transition: border-color 0.2s, box-shadow 0.2s; }
.lf-input:focus { border-color: var(--primary-light); box-shadow: 0 0 0 3px rgba(42,82,152,0.12); background: var(--white); }
.lf-pass-wrap { position: relative; }
.lf-pass-wrap .lf-input { padding-right: 44px; }
.lf-eye { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); background: none; border: none; cursor: pointer; color: var(--muted); padding: 2px; display: flex; align-items: center; }
.lf-eye:hover { color: var(--primary); }
.lf-err { font-size: 0.78rem; color: var(--danger); display: none; margin-top: 2px; }
.lf-err.show { display: block; }
.lf-input.lf-valid   { border-color: #1a7a4a; background: #f0faf4; }
.lf-input.lf-invalid { border-color: var(--danger); background: #fdf4f4; }
.lf-input.lf-valid:focus   { box-shadow: 0 0 0 3px rgba(26,122,74,0.12); }
.lf-input.lf-invalid:focus { box-shadow: 0 0 0 3px rgba(192,57,43,0.12); }
.pw-rules { list-style: none; margin-top: 8px; padding: 10px 12px; background: #f8f9fb; border: 1px solid var(--border); border-radius: 7px; display: none; flex-direction: column; gap: 5px; }
.pw-rules li { font-size: 0.78rem; color: var(--muted); padding-left: 20px; position: relative; transition: color 0.2s; }
.pw-rules li::before { content: '○'; position: absolute; left: 0; font-size: 0.7rem; color: var(--muted); }
.pw-rules li.ok { color: #1a7a4a; }
.pw-rules li.ok::before { content: '✓'; color: #1a7a4a; font-weight: 700; }
.pw-rules li.fail { color: var(--danger); }
.pw-rules li.fail::before { content: '✗'; color: var(--danger); font-weight: 700; }
.lf-attempts { background: #fff8e1; border: 1px solid #f0c040; border-radius: 7px; padding: 9px 13px; font-size: 0.8rem; color: #7a5800; font-weight: 500; margin-bottom: 14px; }
.lf-lockout { display: flex; align-items: center; gap: 9px; background: #fdf4f4; border: 1.5px solid var(--danger); border-radius: 8px; padding: 11px 14px; font-size: 0.82rem; color: var(--danger); font-weight: 600; margin-bottom: 18px; }
.lf-lockout svg { flex-shrink: 0; }
@keyframes shake { 0%,100%{transform:translateX(0)} 20%{transform:translateX(-8px)} 40%{transform:translateX(8px)} 60%{transform:translateX(-5px)} 80%{transform:translateX(5px)} }
.login-card.shake { animation: shake 0.4s ease; }
.lf-submit { width: 100%; padding: 12px; background: linear-gradient(135deg, var(--primary), var(--primary-light)); color: var(--white); border: none; border-radius: 8px; font-size: 0.95rem; font-weight: 700; cursor: pointer; letter-spacing: 0.3px; transition: opacity 0.2s, transform 0.1s; box-shadow: 0 4px 14px rgba(26,60,110,0.25); margin-top: 6px; }
.lf-submit:hover { opacity: 0.92; transform: translateY(-1px); }
.lf-submit:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

/* ══════════════════════════════════════════════════════
   DASHBOARD LAYOUT
══════════════════════════════════════════════════════ */
.dash-body { background: #eef1f7; overflow: hidden; height: 100vh; }
.dash-layout { display: flex; height: 100vh; }
.sidebar { width: var(--sidebar-w); background: #111827; display: flex; flex-direction: column; flex-shrink: 0; height: 100vh; position: fixed; left: 0; top: 0; z-index: 100; }
.sb-brand { display: flex; align-items: center; justify-content: space-between; padding: 10px 12px; border-bottom: 1px solid rgba(255,255,255,0.07); min-height: 72px; }
.sb-logo-card { background: #fff; border-radius: 8px; padding: 5px 8px; display: flex; align-items: center; justify-content: center; flex: 1; margin-right: 8px; overflow: hidden; }
.sb-logo-img { height: 46px; width: auto; max-width: 160px; object-fit: contain; display: block; transition: opacity 0.2s; }
.sb-collapse-btn { background: rgba(255,255,255,0.08); border: none; color: rgba(255,255,255,0.6); width: 28px; height: 28px; border-radius: 6px; cursor: pointer; display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: background 0.15s, color 0.15s; }
.sb-collapse-btn:hover { background: rgba(255,255,255,0.18); color: #fff; }
.sb-brand-name { font-size: 1.1rem; font-weight: 700; color: #fff; letter-spacing: 1.5px; }
.sb-nav { flex: 1; padding: 16px 12px; display: flex; flex-direction: column; gap: 4px; }
.sb-link { display: flex; align-items: center; gap: 11px; padding: 10px 12px; border-radius: 8px; color: #9ca3af; text-decoration: none; font-size: 0.88rem; font-weight: 500; transition: background 0.15s, color 0.15s; }
.sb-link:hover { background: rgba(255,255,255,0.07); color: #fff; }
.sb-link.active { background: rgba(42,82,152,0.35); color: #fff; }
.sb-link svg { flex-shrink: 0; }
.sb-footer { padding: 12px; border-top: 1px solid rgba(255,255,255,0.07); }
.dash-main { margin-left: var(--sidebar-w); flex: 1; display: flex; flex-direction: column; height: 100vh; overflow: hidden; position: relative; }
.dash-topbar { height: var(--topbar-h); background: var(--white); border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; padding: 0 28px; flex-shrink: 0; box-shadow: 0 1px 4px rgba(26,60,110,0.06); }
.dash-topbar-left { display: flex; flex-direction: column; gap: 1px; }
.dash-title { font-size: 1.1rem; font-weight: 700; color: var(--text); }
.dash-breadcrumb { font-size: 0.75rem; color: var(--muted); }
.dash-topbar-right { display: flex; gap: 10px; }
.btn-apply { display: inline-flex; align-items: center; gap: 7px; background: linear-gradient(135deg, var(--primary), var(--primary-light)); color: var(--white); border: none; padding: 9px 20px; border-radius: 8px; font-size: 0.88rem; font-weight: 600; cursor: pointer; box-shadow: 0 2px 8px rgba(26,60,110,0.2); transition: opacity 0.2s, transform 0.1s; }
.btn-apply:hover { opacity: 0.9; transform: translateY(-1px); }
.btn-records { display: inline-flex; align-items: center; gap: 7px; background: var(--white); color: var(--primary); border: 1.5px solid var(--primary); padding: 9px 20px; border-radius: 8px; font-size: 0.88rem; font-weight: 600; cursor: pointer; transition: background 0.15s; }
.btn-records:hover { background: var(--accent); }
.dash-content { flex: 1; overflow-y: auto; padding: 28px; }

/* ══════════════════════════════════════════════════════
   RECORDS TABLE
══════════════════════════════════════════════════════ */
.records-header { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.records-title { font-size: 1.05rem; font-weight: 700; color: var(--text); }
.records-count { background: var(--accent); color: var(--primary); font-size: 0.78rem; font-weight: 700; padding: 3px 10px; border-radius: 20px; }
.records-table-wrap {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  overflow: hidden;
}
.records-table-wrap-inner {
  overflow-x: auto;
  overflow-y: auto;
  max-height: calc(100vh - 280px);
}
.records-table { min-width: 700px; }

/* Scrollable inner area — thead stays sticky, tbody scrolls */
.records-table-scroll {
  max-height: calc(100vh - 260px);   /* fills available viewport below topbar + header */
  overflow-y: auto;
  overflow-x: auto;
  /* custom thin scrollbar */
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}
.records-table-scroll::-webkit-scrollbar        { width: 6px; height: 6px; }
.records-table-scroll::-webkit-scrollbar-track  { background: transparent; }
.records-table-scroll::-webkit-scrollbar-thumb  { background: var(--border); border-radius: 10px; }
.records-table-scroll::-webkit-scrollbar-thumb:hover { background: var(--muted); }
.records-table { width: 100%; border-collapse: collapse; min-width: 700px; }
.records-table thead tr { background: var(--accent); }
.records-table thead { position: sticky; top: 0; z-index: 2; }
.records-table th { padding: 12px 16px; text-align: left; font-size: 0.75rem; font-weight: 700; color: var(--primary); text-transform: uppercase; letter-spacing: 0.5px; border-bottom: 2px solid var(--border); background: var(--accent); }
.records-table td { padding: 12px 16px; border-bottom: 1px solid #eef0f5; font-size: 0.88rem; color: var(--text); vertical-align: middle; }
.records-table tbody tr:last-child td { border-bottom: none; }
.records-table tbody tr:nth-child(even) { background: #fafbfd; }
.records-table tbody tr:hover { background: var(--accent); }
.rec-name { font-weight: 600; color: var(--primary); }
.btn-view { background: var(--primary); color: var(--white); border: none; padding: 5px 14px; border-radius: 6px; font-size: 0.8rem; font-weight: 600; cursor: pointer; transition: background 0.15s; }
.btn-view:hover { background: var(--primary-light); }
.records-loading, .records-empty { text-align: center; padding: 32px !important; color: var(--muted); font-style: italic; }

/* ── Pagination ──────────────────────────────────────────────────────── */
.pagination-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding: 10px 16px;
  border-top: 1px solid var(--border);
  background: var(--white);
}
.pagination-info { font-size: 0.82rem; color: var(--muted); min-width: 90px; }
.pagination-controls { display: flex; align-items: center; gap: 4px; }
.pagination-size { display: flex; align-items: center; gap: 6px; font-size: 0.82rem; color: var(--muted); }
.pagination-size select { padding: 4px 8px; border: 1.5px solid var(--border); border-radius: 6px; font-size: 0.82rem; color: var(--text); background: var(--white); cursor: pointer; outline: none; }
.pg-btn {
  min-width: 30px; height: 30px; padding: 0 6px;
  border: 1.5px solid var(--border); border-radius: 6px;
  background: var(--white); color: var(--text);
  font-size: 0.85rem; font-weight: 600; cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
  line-height: 1;
}
.pg-btn:hover:not(:disabled) { background: var(--accent); border-color: var(--primary-light); color: var(--primary); }
.pg-btn:disabled { opacity: 0.35; cursor: default; }
.pg-btn.pg-active { background: var(--primary); border-color: var(--primary); color: var(--white); }
.pg-pages { display: flex; gap: 4px; }

/* ══════════════════════════════════════════════════════
   MODALS
══════════════════════════════════════════════════════ */
.modal-overlay { position: absolute; inset: 0; background: rgba(10,20,40,0.45); backdrop-filter: blur(2px); z-index: 1000; display: flex; align-items: stretch; justify-content: stretch; padding: 0; opacity: 0; pointer-events: none; transition: opacity 0.25s; }
.modal-overlay.open { opacity: 1; pointer-events: all; }
.modal-box { background: var(--white); border-radius: 0; box-shadow: 0 20px 60px rgba(10,20,40,0.25); width: 100%; max-width: 100%; height: 100%; max-height: 100%; display: flex; flex-direction: column; transform: translateY(24px) scale(0.98); transition: transform 0.25s; overflow: hidden; }
.modal-overlay.open .modal-box { transform: translateY(0) scale(1); }
.modal-box-sm { max-width: 600px; height: auto; max-height: 96vh; border-radius: 14px; align-self: center; margin: auto; }
.modal-box-detail { max-width: 100%; border-radius: 0; }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 24px; background: linear-gradient(135deg, var(--primary), var(--primary-light)); flex-shrink: 0; }
.modal-head-left { display: flex; align-items: center; gap: 14px; }
.modal-head-icon { width: 38px; height: 38px; border-radius: 9px; background: rgba(255,255,255,0.15); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.modal-title { font-size: 1rem; font-weight: 700; color: #fff; }
.modal-sub   { font-size: 0.78rem; color: rgba(255,255,255,0.75); margin-top: 1px; }
.modal-close { width: 32px; height: 32px; border-radius: 8px; background: rgba(255,255,255,0.15); border: none; color: #fff; font-size: 1.3rem; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background 0.15s; flex-shrink: 0; }
.modal-close:hover { background: rgba(255,255,255,0.28); }
.modal-body { flex: 1; overflow-y: auto; padding: 24px; background: var(--bg); }
.modal-body.det-two-col { padding: 0 !important; overflow: hidden; }

/* ══════════════════════════════════════════════════════
   CANDIDATE DETAIL VIEW
══════════════════════════════════════════════════════ */
.detail-loading { text-align: center; padding: 40px; color: var(--muted); font-style: italic; }
.det-section { margin-bottom: 20px; }
.det-section-title { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.8px; color: var(--primary); padding: 8px 14px; background: var(--accent); border-radius: 6px; margin-bottom: 10px; }
.det-row { display: flex; gap: 12px; padding: 7px 4px; border-bottom: 1px solid #eef0f5; font-size: 0.88rem; }
.det-row:last-child { border-bottom: none; }
.det-label { width: 160px; flex-shrink: 0; color: var(--muted); font-weight: 500; }
.det-val   { color: var(--text); font-weight: 500; flex: 1; }

/* ══════════════════════════════════════════════════════
   FORM CARDS
══════════════════════════════════════════════════════ */
.page-wrapper { max-width: 1100px; margin: 0 auto; padding: 24px 16px 48px; }
.card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 16px; border: 1px solid var(--border); overflow: hidden; }
.card-header { background: linear-gradient(90deg, var(--primary), var(--primary-light)); color: var(--white); padding: 11px 20px; font-size: 0.88rem; font-weight: 600; letter-spacing: 0.3px; display: flex; align-items: center; gap: 10px; }
.section-num { background: rgba(255,255,255,0.2); border-radius: 50%; width: 24px; height: 24px; display: inline-flex; align-items: center; justify-content: center; font-size: 0.72rem; font-weight: 700; flex-shrink: 0; }
.card-body { padding: 18px 20px; }
.grid-1 { display: flex; flex-direction: column; gap: 14px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px 20px; }
.full-width { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-weight: 600; font-size: 0.78rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.4px; }
.req { color: var(--danger); }
.card-body > .grid-1:last-child, .card-body > .grid-2:last-child, .card-body > .grid-3:last-child { margin-bottom: 0 !important; }

input[type="text"], input[type="email"], input[type="tel"], input[type="date"], input[type="time"], select, textarea {
  width: 100%; padding: 8px 11px; border: 1.5px solid var(--border); border-radius: 6px; font-size: 0.88rem; color: var(--text); background: #fafbfd; transition: border-color 0.2s, box-shadow 0.2s; outline: none; font-family: inherit;
}
input:focus, select:focus, textarea:focus { border-color: var(--primary-light); box-shadow: 0 0 0 3px rgba(42,82,152,0.12); background: var(--white); }
input[readonly] { background: #eef1f7; color: var(--muted); cursor: not-allowed; }
textarea { resize: vertical; min-height: 68px; }
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%236b7a99' d='M6 8L0 0h12z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 11px center; padding-right: 30px; }
.radio-group { display: flex; gap: 16px; flex-wrap: wrap; padding: 7px 0; }
.radio-group label { display: flex; align-items: center; gap: 6px; font-weight: 500; font-size: 0.88rem; color: var(--text); cursor: pointer; text-transform: none; letter-spacing: 0; }
.radio-group input[type="radio"] { accent-color: var(--primary); width: 14px; height: 14px; }
input.invalid, select.invalid, textarea.invalid { border-color: var(--danger); }

/* TABLES inside form */
.table-wrapper { overflow-x: auto; margin-bottom: 10px; }
table { width: 100%; border-collapse: collapse; min-width: 560px; }
thead tr { background: var(--accent); }
th { padding: 9px 8px; text-align: left; font-size: 0.72rem; font-weight: 700; color: var(--primary); text-transform: uppercase; letter-spacing: 0.4px; border-bottom: 2px solid var(--border); white-space: nowrap; }
td { padding: 5px 5px; border-bottom: 1px solid #eef0f5; vertical-align: middle; }
tbody tr:hover { background: #f7f9fd; }
td input[type="text"], td input[type="date"], td input[type="tel"], td select { padding: 6px 7px; font-size: 0.82rem; min-width: 80px; }
td input[type="checkbox"] { accent-color: var(--primary); width: 15px; height: 15px; cursor: pointer; }

.btn-add { background: var(--add-btn); color: var(--white); border: none; padding: 7px 16px; border-radius: 6px; font-size: 0.82rem; font-weight: 600; cursor: pointer; transition: background 0.2s; margin-top: 4px; }
.btn-add:hover { background: #0b5ed7; }
.btn-remove { background: var(--remove-btn); color: var(--white); border: none; padding: 4px 9px; border-radius: 5px; font-size: 0.78rem; cursor: pointer; white-space: nowrap; transition: background 0.2s; }
.btn-remove:hover { background: #b02a37; }

.declaration-box { background: var(--accent); border: 1.5px solid var(--border); border-radius: 6px; padding: 14px 18px; }
.declaration-label { display: flex; align-items: flex-start; gap: 11px; font-size: 0.9rem; font-weight: 500; color: var(--text); cursor: pointer; text-transform: none; letter-spacing: 0; }
.declaration-label input[type="checkbox"] { accent-color: var(--primary); width: 17px; height: 17px; flex-shrink: 0; margin-top: 2px; }

.form-footer { display: flex; justify-content: flex-end; gap: 12px; margin-top: 4px; padding-bottom: 4px; }
.btn-submit { background: linear-gradient(135deg, var(--primary), var(--primary-light)); color: var(--white); border: none; padding: 11px 32px; border-radius: 6px; font-size: 0.95rem; font-weight: 700; cursor: pointer; letter-spacing: 0.4px; transition: opacity 0.2s, transform 0.1s; box-shadow: 0 4px 14px rgba(26,60,110,0.25); }
.btn-submit:hover { opacity: 0.92; transform: translateY(-1px); }
.btn-submit:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }
.btn-reset { background: var(--white); color: var(--primary); border: 2px solid var(--primary); padding: 11px 24px; border-radius: 6px; font-size: 0.9rem; font-weight: 600; cursor: pointer; transition: background 0.2s; }
.btn-reset:hover { background: var(--accent); }

/* TOAST */
.toast { position: absolute; bottom: 28px; right: 28px; background: var(--primary); color: var(--white); padding: 13px 22px; border-radius: 8px; font-size: 0.88rem; font-weight: 600; box-shadow: 0 4px 20px rgba(0,0,0,0.2); opacity: 0; transform: translateY(16px); transition: opacity 0.3s, transform 0.3s; pointer-events: none; z-index: 9999; max-width: 340px; }
.toast.show    { opacity: 1; transform: translateY(0); }
.toast.success { background: var(--success); }
.toast.error   { background: var(--danger); }

/* RESPONSIVE */
@media (max-width: 900px) {
  :root { --sidebar-w: 64px; }
  .sb-brand-name, .sb-link span { display: none; }
  .sb-brand { justify-content: center; padding: 16px 0; }
  .sb-link  { justify-content: center; padding: 12px 0; }
  .modal-box { max-width: 98vw; }
}
@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .dash-topbar { padding: 0 16px; }
  .dash-content { padding: 16px; }
  .modal-body { padding: 16px; }
  .form-footer { flex-direction: column; }
  .btn-submit, .btn-reset { width: 100%; text-align: center; }
}

/* ══════════════════════════════════════════════════════
   APPLY PAGE — ENTERPRISE NAVBAR
══════════════════════════════════════════════════════ */
.app-nav { background:#fff; border-bottom:1px solid var(--border); box-shadow:0 1px 8px rgba(26,60,110,0.07); position:sticky; top:0; z-index:50; }
.app-nav-inner { max-width:1200px; margin:0 auto; padding:0 28px; height:64px; display:flex; align-items:center; justify-content:space-between; }

/* Brand */
.app-nav-brand { display:flex; align-items:center; gap:12px; text-decoration:none; flex-shrink:0; }
.app-nav-logo-img { height:40px; width:auto; max-width:200px; object-fit:contain; flex-shrink:0; background:#fff; border-radius:6px; padding:3px 8px; }
.app-nav-brand-name { font-size:0.92rem; font-weight:800; color:var(--primary); letter-spacing:0.3px; line-height:1.2; }
.app-nav-brand-sub { font-size:0.62rem; color:var(--muted); font-weight:500; letter-spacing:0.2px; margin-top:2px; }

/* Right cluster */
.app-nav-right { display:flex; align-items:center; gap:12px; }
.app-nav-sep { width:1px; height:28px; background:var(--border); }

/* My Applications pill */
.app-nav-apps-btn { display:inline-flex; align-items:center; gap:7px; padding:8px 16px; border:1.5px solid var(--border); border-radius:8px; background:#fff; font-size:0.83rem; font-weight:600; color:var(--primary); cursor:pointer; transition:background 0.15s, border-color 0.15s, box-shadow 0.15s; font-family:inherit; white-space:nowrap; }
.app-nav-apps-btn:hover { background:var(--accent); border-color:var(--primary-light); box-shadow:0 2px 8px rgba(42,82,152,0.1); }

/* Profile trigger */
.app-nav-profile { display:flex; align-items:center; gap:10px; padding:5px 10px 5px 6px; border-radius:40px; cursor:pointer; position:relative; transition:background 0.15s; user-select:none; border:1.5px solid transparent; }
.app-nav-profile:hover { background:var(--accent); border-color:var(--border); }
.app-nav-profile.active { background:var(--accent); border-color:var(--primary-light); }
.app-nav-avatar { width:36px; height:36px; border-radius:50%; display:flex; align-items:center; justify-content:center; font-size:0.78rem; font-weight:800; color:#fff; flex-shrink:0; letter-spacing:0.5px; box-shadow:0 2px 6px rgba(0,0,0,0.15); }
.app-nav-user-info { display:flex; flex-direction:column; }
.app-nav-username { font-size:0.85rem; font-weight:700; color:var(--text); line-height:1.2; }
.app-nav-role { font-size:0.68rem; color:var(--muted); font-weight:500; letter-spacing:0.2px; }
.app-nav-chevron { color:var(--muted); transition:transform 0.2s; flex-shrink:0; }
.app-nav-profile.active .app-nav-chevron { transform:rotate(180deg); }

/* Dropdown */
.app-nav-dropdown { display:none; position:absolute; top:calc(100% + 10px); right:0; width:260px; background:#fff; border:1.5px solid var(--border); border-radius:14px; box-shadow:0 12px 40px rgba(26,60,110,0.16); z-index:200; overflow:hidden; }
.app-nav-dropdown.open { display:block; animation:dropIn 0.18s ease; }
@keyframes dropIn { from { opacity:0; transform:translateY(-6px); } to { opacity:1; transform:translateY(0); } }
.app-nav-dropdown-header { display:flex; align-items:center; gap:12px; padding:16px; background:linear-gradient(135deg,#f0f4fb,#e8f0fe); border-bottom:1px solid var(--border); }
.app-nav-dropdown-avatar { width:44px; height:44px; border-radius:50%; display:flex; align-items:center; justify-content:center; font-size:0.9rem; font-weight:800; color:#fff; flex-shrink:0; box-shadow:0 2px 8px rgba(0,0,0,0.15); }
.app-nav-dropdown-name { font-size:0.9rem; font-weight:700; color:var(--text); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.app-nav-dropdown-email { font-size:0.72rem; color:var(--muted); margin-top:1px; word-break:break-all; }
.app-nav-dropdown-role-badge { display:inline-block; margin-top:4px; padding:2px 8px; background:#dbeafe; color:#1e40af; border-radius:20px; font-size:0.68rem; font-weight:700; letter-spacing:0.3px; }
.app-nav-dropdown-divider { height:1px; background:var(--border); }
.app-nav-dropdown-item { display:flex; align-items:center; gap:10px; width:100%; padding:11px 16px; border:none; background:none; font-size:0.85rem; font-weight:500; color:var(--text); cursor:pointer; transition:background 0.12s; font-family:inherit; text-align:left; }
.app-nav-dropdown-item:hover { background:var(--accent); color:var(--primary); }
.app-nav-dropdown-danger { color:var(--danger) !important; }
.app-nav-dropdown-danger:hover { background:#fdecea !important; }
.form-header { display: flex; align-items: center; gap: 16px; padding: 24px 0 20px; }
.header-logo { font-size: 2rem; }
.form-header h1 { font-size: 1.3rem; font-weight: 700; color: var(--text); }
.form-header p  { font-size: 0.82rem; color: var(--muted); margin-top: 2px; }

/* ══════════════════════════════════════════════════════
   ANALYTICS DASHBOARD
══════════════════════════════════════════════════════ */
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 20px; }
.stat-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px 20px; display: flex; align-items: center; gap: 16px; }
.stat-icon { width: 44px; height: 44px; border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.stat-icon-blue   { background: #e8f0fe; color: #2a5298; }
.stat-icon-green  { background: #e6f4ed; color: #1a7a4a; }
.stat-icon-purple { background: #f0ebff; color: #6610f2; }
.stat-icon-orange { background: #fff3e0; color: #e65100; }
.stat-info { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.stat-label { font-size: 0.72rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 0.4px; }
.stat-value { font-size: 1.6rem; font-weight: 700; color: var(--text); line-height: 1; }
.stat-value-sm { font-size: 0.9rem; font-weight: 700; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.analytics-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 20px; }
.analytics-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px 20px; display: flex; flex-direction: column; gap: 14px; }
.analytics-card-head { display: flex; align-items: center; justify-content: space-between; }
.analytics-card-title { font-size: 0.82rem; font-weight: 700; color: var(--text); text-transform: uppercase; letter-spacing: 0.4px; }
.chart-wrap { position: relative; height: 200px; }
.chart-wrap-sm { height: 180px; }
.pipeline { display: flex; flex-direction: column; gap: 10px; }
.pipeline-step { display: flex; align-items: center; gap: 12px; }
.pipeline-label { font-size: 0.78rem; font-weight: 600; color: var(--muted); width: 80px; flex-shrink: 0; }
.pipeline-bar { height: 28px; width: var(--w); background: var(--clr); border-radius: 5px; display: flex; align-items: center; padding: 0 10px; color: #fff; font-size: 0.78rem; font-weight: 700; transition: width 0.6s ease; }
.activity-feed { list-style: none; display: flex; flex-direction: column; gap: 0; }
.activity-loading { font-size: 0.85rem; color: var(--muted); font-style: italic; padding: 8px 0; }
.activity-item { display: flex; align-items: flex-start; gap: 12px; padding: 10px 0; border-bottom: 1px solid #eef0f5; }
.activity-item:last-child { border-bottom: none; }
.activity-avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--accent); color: var(--primary); font-size: 0.72rem; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.activity-text { font-size: 0.83rem; color: var(--text); line-height: 1.5; }
.activity-name { font-weight: 700; color: var(--primary); }
.activity-pos  { font-weight: 600; }
.activity-time { display: block; font-size: 0.75rem; color: var(--muted); margin-top: 1px; }
@media (max-width: 1100px) { .stat-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 700px) { .stat-grid { grid-template-columns: 1fr; } .analytics-row { grid-template-columns: 1fr; } }

/* ══════════════════════════════════════════════════════
   RECORDS FILTER, STATUS, SORT
══════════════════════════════════════════════════════ */
.filter-bar { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.filter-search {
  display: flex; align-items: center; gap: 8px;
  background: var(--white); border: 1.5px solid var(--border);
  border-radius: 7px; padding: 0 12px;
  width: 220px; flex-shrink: 0;
}
.filter-search svg { color: var(--muted); flex-shrink: 0; }
.filter-search input { border: none; background: none; outline: none; font-size: 0.88rem; color: var(--text); padding: 8px 0; width: 100%; font-family: inherit; }
.filter-bar select { width: 150px; }
.filter-bar input[type="date"] { width: 140px; }
.filter-bar select,
.filter-bar input[type="date"] { padding: 8px 12px; border: 1.5px solid var(--border); border-radius: 7px; font-size: 0.85rem; color: var(--text); background: var(--white); outline: none; font-family: inherit; cursor: pointer; }
.filter-bar select:focus, .filter-bar input[type="date"]:focus { border-color: var(--primary-light); box-shadow: 0 0 0 3px rgba(42,82,152,0.10); }
.filter-clear { padding: 8px 16px; border-radius: 7px; border: 1.5px solid var(--border); background: var(--white); color: var(--muted); font-size: 0.85rem; font-weight: 600; cursor: pointer; transition: background 0.15s, color 0.15s; white-space: nowrap; }
.filter-clear:hover { background: #fdf4f4; color: var(--danger); border-color: var(--danger); }
.records-table th.sortable { cursor: pointer; user-select: none; white-space: nowrap; }
.records-table th.sortable:hover { background: #dce6fb; }
.sort-icon { font-size: 0.75rem; color: var(--muted); margin-left: 4px; }
.status-badge { display: inline-block; padding: 3px 10px; border-radius: 20px; font-size: 0.75rem; font-weight: 700; white-space: nowrap; }
.status-select { appearance: none; border: none; outline: none; border-radius: 20px; padding: 4px 10px; font-size: 0.75rem; font-weight: 700; cursor: pointer; font-family: inherit; background-image: none; transition: opacity 0.15s; }
.status-select:hover { opacity: 0.85; }
.rec-avatar { width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.72rem; font-weight: 700; color: #fff; flex-shrink: 0; letter-spacing: 0.5px; }
.rec-position-tag { display: inline-block; background: #f0f4f9; color: var(--text); font-size: 0.78rem; font-weight: 500; padding: 3px 10px; border-radius: 20px; white-space: nowrap; }
.rec-date { font-size: 0.82rem; color: var(--muted); cursor: default; border-bottom: 1px dashed var(--border); }
.status-badge-btn { display: inline-block; padding: 4px 10px; border-radius: 20px; font-size: 0.75rem; font-weight: 700; white-space: nowrap; cursor: pointer; user-select: none; transition: opacity 0.15s; }
.status-badge-btn:hover { opacity: 0.8; }
.status-pop { position: absolute; z-index: 9999; background: var(--white); border: 1.5px solid var(--border); border-radius: 8px; box-shadow: 0 8px 24px rgba(10,20,40,0.15); min-width: 160px; overflow: hidden; }
.status-pop-item { padding: 8px 14px; font-size: 0.8rem; font-weight: 600; cursor: pointer; transition: background 0.12s; color: var(--text); }
.status-pop-item:hover { background: var(--accent); }
.status-pop-item.active { background: var(--item-bg); color: var(--item-clr); }
.records-empty-state { text-align: center; padding: 48px 20px !important; }
.empty-icon { width: 64px; height: 64px; border-radius: 16px; background: var(--accent); color: var(--primary); display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; }
.empty-title { font-size: 0.95rem; font-weight: 700; color: var(--text); margin-bottom: 6px; }
.empty-sub   { font-size: 0.82rem; color: var(--muted); }

/* ══════════════════════════════════════════════════════
   EDUCATION & ENTRY CARDS
══════════════════════════════════════════════════════ */
.edu-card, .entry-card { background: #f8fafd; border: 1.5px solid var(--border); border-radius: 8px; padding: 16px; margin-bottom: 12px; position: relative; }
.edu-card:last-of-type, .entry-card:last-of-type { margin-bottom: 0; }
.edu-card-row { margin-bottom: 12px; }
.edu-card-row:last-of-type { margin-bottom: 0; }
.entry-remove, .edu-remove { position: absolute; top: 12px; right: 12px; padding: 3px 10px; font-size: 0.75rem; }
.lang-name-cell { width: 40%; }
.lang-skill-cell { width: 15%; text-align: center; }
.skill-toggle { display: inline-flex; flex-direction: column; align-items: center; gap: 4px; cursor: pointer; }
.skill-toggle input[type="checkbox"] { display: none; }
.skill-toggle span { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 22px; border-radius: 5px; border: 1.5px solid var(--border); background: var(--white); font-size: 0.65rem; font-weight: 700; color: var(--muted); transition: background 0.15s, color 0.15s, border-color 0.15s; user-select: none; }
.skill-toggle input:checked + span { background: var(--primary); color: #fff; border-color: var(--primary); }
#langBody td { padding: 4px 6px; }
#langBody .lang-name-cell input { padding: 5px 8px; font-size: 0.82rem; }

/* ══════════════════════════════════════════════════════
   SIGNATURE WIDGET
══════════════════════════════════════════════════════ */
.sig-widget { border: 1.5px solid var(--border); border-radius: 8px; overflow: hidden; background: var(--white); }
.sig-tabs { display: flex; border-bottom: 1.5px solid var(--border); background: var(--accent); }
.sig-tab { flex: 1; padding: 7px 0; border: none; background: none; font-size: 0.78rem; font-weight: 600; color: var(--muted); cursor: pointer; transition: background 0.15s, color 0.15s; font-family: inherit; }
.sig-tab:hover { background: #dce6fb; color: var(--primary); }
.sig-tab.active { background: var(--white); color: var(--primary); border-bottom: 2px solid var(--primary); }
.sig-panel { padding: 10px; position: relative; }
.sig-canvas { display: block; width: 100%; height: 100px; background: #fafbfd; border-radius: 5px; cursor: crosshair; touch-action: none; }
.sig-clear-btn { position: absolute; bottom: 14px; right: 14px; background: var(--white); border: 1.5px solid var(--border); border-radius: 5px; padding: 3px 10px; font-size: 0.72rem; font-weight: 600; color: var(--muted); cursor: pointer; transition: color 0.15s, border-color 0.15s; }
.sig-clear-btn:hover { color: var(--danger); border-color: var(--danger); }
.sig-upload-label { display: flex; align-items: center; justify-content: center; min-height: 80px; border: 2px dashed var(--border); border-radius: 6px; cursor: pointer; background: #fafbfd; transition: border-color 0.15s; }
.sig-upload-label:hover { border-color: var(--primary-light); }
.sig-upload-label input[type="file"] { display: none; }
.sig-upload-label span { font-size: 0.82rem; color: var(--muted); }
.sig-upload-preview { display: block; max-height: 80px; max-width: 100%; margin: 8px auto 0; border-radius: 4px; }
#sigPanelType input { margin-top: 4px; }

/* ══════════════════════════════════════════════════════
   VIEW DETAIL TWO-COLUMN
══════════════════════════════════════════════════════ */
.det-two-col {
  display: grid;
  grid-template-columns: var(--det-left-w, 300px) 4px 1fr;
  gap: 0;
  padding: 0 !important;
  overflow: hidden;
  height: 100%;
}
.det-left {
  border-right: none;
  padding: 20px;
  overflow-y: auto;
  background: var(--white);
  height: 100%;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}
.det-right {
  padding: 20px;
  overflow-y: auto;
  background: var(--bg);
  height: 100%;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}
/* Resize handle between columns */
.det-resize-handle {
  width: 4px;
  background: var(--border);
  cursor: col-resize;
  transition: background 0.15s;
  position: relative;
  z-index: 1;
}
.det-resize-handle:hover,
.det-resize-handle.dragging { background: var(--primary-light); }
@media (max-width: 700px) {
  .det-two-col { grid-template-columns: 1fr; }
  .det-resize-handle { display: none; }
  .det-left { border-right: none; border-bottom: 1px solid var(--border); height: auto; }
  .det-right { height: auto; }
}

/* Shake for auth form wrap */
.auth-form-wrap.shake { animation: shake 0.4s ease; }

/* ════════════════════════════════════════════════════════
   FORGOT PASSWORD COMPONENTS
═══════════════════════════════════════════════════════════ */
.fp-back {
  display: inline-flex; align-items: center; gap: 6px;
  background: none; border: none; padding: 0;
  font-size: 0.82rem; font-weight: 600;
  color: var(--muted); cursor: pointer;
  margin-bottom: 20px;
  transition: color 0.15s;
}
.fp-back:hover { color: var(--primary); }

/* Step progress bar */
.fp-step-bar {
  display: flex; align-items: center;
  margin-bottom: 28px;
}
.fp-step {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  flex-shrink: 0;
}
.fp-step span {
  width: 30px; height: 30px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.78rem; font-weight: 700;
  background: var(--border); color: var(--muted);
  transition: background 0.3s, color 0.3s;
}
.fp-step small {
  font-size: 0.68rem; font-weight: 600;
  color: var(--muted); white-space: nowrap;
}
.fp-step.active span  { background: var(--primary); color: #fff; }
.fp-step.active small { color: var(--primary); }
.fp-step.done span    { background: var(--success); color: #fff; }
.fp-step.done small   { color: var(--success); }

.fp-step-line {
  flex: 1; height: 2px;
  background: var(--border);
  margin: 0 6px 14px;
  transition: background 0.3s;
}
.fp-step-line-done { background: var(--success); }

/* Security question display box */
.fp-question-box {
  display: flex; align-items: flex-start; gap: 10px;
  background: var(--accent);
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: 12px 14px;
  margin-bottom: 18px;
  font-size: 0.88rem; font-weight: 600;
  color: var(--primary);
}
.fp-question-box svg { flex-shrink: 0; margin-top: 1px; color: var(--primary); }

/* Success screen */
.fp-success-box {
  display: flex; flex-direction: column; align-items: center;
  padding: 16px 0;
}
.fp-success-icon {
  width: 64px; height: 64px; border-radius: 50%;
  background: #e6f4ed;
  color: var(--success);
  font-size: 1.8rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  border: 3px solid var(--success);
}

/* Remember me checkbox */
.lf-remember { display: flex; align-items: center; margin-bottom: 16px; }
.lf-remember label { display: flex; align-items: center; gap: 8px; font-size: 0.82rem; color: var(--muted); cursor: pointer; }
.lf-remember input[type="checkbox"] { accent-color: var(--primary); width: 14px; height: 14px; }

/* Inline reset confirmation */
.reset-confirm {
  display: flex; align-items: center; gap: 10px;
  background: #fff8e1; border: 1px solid #f0c040;
  border-radius: 6px; padding: 8px 14px;
  font-size: 0.82rem; margin-right: auto;
}
.reset-confirm-msg { color: #7a5800; font-weight: 600; }
.reset-confirm-yes {
  background: var(--danger); color: #fff;
  border: none; border-radius: 5px;
  padding: 4px 12px; font-size: 0.78rem; font-weight: 600;
  cursor: pointer; font-family: inherit;
}
.reset-confirm-yes:hover { background: #a93226; }
.reset-confirm-no {
  background: none; color: var(--muted);
  border: 1px solid var(--border); border-radius: 5px;
  padding: 4px 10px; font-size: 0.78rem; font-weight: 600;
  cursor: pointer; font-family: inherit;
}
.reset-confirm-no:hover { background: var(--bg); }

/* Detail view shared styles */
.det-hero { display: flex; align-items: center; gap: 14px; padding: 4px 0 20px; border-bottom: 1px solid var(--border); margin-bottom: 16px; }
.det-hero-avatar { width: 48px; height: 48px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1rem; font-weight: 700; color: #fff; flex-shrink: 0; }
.det-hero-name { font-size: 0.95rem; font-weight: 700; color: var(--text); }
.det-hero-pos  { font-size: 0.78rem; color: var(--muted); margin-top: 2px; }
.det-entry { padding: 8px 0; border-bottom: 1px solid #eef0f5; }
.det-entry:last-child { border-bottom: none; }
.det-entry-title { font-size: 0.88rem; font-weight: 700; color: var(--text); }
.det-entry-sub   { font-size: 0.8rem; color: var(--muted); margin-top: 2px; }
.det-entry-meta  { font-size: 0.75rem; color: var(--muted); margin-top: 3px; font-style: italic; }
.det-lang-grid { display: flex; flex-direction: column; gap: 6px; }
.det-lang-item { display: flex; align-items: center; justify-content: space-between; padding: 5px 0; border-bottom: 1px solid #eef0f5; }
.det-lang-item:last-child { border-bottom: none; }
.det-lang-name   { font-size: 0.85rem; font-weight: 600; color: var(--text); }
.det-lang-skills { font-size: 0.78rem; color: var(--muted); }

/* PDF download button in modal header */
.pdf-btn {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,0.15); border: 1px solid rgba(255,255,255,0.3);
  color: #fff; border-radius: 7px; padding: 5px 12px;
  font-size: 0.8rem; font-weight: 600; cursor: pointer;
  font-family: inherit; transition: background 0.15s;
}
.pdf-btn:hover { background: rgba(255,255,255,0.28); }
.pdf-btn:disabled { opacity: 0.6; cursor: not-allowed; }

/* ══════════════════════════════════════════════════════
   SETTINGS — USER MANAGEMENT
══════════════════════════════════════════════════════ */

/* Page header */
.um-page-header { display:flex; align-items:flex-start; justify-content:space-between; margin-bottom:24px; }
.um-page-title  { font-size:1.15rem; font-weight:700; color:var(--text); margin:0 0 3px; }
.um-page-sub    { font-size:0.82rem; color:var(--muted); margin:0; }

/* Tabs */
.um-tabs { display:flex; gap:2px; border-bottom:2px solid var(--border); margin-bottom:24px; }
.um-tab  { display:flex; align-items:center; gap:7px; padding:10px 20px; border:none; background:none; font-size:0.85rem; font-weight:600; color:var(--muted); cursor:pointer; border-bottom:2.5px solid transparent; margin-bottom:-2px; transition:color 0.15s, border-color 0.15s, background 0.15s; font-family:inherit; border-radius:6px 6px 0 0; }
.um-tab:hover  { color:var(--primary); background:var(--accent); }
.um-tab.active { color:var(--primary); border-bottom-color:var(--primary); background:var(--accent); }

/* Toolbar */
.um-toolbar       { display:flex; align-items:center; justify-content:space-between; margin-bottom:14px; gap:12px; flex-wrap:wrap; }
.um-toolbar-left  { display:flex; align-items:center; gap:10px; }
.um-toolbar-right { display:flex; align-items:center; gap:10px; }
.um-search-wrap   { display:flex; align-items:center; gap:8px; background:var(--white); border:1.5px solid var(--border); border-radius:8px; padding:7px 12px; min-width:220px; }
.um-search-wrap svg { color:var(--muted); flex-shrink:0; }
.um-search-wrap input { border:none; outline:none; font-size:0.85rem; color:var(--text); background:transparent; width:100%; font-family:inherit; }
.um-filter-select { padding:7px 12px; border:1.5px solid var(--border); border-radius:8px; font-size:0.85rem; color:var(--text); background:var(--white); font-family:inherit; outline:none; cursor:pointer; }
.um-filter-select:focus { border-color:var(--primary-light); }
.um-user-count  { font-size:0.8rem; color:var(--muted); font-weight:500; }
.um-refresh-btn { display:flex; align-items:center; gap:6px; padding:7px 14px; border:1.5px solid var(--border); border-radius:8px; background:var(--white); font-size:0.82rem; font-weight:600; color:var(--text); cursor:pointer; transition:background 0.15s, border-color 0.15s; font-family:inherit; }
.um-refresh-btn:hover { background:var(--accent); border-color:var(--primary-light); color:var(--primary); }

/* Users table */
.um-table-wrap { background:var(--white); border:1.5px solid var(--border); border-radius:10px; overflow:hidden; }
.um-table { width:100%; border-collapse:collapse; }
.um-table thead tr { background:var(--accent); }
.um-table th { padding:11px 16px; text-align:left; font-size:0.73rem; font-weight:700; color:var(--primary); text-transform:uppercase; letter-spacing:0.5px; border-bottom:2px solid var(--border); white-space:nowrap; }
.um-table td { padding:13px 16px; border-bottom:1px solid #eef0f5; font-size:0.87rem; color:var(--text); vertical-align:middle; }
.um-table tbody tr:last-child td { border-bottom:none; }
.um-table tbody tr:hover { background:#fafbfd; }
.um-loading { text-align:center; padding:36px !important; color:var(--muted); font-style:italic; }
.um-empty   { text-align:center; padding:36px !important; color:var(--muted); }

/* User cell */
.um-user-cell   { display:flex; align-items:center; gap:10px; }
.um-avatar      { width:34px; height:34px; border-radius:50%; display:flex; align-items:center; justify-content:center; font-size:0.78rem; font-weight:700; color:#fff; flex-shrink:0; }
.um-user-name   { font-weight:600; color:var(--primary); font-size:0.88rem; }
.um-user-self   { font-size:0.72rem; color:var(--muted); background:var(--accent); padding:1px 7px; border-radius:10px; margin-left:4px; }

/* Role badges */
.um-role-badge  { display:inline-flex; align-items:center; gap:5px; padding:4px 10px; border-radius:20px; font-size:0.75rem; font-weight:700; letter-spacing:0.3px; }
.um-badge-admin { background:#dbeafe; color:#1e40af; }
.um-badge-user  { background:#dcfce7; color:#166534; }

/* Action buttons */
.um-actions     { display:flex; align-items:center; justify-content:flex-end; gap:6px; }
.um-action-btn  { display:inline-flex; align-items:center; gap:5px; padding:5px 12px; border-radius:6px; font-size:0.78rem; font-weight:600; cursor:pointer; border:1.5px solid transparent; transition:all 0.15s; font-family:inherit; white-space:nowrap; }
.um-btn-promote { background:#dbeafe; color:#1e40af; border-color:#bfdbfe; }
.um-btn-promote:hover { background:#bfdbfe; }
.um-btn-demote  { background:#fef9c3; color:#854d0e; border-color:#fde68a; }
.um-btn-demote:hover  { background:#fde68a; }
.um-btn-delete  { background:#fee2e2; color:#991b1b; border-color:#fecaca; }
.um-btn-delete:hover  { background:#fecaca; }

/* Roles & Permissions */
.um-roles-grid { display:grid; grid-template-columns:1fr 1fr; gap:20px; }
.um-role-card  { background:var(--white); border:1.5px solid var(--border); border-radius:12px; padding:22px 24px; }
.um-role-card-head { display:flex; align-items:center; gap:12px; margin-bottom:18px; padding-bottom:16px; border-bottom:1px solid var(--border); }
.um-role-icon  { width:40px; height:40px; border-radius:10px; display:flex; align-items:center; justify-content:center; flex-shrink:0; }
.um-role-icon-admin { background:linear-gradient(135deg,#dbeafe,#bfdbfe); color:#1e40af; }
.um-role-icon-user  { background:linear-gradient(135deg,#dcfce7,#bbf7d0); color:#166534; }
.um-role-name  { font-size:0.95rem; font-weight:700; color:var(--text); }
.um-role-tagline { font-size:0.78rem; color:var(--muted); margin-top:1px; }
.um-perm-section-label { font-size:0.7rem; font-weight:700; text-transform:uppercase; letter-spacing:0.6px; color:var(--muted); margin-bottom:10px; }
.um-perm-list  { list-style:none; padding:0; margin:0; display:flex; flex-direction:column; gap:9px; }
.um-perm       { font-size:0.84rem; color:var(--text); display:flex; align-items:center; gap:9px; line-height:1.4; }
.um-perm::before { content:''; width:18px; height:18px; border-radius:50%; flex-shrink:0; background-size:10px; background-repeat:no-repeat; background-position:center; }
.um-perm.allow::before { background-color:#dcfce7; background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23166534' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E"); }
.um-perm.deny::before  { background-color:#fee2e2; background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23991b1b' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='18' y1='6' x2='6' y2='18'/%3E%3Cline x1='6' y1='6' x2='18' y2='18'/%3E%3C/svg%3E"); }
.um-perm.deny  { color:var(--muted); }

.um-info-banner { display:flex; align-items:flex-start; gap:10px; margin-top:20px; padding:13px 16px; background:#fffbeb; border:1.5px solid #fde68a; border-radius:8px; font-size:0.82rem; color:#92400e; line-height:1.5; }
.um-info-banner svg { flex-shrink:0; margin-top:1px; }

/* ── Job Posts ── */
.job-badge         { display:inline-block; padding:3px 10px; border-radius:20px; font-size:0.75rem; font-weight:700; letter-spacing:0.3px; }
.job-badge-active  { background:#dcfce7; color:#166534; }
.job-badge-closed  { background:#f1f5f9; color:#64748b; }
.job-type-badge    { display:inline-block; padding:2px 8px; border-radius:5px; font-size:0.75rem; font-weight:600; background:var(--accent); color:var(--primary); }

/* ── User Management — inline role editor ── */
.um-role-edit { display:flex; align-items:center; gap:6px; }
.um-role-select { padding:4px 8px; border:1.5px solid var(--border); border-radius:6px; font-size:0.8rem; font-weight:600; color:var(--text); background:var(--white); font-family:inherit; outline:none; cursor:pointer; transition:border-color 0.15s; }
.um-role-select:focus { border-color:var(--primary-light); }

/* ── Save Draft button ── */
.btn-draft { display:inline-flex; align-items:center; gap:7px; background:#fff; color:#1a3c6e; border:2px solid #1a3c6e; padding:11px 20px; border-radius:6px; font-size:0.88rem; font-weight:600; cursor:pointer; transition:background 0.15s; font-family:inherit; }
.btn-draft:hover { background:#e8f0fe; }
.btn-draft:disabled { opacity:0.6; cursor:not-allowed; }


/* ── Sidebar collapse ── */
.sidebar.collapsed { width: 64px; }
.sidebar.collapsed .sb-logo-card { display: none; }
.sidebar.collapsed .sb-link span { display: none; }
.sidebar.collapsed .sb-link { justify-content: center; padding: 12px 0; }
.sidebar.collapsed .sb-collapse-btn svg { transform: rotate(180deg); }
.sidebar.collapsed + .dash-main { margin-left: 64px; }
.sidebar, .sidebar + .dash-main { transition: width 0.25s ease, margin-left 0.25s ease; }

/* ── Sidebar notification badge ── */
.sb-link { position: relative; }
.sb-notif-badge { position:absolute; top:6px; right:8px; min-width:18px; height:18px; background:#e53e3e; color:#fff; border-radius:20px; font-size:0.65rem; font-weight:800; display:flex; align-items:center; justify-content:center; padding:0 4px; border:2px solid #111827; line-height:1; }
