/* ═══════════════════════════════════════════════════════════
   TSAU Recruitment Platform — Main Stylesheet
   Colors: Deep Green (#1B5E20) + Gold (#FFD600)
   Typography: Inter (body), Outfit (headings)
   ═══════════════════════════════════════════════════════════ */

/* ── CSS Variables ──────────────────────────────────────── */

:root {
    --green-900: #064E3B;
    --green-800: #065F46;
    --green-700: #047857;
    --green-600: #059669;
    --green-500: #10B981;
    --green-400: #34D399;
    --green-300: #6EE7B7;
    --green-200: #A7F3D0;
    --green-100: #D1FAE5;
    --green-50:  #ECFDF5;

    --gold-500: #F59E0B;
    --gold-400: #FBBF24;
    --gold-300: #FCD34D;
    --gold-200: #FDE68A;

    --gray-900: #0F172A;
    --gray-800: #1E293B;
    --gray-700: #334155;
    --gray-600: #475569;
    --gray-500: #64748B;
    --gray-400: #94A3B8;
    --gray-300: #CBD5E1;
    --gray-200: #E2E8F0;
    --gray-100: #F1F5F9;
    --gray-50:  #F8FAFC;

    --danger: #EF4444;
    --danger-bg: #FEF2F2;
    --warning: #F59E0B;
    --warning-bg: #FFFBEB;
    --info: #3B82F6;
    --info-bg: #EFF6FF;
    --success: #10B981;
    --success-bg: #ECFDF5;

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 32px;
    --radius-full: 9999px;

    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08), 0 2px 4px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 12px 24px rgba(0, 0, 0, 0.1), 0 4px 8px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 24px 48px rgba(0, 0, 0, 0.15), 0 12px 16px rgba(0, 0, 0, 0.08);
    --shadow-glow: 0 0 40px rgba(16, 185, 129, 0.2);

    --transition-fast: 200ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 300ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);
}


/* ── Reset & Base ──────────────────────────────────────── */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 15px;
    line-height: 1.6;
    color: var(--gray-800);
    background: var(--gray-50);
    min-height: 100vh;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Outfit', 'Inter', sans-serif;
    font-weight: 700;
    line-height: 1.2;
    color: var(--gray-900);
}

a {
    color: var(--green-700);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--green-500);
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ── Buttons ───────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.2rem;
    border: none;
    border-radius: var(--radius-md);
    font-family: 'Inter', sans-serif;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-base);
    text-decoration: none;
    white-space: nowrap;
    line-height: 1.4;
}

.btn-primary {
    background: linear-gradient(135deg, var(--green-700), var(--green-600));
    color: white;
    box-shadow: 0 4px 12px rgba(27, 94, 32, 0.3);
}


.btn-primary:hover {
    background: linear-gradient(135deg, var(--green-600), var(--green-500));
    box-shadow: 0 4px 16px rgba(27, 94, 32, 0.4);
    transform: translateY(-1px);
    color: white;
}

.btn-outline {
    background: transparent;
    color: var(--gray-600);
    border: 1.5px solid var(--gray-300);
}

.btn-outline:hover {
    border-color: var(--gray-400);
    background: var(--gray-100);
    color: var(--gray-700);
}

.btn-ghost {
    background: transparent;
    color: var(--gray-600);
    padding: 0.5rem 0.8rem;
}

.btn-ghost:hover {
    background: var(--gray-100);
    color: var(--gray-800);
}

.btn-ghost.active {
    background: var(--green-50);
    color: var(--green-700);
}

.btn-danger {
    color: var(--danger) !important;
}

.btn-danger:hover {
    background: var(--danger-bg) !important;
}

.btn-sm {
    padding: 0.4rem 0.9rem;
    font-size: 0.8rem;
}

.btn-xs {
    padding: 0.3rem 0.6rem;
    font-size: 0.75rem;
}

.btn-lg {
    padding: 0.8rem 1.8rem;
    font-size: 1rem;
}

.btn-full {
    width: 100%;
    justify-content: center;
}

/* ── Badges ────────────────────────────────────────────── */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.7rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
}

.badge-primary {
    background: var(--green-100);
    color: var(--green-800);
}

.badge-success {
    background: var(--success-bg);
    color: #065F46;
}

.badge-warning {
    background: var(--warning-bg);
    color: #92400E;
}

.badge-danger {
    background: var(--danger-bg);
    color: #991B1B;
}

.badge-info {
    background: var(--info-bg);
    color: #1E40AF;
}

.badge-muted {
    background: var(--gray-100);
    color: var(--gray-500);
}

.badge-lg {
    padding: 0.4rem 1rem;
    font-size: 0.9rem;
}

/* ── Flash Messages ────────────────────────────────────── */
.flash-msg {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.8rem 1.2rem;
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    margin-bottom: 0.75rem;
    animation: slideDown 0.3s ease;
}

.flash-error {
    background: var(--danger-bg);
    color: #991B1B;
    border-left: 3px solid var(--danger);
}

.flash-success {
    background: var(--success-bg);
    color: #065F46;
    border-left: 3px solid var(--success);
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.important-warning {
    background: var(--danger-bg);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    margin-bottom: 2rem;
    animation: slideDown 0.4s ease;
}

.important-warning-title {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: #991B1B;
    font-weight: 800;
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.important-warning-text {
    color: #991B1B;
    font-size: 0.9rem;
    line-height: 1.6;
    opacity: 0.9;
}

/* ── Form Elements ─────────────────────────────────────── */
.form-group {
    margin-bottom: 1.2rem;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 0.4rem;
}

.required {
    color: var(--danger);
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="password"],
input[type="number"],
textarea,
select {
    width: 100%;
    padding: 0.7rem 1rem;
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius-md);
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    color: var(--gray-800);
    background: white;
    transition: all var(--transition-fast);
    outline: none;
}

input:focus,
textarea:focus,
select:focus {
    border-color: var(--green-400);
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.15);
}

textarea {
    resize: vertical;
    min-height: 80px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}

.form-group-full {
    grid-column: 1 / -1;
}

.checkbox-label {
    display: flex !important;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
}

/* ═══════════════════════════════════════════════════════════
   CONSENT PAGE
   ═══════════════════════════════════════════════════════════ */
.consent-page {
    background: linear-gradient(135deg, var(--green-900) 0%, var(--green-800) 50%, #0a2e12 100%);
    min-height: 100vh;
}

.consent-backdrop {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

.consent-backdrop::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(ellipse at 30% 30%, rgba(255, 214, 0, 0.08) 0%, transparent 60%),
        radial-gradient(ellipse at 70% 70%, rgba(76, 175, 80, 0.1) 0%, transparent 60%);
    animation: bgShift 20s ease-in-out infinite alternate;
}

@keyframes bgShift {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(-5%, -3%);
    }
}

.consent-container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 520px;
}

.consent-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    box-shadow: var(--shadow-xl), 0 0 80px rgba(27, 94, 32, 0.2);
    animation: cardAppear 0.6s ease;
}

@keyframes cardAppear {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.97);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.consent-header {
    text-align: center;
    margin-bottom: 2rem;
}

.consent-logo {
    margin-bottom: 1rem;
    animation: logoPulse 3s ease-in-out infinite;
}

@keyframes logoPulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

.consent-header h1 {
    font-size: 1.3rem;
    color: white;
    font-weight: 700;
    margin-bottom: 0.3rem;
}

.consent-subtitle {
    color: var(--gold-500);
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.consent-body {
    text-align: center;
    margin-bottom: 1.5rem;
}

.consent-icon {
    margin-bottom: 1rem;
}

.consent-body h2 {
    font-size: 1.1rem;
    color: var(--gray-200);
    margin-bottom: 1rem;
}

.consent-text {
    text-align: left;
    color: var(--gray-400);
    font-size: 0.85rem;
    line-height: 1.7;
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-md);
    padding: 1.2rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    max-height: 220px;
    overflow-y: auto;
}

.consent-text p {
    margin-bottom: 0.8rem;
}

.consent-text strong {
    color: var(--gray-200);
}

.consent-text ul {
    list-style: none;
    padding-left: 0;
    margin: 0.5rem 0;
}

.consent-text ul li {
    padding: 0.2rem 0 0.2rem 1.5rem;
    position: relative;
}

.consent-text ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--green-400);
    font-weight: 600;
}

.consent-flash {
    margin-bottom: 1rem;
}

.consent-actions {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.consent-actions .btn {
    justify-content: center;
    padding: 0.9rem;
    font-size: 1rem;
}

.consent-actions .btn-primary {
    background: linear-gradient(135deg, var(--green-600), var(--green-500));
    box-shadow: 0 4px 20px rgba(76, 175, 80, 0.4);
}


.consent-actions .btn-primary:hover {
    box-shadow: 0 6px 30px rgba(76, 175, 80, 0.5);
}

.consent-actions .btn-outline {
    border-color: rgba(255, 255, 255, 0.15);
    color: var(--gray-400);
}

.consent-actions .btn-outline:hover {
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.05);
    color: var(--gray-300);
}

/* ── Language Switcher ─────────────────────────────────── */
.lang-switch,
.lang-switch-top {
    display: flex;
    gap: 0.3rem;
    align-items: center;
}

.lang-switch-top {
    justify-content: center;
    margin-bottom: 1.5rem;
}

.lang-btn {
    padding: 0.3rem 0.7rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--gray-500);
    text-decoration: none;
    transition: all var(--transition-fast);
    border: 1px solid transparent;
}

.lang-btn:hover {
    color: var(--green-700);
    background: var(--green-50);
}

.lang-btn.active {
    background: var(--green-700);
    color: white;
    border-color: var(--green-700);
}

/* On dark backgrounds */
.consent-page .lang-btn,
.admin-login-page .lang-btn {
    color: var(--gray-400);
}

.consent-page .lang-btn:hover,
.admin-login-page .lang-btn:hover {
    color: white;
    background: rgba(255, 255, 255, 0.1);
}

.consent-page .lang-btn.active,
.admin-login-page .lang-btn.active {
    background: var(--green-600);
    color: white;
    border-color: var(--green-600);
}

.navbar-actions {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

/* ── Brand Hero for internal pages ── */
.brand-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-bottom: 2.5rem;
}

.brand-hero h2 {
    color: white;
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-top: 1rem;
}

.brand-hero-icon {
    width: 64px;
    height: 64px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold-500);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    animation: iconFloat 3s ease-in-out infinite;
}

@keyframes iconFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }
}

/* ── Test Assessment Flow ── */
.test-assessment-container {
    max-width: 800px !important;
}

.question-block {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-lg);
    padding: 2rem;
    margin-bottom: 2rem;
    transition: all var(--transition-base);
}

.question-block:focus-within {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 214, 0, 0.3);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.question-text {
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1.5rem;
    line-height: 1.4;
    display: flex;
    gap: 1rem;
}

.question-number {
    color: var(--gold-500);
    font-family: 'Outfit', sans-serif;
    opacity: 0.8;
}

.options-grid {
    display: grid;
    gap: 0.75rem;
}

.option-card {
    position: relative;
    cursor: pointer;
    display: block;
}

.option-card input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.option-content {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    color: var(--gray-300);
    font-weight: 500;
    transition: all var(--transition-fast);
}

.option-card:hover .option-content {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.2);
    color: white;
    transform: translateX(4px);
}

.option-card input:checked+.option-content {
    background: rgba(255, 214, 0, 0.1);
    border-color: var(--gold-500);
    color: var(--gold-500);
    box-shadow: 0 0 15px rgba(255, 214, 0, 0.1);
}

.option-circle {
    width: 20px;
    height: 20px;
    border: 2px solid currentColor;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all var(--transition-fast);
}

.option-card input:checked+.option-content .option-circle::after {
    content: '';
    width: 10px;
    height: 10px;
    background: currentColor;
    border-radius: 50%;
}

.option-box {
    width: 20px;
    height: 20px;
    border: 2px solid currentColor;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all var(--transition-fast);
}

.option-card input:checked+.option-content .option-box::after {
    content: '✓';
    font-size: 14px;
    font-weight: 800;
}

.test-textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.04) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: var(--radius-md) !important;
    color: white !important;
    padding: 1rem !important;
    font-size: 1rem !important;
    transition: all var(--transition-base) !important;
}

.test-textarea:focus {
    background: rgba(255, 255, 255, 0.07) !important;
    border-color: var(--gold-500) !important;
    box-shadow: 0 0 0 4px rgba(255, 214, 0, 0.1) !important;
}

.test-item-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-bottom: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all var(--transition-base);
}

.test-item-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.test-item-info h4 {
    color: white;
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.test-item-info p {
    color: var(--gray-400);
    font-size: 0.9rem;
}

.test-item-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    font-weight: 600;
}

.test-item-status.done {
    color: var(--success);
}

/* ── Main Page ── */

/* Navbar */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--gray-200);
    box-shadow: var(--shadow-sm);
}


.navbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.7rem 1.5rem;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    text-decoration: none;
}

.brand-icon {
    flex-shrink: 0;
}

.brand-name {
    display: block;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--green-800);
}

.brand-sub {
    display: block;
    font-size: 0.7rem;
    color: var(--gray-500);
    font-weight: 500;
}

/* Hero */
.hero {
    position: relative;
    background: linear-gradient(135deg, var(--green-900) 0%, var(--green-800) 40%, var(--green-700) 100%);
    padding: 4rem 0 5rem;
    overflow: hidden;
}

.hero-slideshow {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    background-repeat: no-repeat;
}

.hero-slide.active {
    opacity: 1;
}

.hero-slideshow::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(13, 59, 19, 0.8) 0%, rgba(27, 94, 32, 0.7) 100%);
    z-index: 1;
}

@keyframes heroBg {
    0% {
        opacity: 0.7;
    }

    100% {
        opacity: 1;
    }
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.hero-title {
    font-family: 'Outfit', sans-serif;
    font-size: 2.2rem;
    font-weight: 800;
    color: white;
    margin-bottom: 0.8rem;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
}

.hero-subtitle {
    color: var(--green-200);
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* Status Check Card */
.status-check-card {
    background: rgba(255, 255, 255, 0.07);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-lg);
    padding: 1.8rem;
    max-width: 480px;
    margin: 0 auto;
    text-align: left;
}

.status-check-card h3 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: white;
    font-size: 1rem;
    margin-bottom: 1rem;
}

.status-check-form {
    display: flex;
    gap: 0.6rem;
}

.status-check-form input {
    flex: 1;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: white;
    padding: 0.7rem 1rem;
    border-radius: var(--radius-md);
    font-size: 1.1rem;
    letter-spacing: 4px;
    text-align: center;
    font-weight: 600;
}

.status-check-form input::placeholder {
    color: rgba(255, 255, 255, 0.35);
    font-size: 0.85rem;
    letter-spacing: normal;
}

.status-check-form input:focus {
    border-color: var(--gold-500);
    box-shadow: 0 0 0 3px rgba(255, 214, 0, 0.15);
    background: rgba(255, 255, 255, 0.12);
}

.status-result {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: var(--radius-md);
    animation: slideDown 0.3s ease;
}

.status-result.status-found {
    background: rgba(76, 175, 80, 0.15);
    border: 1px solid rgba(76, 175, 80, 0.3);
}

.status-result.status-error {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.status-result .sr-title {
    color: white;
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

.status-result .sr-row {
    display: flex;
    justify-content: space-between;
    color: var(--gray-300);
    font-size: 0.85rem;
    padding: 0.2rem 0;
}

.status-result .sr-row .sr-val {
    color: white;
    font-weight: 500;
}

.status-result .sr-error {
    color: #FCA5A5;
    font-size: 0.9rem;
}

/* Departments Section */
.departments-section {
    padding: 3rem 0;
    margin-top: -2rem;
    position: relative;
    z-index: 2;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: var(--gray-800);
}

.departments-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.dept-card {
    background: white;
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-200);
    overflow: hidden;
    transition: all var(--transition-base);
    box-shadow: var(--shadow-sm);
}

.dept-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--green-200);
}

.dept-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.2rem 1.5rem;
    cursor: pointer;
    transition: background var(--transition-fast);
}

.dept-header:hover {
    background: var(--gray-50);
}

.dept-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.dept-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, var(--green-50), var(--green-100));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--green-700);
    flex-shrink: 0;
}

.dept-info h3 {
    font-size: 1.05rem;
    margin-bottom: 0.1rem;
}

.dept-desc {
    font-size: 0.8rem;
    color: var(--gray-500);
}

.dept-meta {
    display: flex;
    align-items: center;
    gap: 0.7rem;
}

.chevron {
    color: var(--gray-400);
    transition: transform var(--transition-base);
}

.dept-card.open .chevron {
    transform: rotate(180deg);
}

.dept-vacancies {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    border-top: 0px solid transparent;
}

.dept-card.open .dept-vacancies {
    max-height: 2000px;
    border-top: 1px solid var(--gray-100);
}

.vacancy-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--gray-100);
    transition: background var(--transition-fast);
    text-decoration: none;
    color: inherit;
}

.vacancy-card:last-child {
    border-bottom: none;
}

.vacancy-card:hover {
    background: var(--green-50);
    color: var(--gray-800);
}

.vacancy-main {
    flex: 1;
    min-width: 0;
}

.vacancy-main h4 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.2rem;
    color: var(--gray-800);
}

.vacancy-desc {
    font-size: 0.8rem;
    color: var(--gray-500);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.vacancy-details {
    display: flex;
    gap: 1rem;
    flex-shrink: 0;
}

.vacancy-stat {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.78rem;
    color: var(--gray-500);
    white-space: nowrap;
}

.vacancy-stat svg {
    color: var(--green-500);
    flex-shrink: 0;
}

.vacancy-dates-brief {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    margin-top: 0.6rem;
}

.vac-date {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: var(--gray-500);
    font-weight: 500;
}

.vac-date svg {
    opacity: 0.6;
    color: var(--green-600);
}

.vac-date.deadline {
    color: var(--danger);
}

.vac-date.deadline svg {
    color: var(--danger);
    opacity: 0.8;
}

.vacancy-arrow {
    color: var(--gray-300);
    flex-shrink: 0;
    transition: transform var(--transition-fast);
}

.vacancy-card:hover .vacancy-arrow {
    transform: translateX(3px);
    color: var(--green-500);
}

.no-vacancies {
    padding: 2rem 1.5rem;
    text-align: center;
    color: var(--gray-400);
    font-size: 0.85rem;
}

.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background: white;
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-200);
}

.empty-state h3 {
    margin-top: 1rem;
    color: var(--gray-600);
    font-size: 1.2rem;
}

.empty-state p {
    color: var(--gray-400);
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

/* Footer */
.footer {
    background: var(--gray-900);
    color: var(--gray-400);
    padding: 2rem 0;
    margin-top: 3rem;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.85rem;
}

.footer-brand strong {
    color: var(--gold-500);
}

/* ═══════════════════════════════════════════════════════════
   VACANCY / APPLICATION FORM PAGE
   ═══════════════════════════════════════════════════════════ */
.form-section {
    padding: 2rem 0 3rem;
}

.form-header {
    text-align: center;
    margin-bottom: 2rem;
}

.form-dept-badge {
    display: inline-block;
    background: var(--green-100);
    color: var(--green-800);
    padding: 0.3rem 1rem;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 0.7rem;
}

.form-header h1 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.form-description {
    color: var(--gray-500);
    font-size: 0.95rem;
    max-width: 600px;
    margin: 0 auto 1rem;
}

.form-meta {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.form-meta span {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    color: var(--gray-500);
}

.form-meta svg {
    color: var(--green-500);
}

.application-form {
    max-width: 700px;
    margin: 0 auto;
}

.form-card {
    background: white;
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-200);
    padding: 1.5rem;
    margin-bottom: 1.2rem;
    box-shadow: var(--shadow-sm);
    transition: box-shadow var(--transition-base);
}

.form-card:hover {
    box-shadow: var(--shadow-md);
}

.form-card-title {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 1.05rem;
    color: var(--green-800);
    margin-bottom: 1.2rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid var(--gray-100);
}

.form-card-title svg {
    color: var(--green-500);
}

/* Upload Grid */
.upload-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 1rem;
}

.mandatory-notice {
    background: rgba(239, 68, 68, 0.08);
    border-left: 4px solid var(--danger);
    padding: 0.8rem 1rem;
    border-radius: 4px;
    margin-bottom: 1.5rem;
    font-size: 0.85rem;
    color: #991B1B;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    line-height: 1.4;
}

.mandatory-notice svg {
    color: var(--danger);
    flex-shrink: 0;
}

.upload-label {
    display: block;
    cursor: pointer;
}

.upload-label input[type="file"] {
    display: none;
}

.upload-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.2rem 0.5rem;
    border: 2px dashed var(--gray-200);
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
    text-align: center;
    min-height: 150px;
    color: var(--gray-400);
}

.upload-content:hover {
    border-color: var(--green-300);
    background: var(--green-50);
    color: var(--green-600);
}

.upload-content.has-file {
    border-color: var(--green-400);
    background: var(--green-50);
    border-style: solid;
}

.upload-content.is-required {
    border-color: rgba(239, 68, 68, 0.4);
    background: rgba(239, 68, 68, 0.02);
    position: relative;
}

.upload-content.is-required::after {
    content: attr(data-required-text);
    position: absolute;
    top: 6px;
    right: 6px;
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    padding: 2px 6px;
    border-radius: 4px;
    background: var(--danger);
    color: white;
    box-shadow: 0 2px 4px rgba(239, 68, 68, 0.2);
    transition: all var(--transition-base);
}

.upload-content.is-required.has-file {
    border-color: var(--green-400);
    background: var(--green-50);
}

.upload-content.is-required.has-file::after {
    content: '✓';
    background: var(--success);
    box-shadow: 0 2px 4px rgba(16, 185, 129, 0.2);
}

.upload-content svg {
    margin-bottom: 0.5rem;
}

.upload-title {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 0.2rem;
}

.upload-hint {
    font-size: 0.7rem;
    color: var(--gray-400);
}

.upload-content .file-preview-img {
    width: 100%;
    height: 100px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    margin-bottom: 0.3rem;
}

.upload-content .file-name {
    font-size: 0.7rem;
    color: var(--green-700);
    font-weight: 600;
    word-break: break-all;
}

/* ═══════════════════════════════════════════════════════════
   SUCCESS PAGE
   ═══════════════════════════════════════════════════════════ */
.success-page {
    background: linear-gradient(135deg, var(--green-900), var(--green-800));
    min-height: 100vh;
}

.success-backdrop {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.success-container {
    width: 100%;
    max-width: 500px;
}

.success-card {
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    text-align: center;
    animation: cardAppear 0.6s ease;
}

.success-icon {
    margin-bottom: 1.5rem;
}

.success-circle {
    stroke-dasharray: 230;
    stroke-dashoffset: 230;
    animation: circleIn 0.8s ease 0.3s forwards;
}

.success-check {
    stroke-dasharray: 60;
    stroke-dashoffset: 60;
    animation: checkIn 0.5s ease 0.9s forwards;
}

@keyframes circleIn {
    to {
        stroke-dashoffset: 0;
    }
}

@keyframes checkIn {
    to {
        stroke-dashoffset: 0;
    }
}

.success-card h1 {
    color: white;
    font-size: 1.6rem;
    margin-bottom: 0.5rem;
}

.success-subtitle {
    color: var(--green-300);
    font-size: 0.9rem;
    margin-bottom: 2rem;
}

.code-display {
    background: rgba(255, 214, 0, 0.1);
    border: 1px solid rgba(255, 214, 0, 0.2);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.code-label {
    display: block;
    color: var(--gold-300);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.code-number {
    font-family: 'Outfit', monospace;
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--gold-500);
    letter-spacing: 12px;
    text-shadow: 0 2px 20px rgba(255, 214, 0, 0.3);
    animation: codePulse 2s ease-in-out infinite;
}

@keyframes codePulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.03);
    }
}

.code-hint {
    display: block;
    color: var(--gray-400);
    font-size: 0.75rem;
    margin-top: 0.5rem;
}

.qr-display {
    margin-bottom: 1.5rem;
}

.qr-image {
    width: 180px;
    height: 180px;
    background: white;
    border-radius: var(--radius-md);
    padding: 8px;
    margin-bottom: 0.5rem;
}

.qr-hint {
    display: block;
    color: var(--gray-400);
    font-size: 0.75rem;
}

.success-info {
    background: rgba(255, 255, 255, 0.04);
    border-radius: var(--radius-md);
    padding: 1rem;
    margin-bottom: 1.5rem;
    text-align: left;
}

.info-row {
    display: flex;
    justify-content: space-between;
    padding: 0.4rem 0;
    font-size: 0.85rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.info-row:last-child {
    border-bottom: none;
}

.info-label {
    color: var(--gray-400);
}

.info-value {
    color: white;
    font-weight: 500;
}

/* ═══════════════════════════════════════════════════════════
   ADMIN PAGES
   ═══════════════════════════════════════════════════════════ */
.admin-login-page {
    background: linear-gradient(135deg, var(--gray-900), var(--gray-800));
    min-height: 100vh;
}

.admin-login-page .consent-header h1 {
    font-size: 1.2rem;
}

.admin-login-form {
    margin-top: 1.5rem;
}

.admin-login-form input {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.12);
    color: white;
}

.admin-login-form input:focus {
    border-color: var(--green-500);
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.15);
}

.admin-login-form input::placeholder {
    color: var(--gray-500);
}

.admin-login-form label {
    color: var(--gray-400) !important;
}

/* Admin Layout */
.admin-layout {
    display: flex;
    min-height: 100vh;
}

.admin-sidebar {
    width: 260px;
    background: var(--gray-900);
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
}

.sidebar-header {
    padding: 1.2rem 1.2rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 0.7rem;
}

.sidebar-title {
    display: block;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    color: white;
}

.sidebar-sub {
    display: block;
    font-size: 0.7rem;
    color: var(--gray-500);
}

.sidebar-nav {
    flex: 1;
    padding: 1rem 0.8rem;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.65rem 1rem;
    border-radius: var(--radius-md);
    color: var(--gray-400);
    font-size: 0.88rem;
    font-weight: 500;
    transition: all var(--transition-fast);
    text-decoration: none;
}

.sidebar-link:hover {
    background: rgba(255, 255, 255, 0.06);
    color: white;
}

.sidebar-link.active {
    background: linear-gradient(135deg, var(--green-800), var(--green-700));
    color: white;
    box-shadow: 0 2px 8px rgba(27, 94, 32, 0.3);
}

.sidebar-link svg {
    flex-shrink: 0;
}

.sidebar-link-danger:hover {
    color: var(--danger);
}

.sidebar-footer {
    padding: 0.8rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

/* Admin Main */
.admin-main {
    flex: 1;
    padding: 2rem;
    background: var(--gray-50);
    min-width: 0;
}

.admin-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.admin-header h1 {
    font-size: 1.5rem;
}

.admin-flash {
    margin-bottom: 1rem;
}

/* Admin Stats (Dashboard) */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: white;
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-200);
    padding: 1.3rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all var(--transition-base);
}

.stat-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.stat-icon.green {
    background: var(--green-100);
    color: var(--green-700);
}

.stat-icon.gold {
    background: var(--warning-bg);
    color: #92400E;
}

.stat-icon.blue {
    background: var(--info-bg);
    color: #1E40AF;
}

.stat-icon.red {
    background: var(--danger-bg);
    color: #991B1B;
}

.stat-value {
    font-family: 'Outfit', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--gray-900);
    line-height: 1;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--gray-500);
    margin-top: 0.2rem;
}

/* Admin Tables */
.admin-table-wrap {
    background: white;
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-200);
    overflow-x: auto;
    box-shadow: var(--shadow-sm);
    max-width: 100%;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.admin-table th {
    background: var(--gray-50);
    padding: 1rem 1.25rem;
    text-align: left;
    font-weight: 700;
    font-size: 0.75rem;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 2px solid var(--gray-100);
    white-space: nowrap;
}

.admin-table td {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--gray-100);
    vertical-align: middle;
    word-break: break-word; /* Allow long questions to wrap */
}

.admin-table tbody tr {
    transition: background var(--transition-fast);
}

.admin-table tbody tr:hover {
    background: var(--gray-50);
}

.admin-table tbody tr:last-child td {
    border-bottom: none;
}

.actions-cell {
    display: flex;
    gap: 0.4rem;
    white-space: nowrap;
    min-width: 140px; /* Ensure buttons don't shrink too much */
    justify-content: flex-end;
}

.empty-cell {
    text-align: center;
    color: var(--gray-400);
    padding: 2rem !important;
}

.app-code {
    font-family: 'Outfit', monospace;
    letter-spacing: 2px;
    color: var(--green-700);
}

/* Filter Group */
.header-actions-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.search-form-wrap {
    flex: 1;
    max-width: 450px;
    min-width: 280px;
}

.search-form {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.search-form input {
    flex: 1;
    padding: 0.45rem 0.9rem !important;
    font-size: 0.85rem !important;
    border-radius: var(--radius-md) !important;
}

.filter-group {
    display: flex;
    gap: 0.3rem;
    flex-wrap: wrap;
}

/* ── Admin Tabs ─────────────────────────────────────────── */
.admin-editor-tabs {
    display: flex;
    gap: 0.25rem;
    border-bottom: 2px solid var(--gray-200);
    margin-bottom: 0.75rem;
    margin-top: 1rem;
    overflow-x: auto;
    scrollbar-width: none;
}
.admin-editor-tabs::-webkit-scrollbar { display: none; }

.admin-tab {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.55rem 1rem;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--gray-500);
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
}
.admin-tab:hover { color: var(--green-700); background: var(--green-50); }
.admin-tab.active {
    color: var(--green-700);
    border-bottom-color: var(--green-600);
    background: var(--green-50);
}
.admin-tab-panel { display: none; }
.admin-tab-panel.active { display: block; }

/* ── Test/Question Styles (Variants List) ───────────────── */
.variants-list-container {
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    background: var(--gray-50);
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.02);
}
.variant-card {
    background: white;
    padding: 1rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--gray-200);
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-sm);
    margin-bottom: 0.75rem;
}
.variant-card:hover {
    border-color: var(--gold-400);
    box-shadow: 0 4px 12px rgba(255, 214, 0, 0.15);
    transform: translateY(-2px);
}
.variant-card input[type="text"] {
    background: var(--gray-50) !important;
    border-color: var(--gray-200) !important;
    font-weight: 500;
    height: 42px;
    font-size: 0.95rem !important;
    transition: all 0.2s;
}
.variant-card input[type="text"]:focus {
    border-color: var(--gold-500) !important;
    background: white !important;
    box-shadow: 0 0 0 4px rgba(255, 214, 0, 0.1) !important;
}

.variant-checkbox-wrap {
    position: relative;
    width: 28px;
    height: 28px;
    flex-shrink: 0;
}
.variant-checkbox-wrap input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    width: 100%;
    height: 100%;
    z-index: 2;
}
.variant-checkmark {
    position: absolute;
    top: 0;
    left: 0;
    width: 28px;
    height: 28px;
    background: white;
    border: 2px solid var(--gray-300);
    border-radius: 8px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}
.variant-checkbox-wrap:hover .variant-checkmark {
    border-color: var(--gold-500);
}
.variant-checkbox-wrap input:checked ~ .variant-checkmark {
    background: var(--gold-500);
    border-color: var(--gold-500);
    box-shadow: 0 4px 12px rgba(255, 214, 0, 0.3);
}
.variant-checkmark::after {
    content: "";
    width: 6px;
    height: 12px;
    border: solid white;
    border-width: 0 3px 3px 0;
    transform: rotate(45deg);
    display: none;
    margin-top: -2px;
}
.variant-checkbox-wrap input:checked ~ .variant-checkmark::after {
    display: block;
}

.btn-add-variant {
    background: white;
    border: 2px dashed var(--gray-200);
    color: var(--gray-500);
    padding: 0.8rem !important;
    border-radius: var(--radius-md) !important;
    transition: all 0.2s;
}
.btn-add-variant:hover {
    background: var(--gold-50);
    border-color: var(--gold-400);
    color: var(--gold-600);
    border-style: solid;
}

/* ── Modals ─────────────────────────────────────────────── */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.modal.show {
    display: flex;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.modal-content {
    position: relative;
    z-index: 1;
    background: white;
    border-radius: var(--radius-lg);
    padding: 2rem;
    width: 100%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-xl);
    animation: cardAppear 0.25s ease;
}

.modal-content h3 {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.6rem;
    margin-top: 1.5rem;
}

/* ── Detail Page ────────────────────────────────────────── */
.detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.2rem;
}

.detail-card {
    background: white;
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-200);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
}

.detail-card h3 {
    font-size: 1rem;
    margin-bottom: 1rem;
    padding-bottom: 0.7rem;
    border-bottom: 1px solid var(--gray-100);
}

.detail-card-full {
    grid-column: 1 / -1;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--gray-50);
    font-size: 0.88rem;
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-label {
    color: var(--gray-500);
}

.detail-value {
    color: var(--gray-800);
    font-weight: 500;
    text-align: right;
    max-width: 60%;
}

.status-current {
    text-align: center;
    margin-bottom: 1.2rem;
}

.status-form {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.status-form label {
    font-size: 0.85rem;
    color: var(--gray-600);
    white-space: nowrap;
}

.status-form select {
    flex: 1;
}

/* Documents Grid */
.docs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
}

.doc-item {
    text-align: center;
}

.doc-preview {
    width: 100%;
    height: 120px;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gray-50);
    margin-bottom: 0.5rem;
    color: var(--gray-400);
}

.doc-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.doc-label {
    display: block;
    font-size: 0.78rem;
    color: var(--gray-600);
    font-weight: 500;
    margin-bottom: 0.3rem;
}

.text-muted {
    color: var(--gray-400);
    font-size: 0.85rem;
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
    .hero-title {
        font-size: 1.5rem;
    }

    .hero-subtitle {
        font-size: 0.95rem;
    }

    .hero {
        padding: 3rem 0 4rem;
    }

    .vacancy-card {
        flex-direction: column;
        align-items: flex-start;
    }

    .vacancy-details {
        flex-wrap: wrap;
        gap: 0.6rem;
    }

    .vacancy-arrow {
        display: none;
    }

    .dept-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.8rem;
    }

    .dept-meta {
        align-self: flex-start;
    }

    .upload-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .form-meta {
        flex-direction: column;
        gap: 0.5rem;
    }

    .admin-layout {
        flex-direction: column;
    }

    .admin-sidebar {
        width: 100%;
        position: relative;
        height: auto;
    }

    .sidebar-nav {
        flex-direction: row;
        overflow-x: auto;
        padding: 0.5rem;
        gap: 0.2rem;
    }

    .sidebar-link {
        white-space: nowrap;
        font-size: 0.8rem;
        padding: 0.5rem 0.8rem;
    }

    .sidebar-footer {
        display: flex;
        gap: 0.3rem;
        padding: 0.5rem;
    }

    .sidebar-footer .sidebar-link {
        font-size: 0.8rem;
        padding: 0.5rem 0.8rem;
    }

    .admin-main {
        padding: 1rem;
    }

    .admin-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .admin-header h1 {
        font-size: 1.2rem;
    }

    .detail-grid {
        grid-template-columns: 1fr;
    }

    .status-form {
        flex-direction: column;
        align-items: stretch;
    }

    .footer-inner {
        flex-direction: column;
        text-align: center;
    }

    .consent-card {
        padding: 1.5rem;
    }

    .code-number {
        font-size: 2.5rem;
        letter-spacing: 8px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.2rem;
    }

    .upload-grid {
        grid-template-columns: 1fr 1fr;
    }

    .status-check-form {
        flex-direction: column;
    }

    .navbar-inner {
        padding: 0.5rem 1rem;
    }

    .brand-sub {
        display: none;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ── Scrollbar ──────────────────────────────────────────── */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: var(--gray-300);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gray-400);
}

/* ── Rich Text Formatting ──────────────────────────────────────── */
.rich-text p {
    margin-bottom: 0.75rem;
}

.rich-text ul,
.rich-text ol {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.rich-text li {
    margin-bottom: 0.35rem;
}

.rich-text strong,
.rich-text b {
    font-weight: 600;
}

.rich-text em,
.rich-text i {
    font-style: italic;
}

.rich-text h1,
.rich-text h2,
.rich-text h3,
.rich-text h4 {
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
    line-height: 1.3;
}

.rich-text a {
    color: var(--primary);
    text-decoration: underline;
}

/* ── Mobile Modals ────────────────────────────────────────── */
@media (max-width: 768px) {
    .modal-content {
        padding: 1.5rem;
        width: 100%;
        max-width: 100%;
        max-height: 90vh;
        border-radius: var(--radius-md);
    }
}

/* Real-time Search */
.search-realtime-wrap {
    flex: 1;
    max-width: 400px;
    min-width: 260px;
}

.search-input-icon {
    position: relative;
    display: flex;
    align-items: center;
}

.search-input-icon svg {
    position: absolute;
    left: 12px;
    color: var(--gray-400);
    pointer-events: none;
    transition: color var(--transition-fast);
}

.search-input-icon input {
    width: 100%;
    padding: 0.65rem 1rem 0.65rem 2.6rem !important;
    font-size: 0.9rem !important;
    border-radius: var(--radius-lg) !important;
    background: white !important;
    border: 1px solid var(--gray-200) !important;
    box-shadow: var(--shadow-sm) !important;
    transition: all var(--transition-base) !important;
}

.search-input-icon input:focus {
    border-color: var(--green-500) !important;
    box-shadow: 0 0 0 4px rgba(76, 175, 80, 0.1) !important;
    outline: none !important;
}

.search-input-icon input:focus+svg,
.search-input-icon:focus-within svg {
    color: var(--green-500);
}

@media (max-width: 768px) {
    .header-actions-row {
        flex-direction: column;
        align-items: stretch;
    }

    .search-realtime-wrap {
        max-width: 100%;
    }
}

/* ═══════════════════════════════════════════════════════════
   VACANCY INFO BUTTONS  (3 buttons: duties / reqs / offers)
   ═══════════════════════════════════════════════════════════ */
.vac-info-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    max-width: 820px;
    margin: 0 auto 2.2rem;
}

.vac-info-btn {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    padding: 1.1rem 1.3rem;
    border: none;
    border-radius: var(--radius-lg);
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    text-align: left;
    transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.vac-info-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.vac-info-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
}

.vac-info-btn:hover::before {
    opacity: 1;
}

.vac-info-btn:active {
    transform: translateY(-1px);
}

/* Job Duties — Blue */
.vac-info-btn--duties {
    background: linear-gradient(135deg, #EFF6FF, #DBEAFE);
    color: #1E40AF;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.vac-info-btn--duties::before {
    background: linear-gradient(135deg, #DBEAFE, #BFDBFE);
}

.vac-info-btn--duties .vac-info-btn__icon {
    background: linear-gradient(135deg, #3B82F6, #2563EB);
    color: white;
}

.vac-info-btn--duties .vac-info-btn__arrow {
    color: #3B82F6;
}

/* Requirements — Amber */
.vac-info-btn--reqs {
    background: linear-gradient(135deg, #FFFBEB, #FEF3C7);
    color: #92400E;
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.vac-info-btn--reqs::before {
    background: linear-gradient(135deg, #FEF3C7, #FDE68A);
}

.vac-info-btn--reqs .vac-info-btn__icon {
    background: linear-gradient(135deg, #F59E0B, #D97706);
    color: white;
}

.vac-info-btn--reqs .vac-info-btn__arrow {
    color: #F59E0B;
}

/* Offers — Emerald */
.vac-info-btn--offers {
    background: linear-gradient(135deg, #ECFDF5, #D1FAE5);
    color: #065F46;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.vac-info-btn--offers::before {
    background: linear-gradient(135deg, #D1FAE5, #A7F3D0);
}

.vac-info-btn--offers .vac-info-btn__icon {
    background: linear-gradient(135deg, #10B981, #059669);
    color: white;
}

.vac-info-btn--offers .vac-info-btn__arrow {
    color: #10B981;
}

.vac-info-btn__icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    position: relative;
    z-index: 1;
}

.vac-info-btn__label {
    flex: 1;
    position: relative;
    z-index: 1;
    line-height: 1.3;
}

.vac-info-btn__arrow {
    flex-shrink: 0;
    transition: transform 0.2s ease;
    position: relative;
    z-index: 1;
    opacity: 0.7;
}

.vac-info-btn:hover .vac-info-btn__arrow {
    transform: translateX(4px);
    opacity: 1;
}

/* ═══════════════════════════════════════════════════════════
   VACANCY INFO MODALS
   ═══════════════════════════════════════════════════════════ */
.vac-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.vac-modal.open {
    display: flex;
}

.vac-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    animation: backdropIn 0.25s ease;
}

@keyframes backdropIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.vac-modal__box {
    position: relative;
    z-index: 1;
    background: white;
    border-radius: var(--radius-xl);
    width: 100%;
    max-width: 680px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    animation: modalBoxIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    overflow: hidden;
}

@keyframes modalBoxIn {
    from {
        opacity: 0;
        transform: scale(0.92) translateY(16px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.vac-modal__header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.4rem 1.6rem;
    flex-shrink: 0;
}

.vac-modal__header h3 {
    flex: 1;
    font-size: 1.15rem;
    margin: 0;
    color: white;
}

.vac-modal__icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.vac-modal__close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    background: rgba(255, 255, 255, 0.15);
    color: white;
    transition: background 0.15s ease;
    flex-shrink: 0;
}

.vac-modal__close:hover {
    background: rgba(255, 255, 255, 0.25);
}

/* Header color variants */
.vac-modal__header--duties {
    background: linear-gradient(135deg, #2563EB, #1D4ED8);
}

.vac-modal__header--reqs {
    background: linear-gradient(135deg, #D97706, #B45309);
}

.vac-modal__header--offers {
    background: linear-gradient(135deg, #059669, #047857);
}

.vac-modal__body {
    flex: 1;
    overflow-y: auto;
    padding: 1.6rem;
    font-size: 0.92rem;
    line-height: 1.75;
    color: var(--gray-700);
}

/* ── form-header improved ─────────────────────────────── */
.form-header {
    background: white;
    border-radius: var(--radius-xl);
    border: 1px solid var(--gray-200);
    padding: 2rem 1.5rem 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-md);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.form-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--green-600), var(--gold-500), var(--green-500));
}

.form-header h1 {
    font-size: 1.9rem;
    font-weight: 800;
    margin-bottom: 0.8rem;
    background: linear-gradient(135deg, var(--gray-900), var(--green-800));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ── Vacancy info grid (legacy, kept for safety) ──────── */
.vacancy-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.2rem;
    margin-bottom: 2rem;
    max-width: 820px;
    margin-left: auto;
    margin-right: auto;
}

.vacancy-info-card {
    background: white;
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-200);
    padding: 1.4rem;
    box-shadow: var(--shadow-sm);
}

.info-card-header {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--gray-100);
}

.info-card-header h3 {
    font-size: 1rem;
    color: var(--green-800);
}

.requirements-card .info-card-header svg { color: #3B82F6; }
.offers-card .info-card-header svg { color: var(--success); }

/* ── Responsive for info buttons & modals ─────────────── */
@media (max-width: 640px) {
    .vac-info-buttons {
        grid-template-columns: 1fr;
    }

    .vac-modal__box {
        max-height: 92vh;
        border-radius: var(--radius-lg) var(--radius-lg) 0 0;
        align-self: flex-end;
        width: 100%;
        max-width: 100%;
    }

    .vac-modal {
        align-items: flex-end;
        padding: 0;
    }

    @keyframes modalBoxIn {
        from {
            opacity: 0;
            transform: translateY(100%);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .form-header h1 {
        font-size: 1.4rem;
    }
}


/* ── GLOBAL ADAPTIVE PATCH ── */
@media (max-width: 1024px) {
    .container { padding: 0 1.25rem; }
    .detail-grid, .stats-grid, .upload-grid { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
}

@media (max-width: 768px) {
    body { font-size: 14px; }
    h1 { font-size: 1.8rem !important; margin-bottom: 0.75rem !important; }
    h2 { font-size: 1.5rem !important; }
    h3 { font-size: 1.2rem !important; }
    .hero { padding: 3rem 0; }
    .hero-title { font-size: 1.7rem; }
    .hero-subtitle { font-size: 0.95rem; }
    
    .navbar-inner { flex-direction: column; gap: 1rem; padding: 1rem; }
    .navbar-brand { justify-content: center; }
    .navbar-actions { width: 100%; justify-content: center; flex-wrap: wrap; }
    
    .status-check-form { flex-direction: column; gap: 0.5rem; }
    .status-check-form input { width: 100%; }
    .status-check-form button { width: 100%; }
    
    .dept-header { flex-direction: column; align-items: flex-start; gap: 0.75rem; }
    .dept-meta { align-self: stretch; justify-content: space-between; }
    .vacancy-card { flex-direction: column; align-items: flex-start; padding: 1rem; }
    
    .form-meta { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
    .form-grid { grid-template-columns: 1fr; }
    .upload-grid { grid-template-columns: 1fr 1fr; gap: 0.75rem; }
    
    .admin-layout { flex-direction: column; }
    .admin-sidebar { width: 100%; height: auto; position: static; }
    .sidebar-nav { flex-direction: row; overflow-x: auto; padding: 0.5rem; gap: 0.5rem; }
    .sidebar-link { white-space: nowrap; }
    
    .modal-content { padding: 1.5rem; margin: 1rem; border-radius: var(--radius-lg); }
    .vac-info-buttons { flex-direction: column; gap: 0.5rem; }
    .vac-info-btn { width: 100%; justify-content: space-between; }
}

@media (max-width: 480px) {
    .upload-grid { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: 1fr; }
    .hero-title { font-size: 1.5rem; }
    .brand-name { font-size: 1rem; }
    .brand-icon svg { width: 28px; height: 28px; }
    .btn { padding: 0.6rem 1rem; width: 100%; justify-content: center; }
    .navbar-inner { padding: 0.75rem; }
    .footer-inner { flex-direction: column; text-align: center; gap: 0.5rem; }
    
    /* Make code pulse responsive */
    .code-number { font-size: 2.2rem; letter-spacing: 6px; }
    .qr-image { width: 140px; height: 140px; }
}



.burger-menu {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 18px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
    margin-left: 1rem;
}

.burger-menu span {
    width: 100%;
    height: 2px;
    background: var(--green-800);
    border-radius: 4px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.burger-menu.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.burger-menu.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(10px);
}

.burger-menu.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

.sidebar-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(4px);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

.sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

.sidebar {
    position: fixed;
    top: 0;
    right: -320px;
    width: 320px;
    height: 100vh;
    background: white;
    z-index: 1001;
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.1);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.sidebar.active {
    transform: translateX(-320px);
}

.sidebar-header {
    padding: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--gray-100);
}

.sidebar-content {
    flex: 1;
    padding: 1.5rem;
    overflow-y: auto;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.8rem 1rem;
    border-radius: var(--radius-md);
    color: var(--gray-700);
    font-weight: 500;
    transition: all var(--transition-fast);
}

.sidebar-link svg {
    color: var(--green-600);
    opacity: 0.8;
}

.sidebar-link:hover {
    background: var(--green-50);
    color: var(--green-800);
    transform: translateX(4px);
}

.sidebar-link.active {
    background: var(--green-50);
    color: var(--green-700);
    font-weight: 700;
}

.sidebar-divider {
    height: 1px;
    background: var(--gray-100);
    margin: 1.5rem 0;
}

.sidebar-lang .label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--gray-400);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

.lang-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.5rem;
}

.lang-option {
    padding: 0.7rem 1rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--gray-200);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--gray-600);
    transition: all var(--transition-fast);
    text-align: center;
}

.lang-option:hover {
    border-color: var(--green-300);
    background: var(--green-50);
    color: var(--green-700);
}

.lang-option.active {
    background: var(--green-700);
    color: white;
    border-color: var(--green-700);
}





.close-btn {
    background: transparent;
    border: none;
    color: var(--gray-400);
    cursor: pointer;
    padding: 0.5rem;
}

.close-btn:hover {
    color: var(--gray-800);
}

