/* ============================================================
   Simexa Careers, brand stylesheet (dark theme)
   Palette drawn from the Simexa logo: cyan → blue → violet
   ============================================================ */
:root {
  color-scheme: dark;
  --brand-cyan: #40cdfc;
  --brand-blue: #435ce9;
  --brand-blue-dark: #9daeff;   /* light on dark: links, active states */
  --brand-violet: #703ef8;
  --brand-violet-dark: #c0a8ff; /* light on dark */
  --grad: linear-gradient(135deg, #40cdfc 0%, #435ce9 48%, #703ef8 100%);
  --ink: #e9edfb;
  --ink-soft: #c6cde4;
  --muted: #8e97b3;
  --line: #222b4a;
  --bg: #0a0f1f;
  --card: #111730;
  --field: #0d1327;
  --hover: #16203c;
  --danger: #ff8080;
  --success: #4ade80;
  --warn: #fbbf24;
  --radius: 12px;
  --shadow: 0 1px 3px rgba(0, 0, 0, .45), 0 8px 24px rgba(0, 0, 0, .3);
  --shadow-lg: 0 10px 40px rgba(0, 0, 0, .55);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--font); color: var(--ink);
  background: var(--bg); line-height: 1.6; font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 .5em; font-weight: 700; color: var(--ink); }
h1 { font-size: 2.1rem; letter-spacing: -.02em; }
h2 { font-size: 1.5rem; letter-spacing: -.01em; }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
a { color: var(--brand-blue-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }
main { min-height: 62vh; }

.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 8px; top: 8px; background: var(--card); padding: 8px 12px; z-index: 100; border-radius: 8px; }

.container { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.container-narrow { max-width: 760px; margin: 0 auto; padding: 0 20px; }

/* ---------------- header ---------------- */
.site-header {
  background: #0d1327; border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 50;
}
.header-inner {
  max-width: 1120px; margin: 0 auto; padding: 0 20px;
  display: flex; align-items: center; gap: 18px; min-height: 66px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.3rem; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 50%; background: var(--grad);
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff; font-size: 1rem; font-weight: 800; flex: none;
}
.brand-name {
  background: var(--grad); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.brand-tag {
  font-size: .68rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--brand-violet-dark); background: rgba(112, 62, 248, .16); border: 1px solid rgba(160, 120, 255, .35);
  padding: 2px 8px; border-radius: 999px;
}
.main-nav { display: flex; align-items: center; gap: 6px; margin-left: auto; flex-wrap: wrap; }
.main-nav a {
  color: var(--ink-soft); font-weight: 500; font-size: .95rem;
  padding: 8px 12px; border-radius: 8px;
}
.main-nav a:hover { background: var(--hover); text-decoration: none; }
.main-nav a.active { color: var(--brand-blue-dark); background: #1b2547; }
.nav-toggle {
  display: none; margin-left: auto; background: none; border: 1px solid var(--line);
  border-radius: 8px; padding: 8px 10px; font-size: 1.05rem; cursor: pointer; color: var(--ink);
}

/* ---------------- footer ---------------- */
.site-footer { background: #070b16; color: #c0c8de; margin-top: 72px; border-top: 1px solid #16203c; }
.footer-inner {
  max-width: 1120px; margin: 0 auto; padding: 44px 20px 28px;
  display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px;
}
.site-footer h4 { color: #fff; font-size: .95rem; margin-bottom: 12px; }
.site-footer a { color: #c0c8de; display: block; padding: 3px 0; font-size: .92rem; }
.site-footer a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid #16203c; text-align: center; padding: 16px 20px;
  font-size: .82rem; color: #8e97b3;
}
.footer-brand { font-weight: 800; font-size: 1.2rem; color: #fff; margin-bottom: 8px; }
.footer-note { font-size: .85rem; color: #8e97b3; max-width: 380px; }

/* ---------------- buttons ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 600 .95rem var(--font); border-radius: 10px; cursor: pointer;
  padding: 11px 20px; border: 1px solid transparent; transition: .15s;
  text-decoration: none !important; line-height: 1.2; color: var(--ink);
}
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 2px 14px rgba(67, 92, 233, .45); }
.btn-primary:hover { filter: brightness(1.08); transform: translateY(-1px); }
.btn-secondary { background: var(--hover); border-color: #2a3554; color: var(--ink); }
.btn-secondary:hover { border-color: var(--brand-blue); color: var(--brand-blue-dark); }
.btn-ghost { background: transparent; color: var(--brand-blue-dark); }
.btn-ghost:hover { background: var(--hover); }
.btn-danger { background: rgba(239, 68, 68, .1); border-color: rgba(248, 113, 113, .4); color: var(--danger); }
.btn-danger:hover { background: rgba(239, 68, 68, .2); }
.btn-success { background: #16a34a; color: #fff; }
.btn-sm { padding: 6px 12px; font-size: .85rem; border-radius: 8px; }
.btn-lg { padding: 14px 28px; font-size: 1.05rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: not-allowed; transform: none !important; }
.btn-white { background: #fff; color: #3345d6; }

/* ---------------- hero ---------------- */
.hero {
  background: var(--grad); color: #fff; padding: 84px 0 92px;
  position: relative; overflow: hidden;
}
.hero::after {
  content: ''; position: absolute; right: -140px; top: -140px; width: 480px; height: 480px;
  border: 60px solid rgba(255, 255, 255, .08); border-radius: 50%;
}
.hero::before {
  content: ''; position: absolute; left: -110px; bottom: -180px; width: 380px; height: 380px;
  border: 46px solid rgba(255, 255, 255, .06); border-radius: 50%;
}
.hero .container { position: relative; z-index: 1; }
.hero h1 { font-size: 2.7rem; max-width: 640px; margin-bottom: 18px; color: #fff; }
.hero p { font-size: 1.15rem; max-width: 560px; opacity: .95; margin-bottom: 30px; }
.hero .btn-secondary { border-color: rgba(255,255,255,.5); background: rgba(255,255,255,.12); color: #fff; }
.hero-eyebrow {
  display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; background: rgba(255,255,255,.16); padding: 6px 14px;
  border-radius: 999px; margin-bottom: 18px;
}

/* ---------------- sections & cards ---------------- */
.section { padding: 56px 0 8px; }
.section-head { margin-bottom: 26px; }
.section-head p { color: var(--muted); max-width: 620px; }
.card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow);
}
.card + .card { margin-top: 16px; }
.card h3 { margin-bottom: 8px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.icon-dot {
  width: 42px; height: 42px; border-radius: 10px; background: var(--grad);
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-size: 1.15rem; margin-bottom: 14px;
}
.steps { counter-reset: step; }
.step { position: relative; padding-left: 56px; margin-bottom: 22px; }
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 0; top: 0; width: 38px; height: 38px; border-radius: 50%;
  background: var(--grad); color: #fff; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.step h3 { margin-bottom: 2px; }
.step p { color: var(--muted); margin: 0; }
.cta-band {
  background: var(--grad); border-radius: 16px; color: #fff; text-align: center;
  padding: 46px 26px; margin: 56px 0 0;
}
.cta-band h2 { color: #fff; }
.muted { color: var(--muted); }
.small { font-size: .87rem; }
.mt-0{margin-top:0}.mt-1{margin-top:8px}.mt-2{margin-top:16px}.mt-3{margin-top:24px}.mt-4{margin-top:36px}
.mb-2{margin-bottom:16px}
.flex { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.flex-between { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.right { margin-left: auto; }
.center { text-align: center; }
.divider { border: 0; border-top: 1px solid var(--line); margin: 20px 0; }

/* ---------------- chips & status badges ---------------- */
.chip {
  display: inline-flex; align-items: center; gap: 5px; font-size: .78rem; font-weight: 600;
  padding: 3px 11px; border-radius: 999px; background: var(--hover);
  border: 1px solid #26314f; color: var(--ink-soft); white-space: nowrap;
}
.chip-blue { background: rgba(67, 92, 233, .18); border-color: rgba(125, 145, 255, .4); color: #adbcff; }
.chip-violet { background: rgba(112, 62, 248, .16); border-color: rgba(165, 130, 255, .4); color: #c8b3ff; }
.chip-green { background: rgba(34, 197, 94, .14); border-color: rgba(74, 222, 128, .35); color: #86efac; }
.chip-amber { background: rgba(245, 158, 11, .14); border-color: rgba(251, 191, 36, .35); color: #fcd38d; }
.chip-red { background: rgba(239, 68, 68, .15); border-color: rgba(248, 113, 113, .4); color: #fda4a4; }
.chip-gray { background: #1a2340; border-color: #2a3554; color: #aab3cc; }
.chip-indigo { background: rgba(99, 102, 241, .18); border-color: rgba(129, 140, 248, .4); color: #b4bcff; }
.chip-purple { background: rgba(168, 85, 247, .16); border-color: rgba(192, 132, 252, .4); color: #dcbcff; }

/* ---------------- job cards ---------------- */
.job-card { display: block; color: inherit; transition: .15s; }
.job-card:hover { text-decoration: none; box-shadow: var(--shadow-lg); transform: translateY(-2px); border-color: #3d4f8a; }
.job-card h3 { color: var(--brand-blue-dark); }
.job-meta { display: flex; gap: 8px; flex-wrap: wrap; margin: 10px 0 12px; }
.job-summary { color: var(--muted); font-size: .93rem; margin: 0; }
.job-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.detail-list { padding-left: 20px; margin: 0 0 1em; }
.detail-list li { margin-bottom: 7px; }

/* ---------------- forms ---------------- */
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 6px; }
.field .hint { font-weight: 400; color: var(--muted); font-size: .82rem; margin-top: 4px; }
.req { color: var(--danger); }
input[type=text], input[type=email], input[type=tel], input[type=password],
input[type=url], input[type=date], input[type=number], select, textarea {
  width: 100%; padding: 11px 13px; border: 1px solid #2a3554; border-radius: 10px;
  font: 400 .95rem var(--font); color: var(--ink); background: var(--field); transition: .15s;
}
input::placeholder, textarea::placeholder { color: #5e6885; }
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--brand-blue); box-shadow: 0 0 0 3px rgba(67, 92, 233, .28);
}
input[disabled] { background: #10182e; color: var(--muted); }
textarea { min-height: 110px; resize: vertical; }
.input-error { border-color: var(--danger) !important; }
.error-text { color: var(--danger); font-size: .83rem; margin-top: 4px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.form-grid-3 { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 0 18px; }
.check-row { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 12px; }
.check-row input { width: 18px; height: 18px; margin-top: 3px; flex: none; accent-color: var(--brand-blue); }
.check-row label { font-size: .93rem; font-weight: 400; }
.checkbox-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px 16px; }
.radio-inline { display: flex; gap: 18px; flex-wrap: wrap; padding: 4px 0; }
.radio-inline label { display: flex; align-items: center; gap: 7px; font-weight: 400; font-size: .93rem; }
.radio-inline input { accent-color: var(--brand-blue); width: 16px; height: 16px; }
.form-error-banner {
  background: rgba(239, 68, 68, .12); border: 1px solid rgba(248, 113, 113, .35); color: #ffb4b4;
  padding: 12px 16px; border-radius: 10px; margin-bottom: 16px; font-size: .92rem;
}
.notice {
  background: rgba(67, 92, 233, .13); border: 1px solid rgba(125, 145, 255, .35); color: #bcc8ff;
  padding: 12px 16px; border-radius: 10px; font-size: .92rem; margin-bottom: 16px;
}
.notice-amber { background: rgba(245, 158, 11, .1); border-color: rgba(251, 191, 36, .3); color: #f8d190; }
.notice-green { background: rgba(34, 197, 94, .1); border-color: rgba(74, 222, 128, .3); color: #97e8b3; }

/* ---------------- auth card ---------------- */
.auth-wrap { max-width: 440px; margin: 56px auto; padding: 0 20px; }
.auth-card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 34px; box-shadow: var(--shadow-lg); }
.auth-card h1 { font-size: 1.5rem; }
.auth-sub { color: var(--muted); font-size: .93rem; margin-bottom: 22px; }
.auth-alt { text-align: center; margin-top: 18px; font-size: .92rem; color: var(--muted); }

/* ---------------- wizard ---------------- */
.wizard-wrap { max-width: 820px; margin: 36px auto 60px; padding: 0 20px; }
.wizard-progress { margin-bottom: 22px; }
.wizard-bar { height: 8px; background: #1a2340; border-radius: 999px; overflow: hidden; }
.wizard-bar-fill { height: 100%; background: var(--grad); border-radius: 999px; transition: width .3s; }
.wizard-steps-label { display: flex; justify-content: space-between; font-size: .84rem; color: var(--muted); margin-top: 8px; }
.wizard-card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 32px; box-shadow: var(--shadow); }
.wizard-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 26px; }
.save-indicator { font-size: .82rem; color: var(--success); }
.repeat-item { border: 1px solid var(--line); border-radius: 12px; padding: 18px 18px 6px; margin-bottom: 16px; background: #0e1630; position: relative; }
.repeat-item .remove-item { position: absolute; top: 10px; right: 10px; }
.review-block { margin-bottom: 20px; }
.review-block h3 { font-size: 1rem; color: var(--brand-blue-dark); border-bottom: 1px solid var(--line); padding-bottom: 6px; }
.review-row { display: flex; gap: 10px; font-size: .92rem; padding: 3px 0; flex-wrap: wrap; }
.review-row b { min-width: 170px; color: var(--ink-soft); font-weight: 600; flex: none; }
.review-row span { min-width: 0; overflow-wrap: anywhere; }
.pre-wrap { white-space: pre-wrap; word-break: break-word; }

/* ---------------- tables ---------------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; background: var(--card); }
table.data { width: 100%; border-collapse: collapse; font-size: .9rem; min-width: 720px; }
table.data th {
  text-align: left; padding: 11px 14px; background: #0e1630; color: #9aa4c2;
  font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; border-bottom: 1px solid var(--line);
}
table.data td { padding: 11px 14px; border-bottom: 1px solid #1a2340; vertical-align: middle; }
table.data tr:last-child td { border-bottom: 0; }
table.data tr.clickable { cursor: pointer; }
table.data tr.clickable:hover td { background: #131c38; }

/* ---------------- admin ---------------- */
.admin-layout { display: grid; grid-template-columns: 220px 1fr; gap: 28px; max-width: 1240px; margin: 28px auto 60px; padding: 0 20px; align-items: start; }
.admin-side { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 12px; position: sticky; top: 84px; }
.admin-side a { display: block; padding: 10px 12px; border-radius: 8px; color: var(--ink-soft); font-weight: 500; font-size: .93rem; }
.admin-side a:hover { background: var(--hover); text-decoration: none; }
.admin-side a.active { background: #1b2547; color: var(--brand-blue-dark); }
.admin-side .side-label { font-size: .72rem; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); padding: 12px 12px 4px; }
.stat-card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; }
.stat-card .stat-num { font-size: 1.9rem; font-weight: 800; color: var(--brand-blue-dark); line-height: 1.1; }
.stat-card .stat-label { font-size: .84rem; color: var(--muted); }
.bar-row { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; font-size: .87rem; }
.bar-row .bar-label { width: 190px; flex: none; color: var(--ink-soft); }
.bar-row .bar-track { flex: 1; background: #1a2340; border-radius: 999px; height: 10px; overflow: hidden; }
.bar-row .bar-fill { height: 100%; background: var(--grad); border-radius: 999px; }
.bar-row .bar-num { width: 34px; text-align: right; font-weight: 600; }
.detail-grid { display: grid; grid-template-columns: 1fr 420px; gap: 24px; align-items: start; }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { position: relative; padding: 0 0 16px 22px; border-left: 2px solid #2a3554; margin-left: 6px; font-size: .88rem; }
.timeline li::before { content: ''; position: absolute; left: -7px; top: 3px; width: 12px; height: 12px; border-radius: 50%; background: var(--grad); }
.timeline li:last-child { padding-bottom: 2px; }
.timeline .tl-when { color: var(--muted); font-size: .8rem; }
.note-item { background: rgba(245, 158, 11, .09); border: 1px solid rgba(251, 191, 36, .28); border-radius: 10px; padding: 12px 14px; margin-bottom: 10px; font-size: .9rem; }
.note-item .note-meta { font-size: .78rem; color: #e0b463; margin-top: 6px; }
.msg-item { background: rgba(67, 92, 233, .12); border: 1px solid rgba(125, 145, 255, .3); border-radius: 10px; padding: 12px 14px; margin-bottom: 10px; font-size: .9rem; }
.msg-item .msg-meta { font-size: .78rem; color: #9daeff; margin-top: 6px; }
.filters-bar { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; align-items: center; }
.filters-bar select, .filters-bar input { width: auto; min-width: 160px; padding: 9px 12px; }
.filters-bar input[type=text] { flex: 1; min-width: 200px; }

/* ---------------- dashboard ---------------- */
.app-status-card { border-left: 4px solid var(--brand-blue); }
.page-head { padding: 40px 0 6px; }
.page-head p { color: var(--muted); max-width: 640px; }
.empty-state { text-align: center; padding: 54px 20px; color: var(--muted); background: #0e1630; border: 1px dashed #2a3554; border-radius: 14px; }

/* ---------------- toast & modal ---------------- */
#toast-root { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); z-index: 200; display: flex; flex-direction: column; gap: 8px; align-items: center; }
.toast {
  background: #222b4a; color: #fff; padding: 12px 20px; border-radius: 10px; border: 1px solid #33406b;
  font-size: .92rem; box-shadow: var(--shadow-lg); animation: toastIn .25s ease; max-width: 92vw;
}
.toast-error { background: #7f1d1d; border-color: #b91c1c; }
.toast-success { background: #14532d; border-color: #16a34a; }
@keyframes toastIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.modal-backdrop { position: fixed; inset: 0; background: rgba(3, 6, 16, .72); z-index: 150; display: flex; align-items: center; justify-content: center; padding: 20px; }
.modal { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 26px; max-width: 460px; width: 100%; box-shadow: var(--shadow-lg); }
.modal h3 { margin-bottom: 8px; }
.modal p { color: var(--muted); font-size: .94rem; }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 20px; }

/* ---------------- misc ---------------- */
.page-loading { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 110px 20px; color: var(--muted); }
.spinner { width: 34px; height: 34px; border: 3px solid #2a3554; border-top-color: var(--brand-cyan); border-radius: 50%; animation: spin .8s linear infinite; margin-bottom: 12px; }
@keyframes spin { to { transform: rotate(360deg); } }
.legal-page { max-width: 780px; margin: 0 auto; padding: 44px 20px 20px; }
.legal-page h2 { margin-top: 34px; font-size: 1.2rem; }
.legal-page ul { margin: 0 0 1em; padding-left: 22px; }
.legal-page li { margin-bottom: 6px; }
.counsel-note { background: rgba(245, 158, 11, .1); border: 1px solid rgba(251, 191, 36, .3); color: #f8d190; border-radius: 10px; padding: 14px 18px; font-size: .9rem; margin: 22px 0; }
.status-select { padding: 7px 10px; font-size: .87rem; border-radius: 8px; width: auto; }

/* ---------------- official logo image ---------------- */
.brand-logo { height: 34px; width: auto; display: block; }

/* ---------------- responsive ---------------- */
@media (max-width: 960px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .job-list { grid-template-columns: 1fr; }
  .detail-grid { grid-template-columns: 1fr; }
  .admin-layout { grid-template-columns: 1fr; }
  .admin-side { position: static; display: flex; flex-wrap: wrap; gap: 4px; }
  .admin-side .side-label { display: none; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  h1 { font-size: 1.65rem; }
  .hero { padding: 56px 0 62px; }
  .hero h1 { font-size: 1.9rem; }
  .grid-2, .grid-3, .grid-4, .form-grid, .form-grid-3, .checkbox-grid { grid-template-columns: 1fr; }
  .nav-toggle { display: block; }
  .main-nav { display: none; width: 100%; flex-direction: column; align-items: stretch; padding-bottom: 12px; }
  .main-nav.open { display: flex; }
  .main-nav .btn { width: 100%; }
  .header-inner { flex-wrap: wrap; }
  .wizard-card, .auth-card { padding: 22px; }
  .review-row { flex-direction: column; gap: 0; }
  .footer-inner { grid-template-columns: 1fr; }
  .wizard-steps-label span:not(.current) { display: none; }
  .brand-logo { height: 28px; }
}
