/* ==========================================================================
   elmis.css: the look of the existing ELMIS job center platform.
   Colors and proportions were sampled from the staging screenshots in
   inputs/elmis-screenshots/. Change values here to adjust every screen.
   Anything that marks a screen as a mock-up, or marks a feature as new,
   lives in mockup.css, so this file stays a plain copy of the ELMIS style.
   ========================================================================== */

@font-face { font-family: "Inter"; font-weight: 400; font-display: swap; src: url("fonts/inter-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 500; font-display: swap; src: url("fonts/inter-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 600; font-display: swap; src: url("fonts/inter-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 700; font-display: swap; src: url("fonts/inter-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Noto Sans Ethiopic"; font-weight: 400; font-display: swap; src: url("fonts/noto-sans-ethiopic-ethiopic-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Noto Sans Ethiopic"; font-weight: 600; font-display: swap; src: url("fonts/noto-sans-ethiopic-ethiopic-600-normal.woff2") format("woff2"); }

:root {
  /* ELMIS palette (sampled) */
  --elmis-sidebar: #2c4866;
  --elmis-sidebar-line: #3d5877;
  --elmis-sidebar-active: #3a6088;
  --elmis-sidebar-label: #93c5fd;
  --elmis-blue: #0e63f3;
  --elmis-blue-soft: #348ce0;
  --elmis-blue-action: #447dfc;
  --elmis-bg: #e5e7eb;
  --elmis-card: #ffffff;
  --elmis-row: #f9fafb;
  --elmis-line: #e5e7eb;
  --elmis-text: #111827;
  --elmis-text-2: #4b5563;
  --elmis-text-3: #6b7280;
  --elmis-red: #dc2626;
  --elmis-green: #16a34a;
  --font: "Inter", "Noto Sans Ethiopic", -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --sidebar-w: 264px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body { font-family: var(--font); color: var(--elmis-text); background: var(--elmis-bg); font-size: 14px; line-height: 1.45; -webkit-font-smoothing: antialiased; }
button { font-family: inherit; }
a { color: var(--elmis-blue); text-decoration: none; }

/* ---------- Shell: sidebar and top bar ---------- */
.shell { display: grid; grid-template-columns: var(--sidebar-w) 1fr; min-height: 100vh; }

.sidebar { background: var(--elmis-sidebar); color: #fff; }
.sidebar-inner { display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; }
.sidebar-brand { display: flex; align-items: center; gap: 10px; padding: 16px 16px; border-bottom: 1px solid var(--elmis-sidebar-line); position: relative; }
.sidebar-logo { width: 30px; height: 30px; border-radius: 6px; background: #fff; color: var(--elmis-sidebar); font-weight: 700; font-size: 13px; display: grid; place-items: center; }
.sidebar-name { font-weight: 700; font-size: 17px; letter-spacing: .01em; }
.sidebar-collapse { position: absolute; right: -13px; top: 22px; width: 26px; height: 26px; border-radius: 50%; background: var(--elmis-sidebar); border: 1px solid var(--elmis-sidebar-line); color: #fff; display: grid; place-items: center; font-size: 13px; z-index: 5; }
.sidebar-center { padding: 18px 18px 10px; font-weight: 700; font-size: 12.5px; }
.sidebar-role { margin: 4px 14px 14px; padding: 9px 10px; border-radius: 4px; background: var(--elmis-sidebar-active); font-weight: 600; font-size: 14px; }
.sidebar-label { padding: 8px 16px 6px; color: var(--elmis-sidebar-label); font-size: 11px; font-weight: 600; letter-spacing: .08em; }
.sidebar-nav { padding: 0 14px; display: flex; flex-direction: column; gap: 3px; }
.nav-item { display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-radius: 5px; color: #fff; font-size: 12.5px; font-weight: 500; white-space: nowrap; }
.nav-item svg { width: 18px; height: 18px; flex: none; }
.nav-item .chev { margin-left: auto; width: 14px; height: 14px; }
.nav-item.active { background: #fff; color: #1f2937; }
.nav-item.open { background: var(--elmis-sidebar-active); }
.nav-sub { display: flex; flex-direction: column; gap: 3px; padding: 4px 0 4px 12px; }
.nav-sub .nav-item { padding: 8px 10px; }
.sidebar-foot { margin-top: auto; }
.sidebar-signout { padding: 12px 26px; display: flex; gap: 12px; align-items: center; font-size: 12.5px; font-weight: 500; }
.sidebar-signout svg { width: 18px; height: 18px; }
.sidebar-user { border-top: 1px solid var(--elmis-sidebar-line); padding: 12px 16px; display: flex; gap: 10px; align-items: center; }
.sidebar-avatar { width: 34px; height: 34px; border-radius: 50%; background: #e5e7eb; color: #6b7280; display: grid; place-items: center; }
.sidebar-avatar svg { width: 16px; height: 16px; }
.sidebar-user-name { font-size: 13px; font-weight: 500; }
.sidebar-user-id { font-size: 11.5px; color: var(--elmis-sidebar-label); }

.main { min-width: 0; display: flex; flex-direction: column; }
.topbar { background: #fff; height: 76px; padding: 0 44px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.topbar-title { font-size: 17px; font-weight: 600; color: #374151; }
.content { padding: 44px 44px 110px; display: flex; flex-direction: column; gap: 20px; }

/* ---------- Cards ---------- */
.card { background: var(--elmis-card); border-radius: 12px; box-shadow: 0 1px 3px rgba(0,0,0,.08); padding: 26px 28px; }
.card-title-blue { color: var(--elmis-blue); font-size: 18px; font-weight: 600; margin: 0; }
.card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.card h2 { font-size: 16px; font-weight: 600; margin: 0 0 16px; }
.card hr { border: 0; border-top: 1px solid var(--elmis-line); margin: 22px 0; }
.page-title-card { background: #fafafb; border-radius: 12px; box-shadow: 0 1px 3px rgba(0,0,0,.1); padding: 20px 22px; }
.page-title-card h1 { margin: 0; font-size: 28px; font-weight: 700; }

/* ---------- Stepper (Labor Assisted Registration) ---------- */
.stepper { display: flex; align-items: flex-start; justify-content: center; gap: 8px; margin-top: 10px; }
.step { display: flex; flex-direction: column; align-items: center; min-width: 40px; }
.step-dot { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-weight: 600; font-size: 15px; background: var(--elmis-bg); color: #6b7280; }
.step.done .step-dot, .step.current .step-dot { background: var(--elmis-blue); color: #fff; }
.step.current { margin-top: -16px; min-width: 150px; }
.step.current .step-dot svg { width: 20px; height: 20px; }
.step-name { color: var(--elmis-blue); font-weight: 600; font-size: 12.5px; margin-top: 6px; }
.step-hint { color: var(--elmis-text-3); font-size: 10.5px; }
.step-line { width: 52px; height: 3px; background: var(--elmis-blue); margin-top: 18px; border-radius: 2px; }
.step-line.todo { background: repeating-linear-gradient(90deg, #111827 0 6px, transparent 6px 11px); height: 2px; margin-top: 18px; border-radius: 0; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 8px; border: 0; border-radius: 6px; padding: 9px 20px; font-size: 14px; font-weight: 500; cursor: pointer; text-decoration: none; }
.btn-primary { background: var(--elmis-blue); color: #fff; }
.btn-soft { background: var(--elmis-blue-soft); color: #fff; font-size: 15px; padding: 11px 22px; border-radius: 3px; }
.btn-action { background: var(--elmis-blue-action); color: #fff; padding: 7px 12px; border-radius: 4px; font-size: 12.5px; }
.btn-gray { background: var(--elmis-bg); color: #374151; }
.btn-outline { background: #f9fafb; border: 1px solid #d1d5db; color: #1f2937; }
.btn svg { width: 15px; height: 15px; }
.btn-row { display: flex; justify-content: space-between; align-items: center; }
.link-exit { color: var(--elmis-blue); font-size: 14px; }

/* ---------- Forms ---------- */
.field-box { border: 1px solid var(--elmis-line); border-radius: 6px; padding: 16px 18px; }
.field-box.tint { background: #eff6ff; border-color: #bfdbfe; }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.label { font-size: 12.5px; font-weight: 500; color: #1f2937; margin-bottom: 6px; display: block; }
.input, .select { width: 100%; background: #fff; border: 1px solid #d1d5db; border-radius: 6px; padding: 9px 12px; font-size: 14px; color: #111827; display: flex; justify-content: space-between; align-items: center; min-height: 38px; }
.select::after { content: ""; width: 7px; height: 7px; border-right: 1.5px solid #6b7280; border-bottom: 1.5px solid #6b7280; transform: rotate(45deg); margin: -4px 4px 0 8px; flex: none; }
.placeholder { color: #9ca3af; }
.check { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; }
.check i { width: 14px; height: 14px; border: 1.5px solid #6b7280; border-radius: 3px; display: inline-block; }
.radio { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; margin-right: 12px; }
.radio i { width: 13px; height: 13px; border: 1.5px solid #6b7280; border-radius: 50%; display: inline-block; }
.radio.on i { border: 4px solid var(--elmis-blue); }

/* ---------- Skill rows (step 4) ---------- */
.skill-row { background: var(--elmis-row); border: 1px solid var(--elmis-line); border-radius: 6px; padding: 14px 16px; display: flex; justify-content: space-between; align-items: center; font-size: 14px; margin-bottom: 8px; }
.icon-trash { color: var(--elmis-red); width: 16px; height: 16px; }

/* ---------- Tables (Job Seeker Management) ---------- */
.list-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.list-head h2 { margin: 0; font-size: 17px; }
.list-head p { margin: 4px 0 0; color: var(--elmis-text-2); font-size: 13px; }
.list-tools { display: flex; gap: 10px; align-items: center; }
.search { display: flex; border: 1px solid #d1d5db; border-radius: 6px; overflow: hidden; background: #fff; }
.search span { padding: 9px 12px; color: #9ca3af; width: 190px; font-size: 14px; }
.search b { background: #d1d5db; width: 40px; display: grid; place-items: center; color: #fff; }
.search b svg { width: 14px; height: 14px; }
.table-card { background: #fff; border-radius: 12px; box-shadow: 0 1px 3px rgba(0,0,0,.08); overflow: hidden; }
table.elmis { width: 100%; border-collapse: collapse; }
table.elmis th { text-align: left; font-weight: 500; color: var(--elmis-text-2); font-size: 13px; background: var(--elmis-row); padding: 12px 16px; }
table.elmis td { padding: 13px 16px; border-top: 1px solid var(--elmis-line); font-size: 13.5px; vertical-align: middle; }
.person { display: flex; gap: 12px; align-items: center; }
.avatar { width: 30px; height: 30px; border-radius: 50%; background: #e5e7eb; color: #4b5563; display: grid; place-items: center; font-size: 12px; flex: none; }
.person small { display: block; color: var(--elmis-text-3); font-size: 12.5px; }
.mono-id { font-weight: 500; }
.pill { display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; padding: 3px 10px; font-size: 12px; font-weight: 600; border: 1px solid; }
.pill::before { content: ""; width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid currentColor; }
.pill-red { color: var(--elmis-red); background: #fef2f2; border-color: #fecaca; }
.pill-green { color: var(--elmis-green); background: #f0fdf4; border-color: #bbf7d0; }
.pill-blue { color: #2563eb; background: #eff6ff; border-color: #bfdbfe; }
.row-actions { display: flex; gap: 10px; align-items: center; color: #111827; }
.row-actions svg { width: 16px; height: 16px; }
