* { box-sizing: border-box; }
body { margin: 0; font-family: system-ui, -apple-system, sans-serif; color: #1a202c; background: #f7fafc; }
a { color: #2b6cb0; text-decoration: none; }
a:hover { text-decoration: underline; }

.nav { display: flex; justify-content: space-between; align-items: center; padding: 0.75rem 1.5rem; background: #1a365d; }
.nav a, .nav .link-btn { color: #e2e8f0; margin-left: 1rem; }
.brand { font-weight: 700; font-size: 1.1rem; margin-left: 0 !important; }
.nav-links { display: flex; align-items: center; }
.inline { display: inline; }
.link-btn { background: none; border: none; cursor: pointer; font: inherit; padding: 0; }

.container { max-width: 1100px; margin: 1.5rem auto; padding: 0 1rem; }

.flash { background: #c6f6d5; border: 1px solid #68d391; padding: 0.6rem 1rem; border-radius: 6px; margin-bottom: 1rem; }
.flash.error { background: #fed7d7; border-color: #fc8181; }
.flash ul { margin: 0; padding-left: 1.2rem; }

.card { background: #fff; border: 1px solid #e2e8f0; border-radius: 8px; padding: 1.25rem; margin-bottom: 1rem; }
.grid { display: grid; gap: 1rem; }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }

.stat { text-align: center; }
.stat .num { font-size: 1.8rem; font-weight: 700; }
.stat .label { color: #718096; font-size: 0.85rem; }

table { width: 100%; border-collapse: collapse; background: #fff; }
th, td { text-align: left; padding: 0.55rem 0.75rem; border-bottom: 1px solid #e2e8f0; font-size: 0.92rem; }
th { background: #edf2f7; font-weight: 600; }
tr:hover td { background: #f7fafc; }

.badge { display: inline-block; padding: 0.15rem 0.55rem; border-radius: 999px; font-size: 0.78rem; background: #e2e8f0; }
.badge.strong_fit, .badge.approved, .badge.docs_complete, .badge.deployed, .badge.active { background: #c6f6d5; }
.badge.possible_fit, .badge.review, .badge.invited_test, .badge.test_done { background: #fefcbf; }
.badge.weak_fit, .badge.emigration, .badge.visa { background: #feebc8; }
.badge.not_fit, .badge.rejected, .badge.not_approved, .badge.ended { background: #fed7d7; }

form.stack label { display: block; margin: 0.8rem 0 0.25rem; font-weight: 600; font-size: 0.9rem; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=date],
select, textarea { width: 100%; padding: 0.5rem; border: 1px solid #cbd5e0; border-radius: 6px; font: inherit; }
textarea { min-height: 110px; }
button.btn, a.btn { display: inline-block; margin-top: 1rem; background: #2b6cb0; color: #fff; border: none; padding: 0.55rem 1.2rem; border-radius: 6px; cursor: pointer; font: inherit; }
button.btn:hover, a.btn:hover { background: #2c5282; text-decoration: none; }
.btn.small { padding: 0.25rem 0.7rem; font-size: 0.82rem; margin-top: 0; }

.muted { color: #718096; font-size: 0.88rem; }
.score { font-weight: 700; }
.filters { display: flex; gap: 0.5rem; margin-bottom: 1rem; flex-wrap: wrap; }
.filters select { width: auto; }
.pagination { margin-top: 1rem; }
.lang-switch { margin-left: 1.2rem; padding-left: 1rem; border-left: 1px solid #4a5568; }
.lang-switch a { margin-left: 0.5rem; font-size: 0.8rem; opacity: 0.7; }
.lang-switch a.active { opacity: 1; font-weight: 700; text-decoration: underline; }
.pagination svg { display: none; }

.pw-wrap { position: relative; display: block; }
.pw-wrap input { padding-right: 2.6rem; }
.pw-eye { position: absolute; right: 0.55rem; top: 50%; transform: translateY(-50%); background: none; border: none; cursor: pointer; font-size: 1.1rem; line-height: 1; padding: 0.15rem; opacity: 0.55; color: #5B6B85; }
.pw-eye:hover { opacity: 1; }

/* Utilities - replace inline style attributes so the CSP can drop
   'unsafe-inline' for styles. */
.narrow-420 { max-width: 420px; }
.narrow-440 { max-width: 440px; }
.narrow-480 { max-width: 480px; }
.narrow-560 { max-width: 560px; }
.center-y2 { margin-left: auto; margin-right: auto; margin-top: 2rem; }
.center-y3 { margin-left: auto; margin-right: auto; margin-top: 3rem; }
.hr-gap { margin: 1.5rem 0; }
.lbl-plain { font-weight: normal; }
.lbl-inline { display: inline-block; font-weight: normal; margin-right: 1rem; }
.danger-text { color: #c53030; }
.btn-danger { background: #c53030; }
.hidden { display: none; }
.pre-line { white-space: pre-line; }
.mb-1 { margin-bottom: 1rem; }
.mt-1 { margin-top: 1rem; }
