/* ==========================================================================
   KEPLAR RECRUITMENT PORTAL — Custom Theme
   A modern, clean, premium design system replacing INSPINIA.
   ========================================================================== */

/* ---------- Google Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

/* ---------- CSS Custom Properties (Design Tokens) ---------- */
:root {
    /* Primary palette – brand green #1AB394 */
    --primary-50: #e6f7f3;
    --primary-100: #ccefe7;
    --primary-200: #99dfcf;
    --primary-300: #66cfb8;
    --primary-400: #33bfa1;
    --primary-500: #1AB394;
    --primary-600: #159078;
    --primary-700: #107560;
    --primary-800: #0c5a49;
    --primary-900: #083d31;

    /* Accent – vibrant teal */
    --accent-400: #2dd4bf;
    --accent-500: #14b8a6;
    --accent-600: #0d9488;

    /* Neutral (slate) */
    --slate-50: #f8fafc;
    --slate-100: #f1f5f9;
    --slate-200: #e2e8f0;
    --slate-300: #cbd5e1;
    --slate-400: #94a3b8;
    --slate-500: #64748b;
    --slate-600: #475569;
    --slate-700: #334155;
    --slate-800: #1e293b;
    --slate-900: #0f172a;

    /* Semantic */
    --success-500: #22c55e;
    --success-100: #dcfce7;
    --warning-500: #f59e0b;
    --warning-100: #fef3c7;
    --danger-500: #ef4444;
    --danger-100: #fee2e2;
    --info-500: #3b82f6;
    --info-100: #dbeafe;

    /* Gradients (flat – no gradient) */
    --gradient-hero: var(--primary-600);
    --gradient-primary: var(--primary-500);
    --gradient-accent: var(--accent-500);
    --gradient-card: rgba(255, 255, 255, 0.95);
    --gradient-glass: rgba(255, 255, 255, 0.08);

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
    --shadow-glow: 0 0 40px color-mix(in srgb, var(--primary-500) 15%, transparent);
    --shadow-card-hover: 0 20px 40px -8px color-mix(in srgb, var(--primary-500) 0.18%, transparent);

    /* Border Radius */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;

    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-display: 'Plus Jakarta Sans', 'Inter', sans-serif;

    /* Transitions */
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --duration-fast: 150ms;
    --duration-normal: 250ms;
    --duration-slow: 400ms;
}

/* ---------- Reset & Base ---------- */
*,
*::before,
*::after {
    box-sizing: border-box;
}

/* Bootstrap 3 gap utilities (not included in INSPINIA) */
.gap-1 {
    gap: 0.25rem !important;
}

.gap-2 {
    gap: 0.5rem !important;
}

.gap-3 {
    gap: 1rem !important;
}

.gap-4 {
    gap: 1.5rem !important;
}

.gap-5 {
    gap: 3rem !important;
}

.column-gap-1 {
    column-gap: 0.25rem !important;
}

.column-gap-2 {
    column-gap: 0.5rem !important;
}

.column-gap-3 {
    column-gap: 1rem !important;
}


html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    height: 100%;
}

body {
    font-family: var(--font-primary);
    font-size: 0.9rem;
    color: var(--slate-700);
    background: var(--body-bg, var(--slate-50));
    line-height: 1.6;
    margin: 0;
    padding: 0;
    min-height: 100%;
}

/* Full-width layout wrapper — overrides any Bootstrap/legacy container constraints */
#wrapper {
    display: flex !important;
    width: 100% !important;
    min-height: 100vh;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--slate-900);
    line-height: 1.2;
    margin-bottom: 0.5em;
}

a {
    color: var(--primary-600);
    text-decoration: none;
    transition: color var(--duration-fast) var(--ease-out);
}

a:hover {
    color: var(--primary-700);
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
}

::selection {
    background: var(--primary-200);
    color: var(--primary-900);
}

/* ---------- LANDING PAGE : Navbar ---------- */
.portal-navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1030;
    padding: 0.75rem 0;
    transition: all var(--duration-normal) var(--ease-out);
    background: transparent;
}

.portal-navbar.scrolled {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 4px 24px rgba(0, 0, 0, 0.04);
    padding: 0.5rem 0;
}

.portal-navbar .navbar-brand {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.15rem;
    color: #fff;
    letter-spacing: -0.02em;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    transition: color var(--duration-normal) var(--ease-out);
}

.portal-navbar.scrolled .navbar-brand {
    color: var(--slate-900);
}

.portal-navbar .navbar-brand img {
    height: 34px;
    border-radius: var(--radius-sm);
}

.portal-navbar .nav-link {
    color: rgba(255, 255, 255, 0.8) !important;
    font-weight: 500;
    font-size: 0.9rem;
    padding: 0.5rem 1rem !important;
    transition: color var(--duration-fast) var(--ease-out);
}

.portal-navbar.scrolled .nav-link {
    color: var(--slate-600) !important;
}

.portal-navbar .nav-link:hover {
    color: #fff !important;
}

.portal-navbar.scrolled .nav-link:hover {
    color: var(--primary-600) !important;
}

.btn-nav-login {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    color: #fff !important;
    border: 1px solid rgba(255, 255, 255, 0.25);
    padding: 0.5rem 1.5rem !important;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.875rem;
    transition: all var(--duration-normal) var(--ease-out);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.portal-navbar.scrolled .btn-nav-login {
    background: var(--gradient-primary);
    border-color: transparent;
    color: #fff !important;
    box-shadow: 0 4px 14px color-mix(in srgb, var(--primary-500) 35%, transparent);
}

.btn-nav-login:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-1px);
    color: #fff !important;
}

.portal-navbar.scrolled .btn-nav-login:hover {
    box-shadow: 0 6px 20px color-mix(in srgb, var(--primary-500) 45%, transparent);
    transform: translateY(-2px);
}

/* ---------- LANDING PAGE : Navbar — authenticated user pill ---------- */
.nav-user-pill {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.35rem 0.9rem 0.35rem 0.35rem;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all var(--duration-fast) var(--ease-out);
    backdrop-filter: blur(10px);
    user-select: none;
}

.nav-user-pill:hover {
    background: rgba(255, 255, 255, 0.22);
    border-color: rgba(255, 255, 255, 0.35);
}

.nav-user-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    color: var(--primary-700);
    font-weight: 800;
    font-size: 0.72rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    letter-spacing: 0.02em;
}

.nav-user-name {
    color: #fff;
    font-weight: 600;
    font-size: 0.875rem;
    max-width: 140px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.nav-user-caret {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.65rem;
    transition: transform var(--duration-fast) var(--ease-out);
    flex-shrink: 0;
}

.nav-user-pill:hover .nav-user-caret,
.nav-user-pill.open .nav-user-caret {
    transform: rotate(180deg);
}

/* Dropdown */
.nav-user-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    min-width: 180px;
    background: #fff;
    border-radius: var(--radius-md);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--slate-100);
    padding: 0.4rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: all var(--duration-fast) var(--ease-out);
    z-index: 999;
}

.nav-user-pill.open .nav-user-dropdown,
.nav-user-pill:focus-within .nav-user-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Arrow tip */
.nav-user-dropdown::before {
    content: '';
    position: absolute;
    top: -6px;
    right: 18px;
    width: 12px;
    height: 12px;
    background: #fff;
    border-left: 1px solid var(--slate-100);
    border-top: 1px solid var(--slate-100);
    transform: rotate(45deg);
}

.nav-user-dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.6rem 0.85rem;
    border-radius: var(--radius-sm);
    color: var(--slate-700) !important;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    transition: all var(--duration-fast) var(--ease-out);
}

.nav-user-dropdown-item i {
    width: 16px;
    text-align: center;
    color: var(--slate-400);
}

.nav-user-dropdown-item:hover {
    background: var(--slate-50);
    color: var(--slate-900) !important;
    text-decoration: none;
}

.nav-user-dropdown-item:hover i {
    color: var(--primary-500);
}

.nav-user-dropdown-item--danger {
    color: #dc2626 !important;
}

.nav-user-dropdown-item--danger i {
    color: #dc2626 !important;
}

.nav-user-dropdown-item--danger:hover {
    background: #fee2e2;
    color: #991b1b !important;
}

.nav-user-dropdown-divider {
    height: 1px;
    background: var(--slate-100);
    margin: 0.3rem 0;
}

/* Scrolled navbar variant */
.portal-navbar.scrolled .nav-user-pill {
    background: #f0fdf9;
    border-color: var(--primary-500);
}

.portal-navbar.scrolled .nav-user-name {
    color: var(--primary-700);
}

.portal-navbar.scrolled .nav-user-caret {
    color: var(--primary-500);
}

.portal-navbar.scrolled .nav-user-avatar {
    background: var(--primary-500);
    color: #fff;
}



/* ---------- LANDING PAGE : Hero Section ---------- */
.portal-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-hero);
    color: var(--hero-text, #fff);
    overflow: hidden;
    padding: 8rem 2rem 6rem;
}

.portal-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: none;
    pointer-events: none;
}

/* Animated floating orbs */
.hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.4;
    animation: orbFloat 8s ease-in-out infinite;
    pointer-events: none;
}

.hero-orb-1 {
    width: 400px;
    height: 400px;
    background: var(--primary-500);
    top: -100px;
    right: -100px;
    animation-delay: 0s;
}

.hero-orb-2 {
    width: 300px;
    height: 300px;
    background: var(--accent-500);
    bottom: -50px;
    left: -50px;
    animation-delay: -3s;
}

.hero-orb-3 {
    width: 200px;
    height: 200px;
    background: #a78bfa;
    top: 40%;
    left: 60%;
    animation-delay: -5s;
}

@keyframes orbFloat {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(30px, -30px) scale(1.05);
    }

    66% {
        transform: translate(-20px, 20px) scale(0.95);
    }
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.25rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-full);
    color: var(--primary-200);
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 2rem;
    backdrop-filter: blur(10px);
    animation: fadeInUp 0.8s var(--ease-out) both;
}

.hero-badge i {
    color: var(--accent-400);
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    color: #fff;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -0.03em;
    animation: fadeInUp 0.8s var(--ease-out) 0.1s both;
}

.hero-title .gradient-text {
    background: linear-gradient(135deg, var(--primary-300), var(--accent-400));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: rgba(255, 255, 255, 0.65);
    max-width: 600px;
    margin: 0 auto 2.5rem;
    line-height: 1.7;
    font-weight: 400;
    animation: fadeInUp 0.8s var(--ease-out) 0.2s both;
}

.hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s var(--ease-out) 0.3s both;
}

.hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3rem;
    margin-top: 4rem;
    animation: fadeInUp 0.8s var(--ease-out) 0.5s both;
}

.hero-stat {
    text-align: center;
}

.hero-stat-value {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 800;
    color: #fff;
}

.hero-stat-label {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 400;
    margin-top: 0.25rem;
}

/* Scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    animation: fadeInUp 0.8s var(--ease-out) 0.6s both;
}

.scroll-indicator .scroll-dot {
    width: 24px;
    height: 40px;
    border: 2px solid rgba(255, 255, 255, 0.25);
    border-radius: 12px;
    position: relative;
}

.scroll-indicator .scroll-dot::after {
    content: '';
    width: 4px;
    height: 8px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 2px;
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {

    0%,
    100% {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }

    50% {
        transform: translateX(-50%) translateY(14px);
        opacity: 0.3;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ---------- Buttons ---------- */
.btn-portal-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.8rem 2rem;
    background: var(--gradient-primary);
    color: #fff;
    border: none;
    border-radius: var(--radius-full);
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all var(--duration-normal) var(--ease-out);
    box-shadow: 0 4px 14px color-mix(in srgb, var(--primary-500) 35%, transparent);
    border: 1.5px solid rgba(255, 255, 255, 0.6);
    text-decoration: none;
}

.btn-portal-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px color-mix(in srgb, var(--primary-500) 45%, transparent);
    color: #fff;
    text-decoration: none;
}

.btn-portal-primary:active {
    transform: translateY(0);
}

.btn-portal-secondary,
a.btn-portal-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.8rem 2rem;
    background: rgba(255, 255, 255, 0.08);
    color: #fff !important;
    border: 2px solid rgba(255, 255, 255, 0.65);
    border-radius: var(--radius-full);
    font-family: var(--font-primary);
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all var(--duration-normal) var(--ease-out);
    text-decoration: none;
    letter-spacing: 0.01em;
}

.btn-portal-secondary:hover,
a.btn-portal-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: #fff;
    transform: translateY(-2px);
    color: #fff !important;
    text-decoration: none;
}

.btn-portal-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.65rem 1.5rem;
    background: transparent;
    color: var(--primary-600);
    border: 1.5px solid var(--primary-200);
    border-radius: var(--radius-full);
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all var(--duration-normal) var(--ease-out);
}

.btn-portal-outline:hover {
    background: var(--primary-50);
    border-color: var(--primary-400);
    transform: translateY(-1px);
    color: var(--primary-700);
    text-decoration: none;
}

.btn-portal-sm {
    padding: 0.5rem 1.25rem;
    font-size: 0.8rem;
}

.btn-portal-lg {
    font-size: 1.05rem;
    min-width: 180px;
}

.btn-portal-icon {
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: var(--radius-md);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--slate-100);
    color: var(--slate-500);
    border: 1px solid var(--slate-200);
    cursor: pointer;
    transition: all var(--duration-fast) var(--ease-out);
}

.btn-portal-icon:hover {
    background: var(--primary-50);
    color: var(--primary-600);
    border-color: var(--primary-200);
}

/* ---------- LANDING PAGE : Search / Filter Section ---------- */
.portal-search-section {
    background: var(--slate-50);
    padding: 5rem 0 3rem;
    position: relative;
}

.portal-search-section::before {
    content: '';
    position: absolute;
    top: -80px;
    left: 0;
    right: 0;
    height: 80px;
    background: linear-gradient(to bottom, transparent, var(--slate-50));
    pointer-events: none;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header .section-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 1rem;
    background: var(--primary-50);
    color: var(--primary-600);
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 1rem;
    border: 1px solid var(--primary-100);
}

.section-header h2 {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--slate-900);
}

.section-header p {
    color: var(--slate-500);
    max-width: 500px;
    margin: 0.5rem auto 0;
    font-size: 1rem;
}

.search-card {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 1.5rem 2rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--slate-100);
    margin-bottom: 2.5rem;
}

.search-card .form-control {
    border: 1.5px solid var(--slate-200);
    border-radius: var(--radius-md);
    padding: 0.7rem 1rem;
    font-size: 0.9rem;
    font-family: var(--font-primary);
    color: var(--slate-700);
    transition: all var(--duration-fast) var(--ease-out);
    background: var(--slate-50);
    height: auto;
}

.search-card .form-control:focus {
    border-color: var(--primary-400);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary-500) 10%, transparent);
    background: #fff;
    outline: none;
}

.search-card .form-control::placeholder {
    color: var(--slate-400);
}

.search-card select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2394a3b8' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

.search-card .btn-search {
    background: var(--gradient-primary);
    color: #fff;
    border: none;
    border-radius: var(--radius-md);
    padding: 0.7rem 1.5rem;
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all var(--duration-normal) var(--ease-out);
    cursor: pointer;
    white-space: nowrap;
}

.search-card .btn-search:hover {
    box-shadow: 0 4px 14px color-mix(in srgb, var(--primary-500) 35%, transparent);
    transform: translateY(-1px);
}

/* ---------- LANDING PAGE : Job Cards ---------- */
.job-card {
    background: #fff;
    border-radius: var(--card-radius, var(--radius-lg));
    padding: 1.75rem;
    border: 1px solid var(--slate-100);
    box-shadow: var(--shadow-sm);
    transition: all var(--duration-normal) var(--ease-out);
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.job-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-accent);
    opacity: 0;
    transition: opacity var(--duration-normal) var(--ease-out);
}

.job-card:hover {
    box-shadow: var(--shadow-card-hover);
    transform: translateY(-4px);
    border-color: var(--primary-100);
}

.job-card:hover::before {
    opacity: 1;
}

.job-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.job-card-title {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--slate-900);
    margin-bottom: 0.35rem;
    cursor: pointer;
    transition: color var(--duration-fast) var(--ease-out);
    line-height: 1.3;
}

.job-card-title:hover {
    color: var(--primary-600);
}

.job-card-location {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--slate-500);
    font-size: 0.85rem;
    font-weight: 400;
}

.job-card-location i {
    color: var(--primary-400);
    font-size: 0.8rem;
}

/* Status badges */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.3rem 0.85rem;
    border-radius: var(--radius-full);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    white-space: nowrap;
    flex-shrink: 0;
}

.status-badge-new {
    background: var(--success-100);
    color: #16a34a;
}

.status-badge-current {
    background: var(--info-100);
    color: #2563eb;
}

.status-badge-expired {
    background: var(--danger-100);
    color: #dc2626;
}

.job-card-meta {
    flex: 1;
    margin-bottom: 1.25rem;
}

.job-card-due {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.job-card-due-label {
    font-size: 0.8rem;
    color: var(--slate-500);
    font-weight: 500;
}

.job-card-due-date {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.85rem;
    color: var(--slate-700);
    font-weight: 600;
}

.job-card-due-date i {
    color: var(--slate-400);
    font-size: 0.8rem;
}

.days-remaining {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.7rem;
    background: var(--warning-100);
    color: #b45309;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
}

.days-remaining.today {
    background: var(--danger-100);
    color: #dc2626;
}

.job-card-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--slate-100);
}

/* Applied card state */
.job-card--applied {
    border-color: #a7f3d0;
    box-shadow: 0 0 0 1px #a7f3d0, var(--shadow-md);
}

.job-card-applied-ribbon {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.25rem 0.75rem;
    background: #d1fae5;
    color: #065f46;
    border-radius: var(--radius-full);
    font-size: 0.72rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    width: fit-content;
}

.btn-job-applied {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.6rem 1rem;
    background: #d1fae5;
    color: #065f46;
    border: 1.5px solid #a7f3d0;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.8rem;
    cursor: default;
    pointer-events: none;
}

.btn-job-info {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.6rem 1rem;
    background: #fff;
    color: var(--slate-700);
    border: 1.5px solid var(--slate-200);
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.8rem;
    transition: all var(--duration-fast) var(--ease-out);
    cursor: pointer;
    text-decoration: none;
}

.btn-job-info:hover {
    background: var(--slate-50);
    color: var(--slate-800);
    border-color: var(--slate-300);
    text-decoration: none;
}

.btn-job-apply {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.6rem 1rem;
    background: var(--primary-500);
    color: #fff !important;
    border: 1.5px solid var(--primary-500);
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.8rem;
    transition: all var(--duration-fast) var(--ease-out);
    cursor: pointer;
    box-shadow: 0 2px 8px color-mix(in srgb, var(--primary-500) 30%, transparent);
    text-decoration: none;
}

.btn-job-apply:hover {
    background: var(--primary-600);
    border-color: var(--primary-600);
    box-shadow: 0 4px 14px color-mix(in srgb, var(--primary-500) 45%, transparent);
    transform: translateY(-1px);
    color: #fff !important;
    text-decoration: none;
}

/* ---------- LANDING PAGE : Contact Section ---------- */
.portal-contact {
    background: #fff;
    padding: 5rem 0;
    position: relative;
}

.contact-divider {
    width: 60px;
    height: 4px;
    background: var(--gradient-accent);
    border-radius: 2px;
    margin: 0 auto 1.5rem;
}

.contact-info address {
    font-style: normal;
    color: var(--slate-600);
    line-height: 1.8;
}

.contact-info strong {
    color: var(--primary-600);
    font-weight: 700;
}

.contact-desc {
    color: var(--slate-500);
    line-height: 1.8;
}

.btn-contact-mail {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 2rem;
    background: var(--gradient-primary);
    color: #fff;
    border: none;
    border-radius: var(--radius-full);
    font-weight: 600;
    transition: all var(--duration-normal) var(--ease-out);
    box-shadow: 0 4px 14px color-mix(in srgb, var(--primary-500) 30%, transparent);
    cursor: pointer;
}

.btn-contact-mail:hover {
    box-shadow: 0 6px 20px color-mix(in srgb, var(--primary-500) 45%, transparent);
    transform: translateY(-2px);
    color: #fff;
    text-decoration: none;
}

.social-links {
    list-style: none;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin: 0;
}

.social-links li a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    background: var(--slate-100);
    color: var(--slate-500);
    font-size: 1.1rem;
    transition: all var(--duration-fast) var(--ease-out);
}

.social-links li a:hover {
    background: var(--primary-600);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px color-mix(in srgb, var(--primary-500) 30%, transparent);
}

/* ---------- LANDING PAGE : Footer ---------- */
.portal-footer-landing {
    background: var(--footer-bg, var(--slate-900));
    color: var(--footer-text, var(--slate-400));
    padding: 2rem 0;
    text-align: center;
    font-size: 0.85rem;
}

.portal-footer-landing a {
    color: var(--primary-300);
    font-weight: 600;
}

/* ---------- Modal Overrides (Login / Register / MoreInfo) ---------- */
.modal-content {
    border: none !important;
    border-radius: var(--radius-xl) !important;
    box-shadow: var(--shadow-2xl) !important;
    overflow: hidden;
}

.modal-header.portal-modal-header {
    background: var(--gradient-hero);
    border-bottom: none;
    padding: 2rem 2rem 1.5rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.modal-header.portal-modal-header h3,
.modal-header.portal-modal-header .modal-title {
    color: #fff;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.2rem;
    margin: 0;
}

.modal-header.portal-modal-header p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
    margin: 0.5rem 0 0;
}

.modal-header.portal-modal-header .close,
.modal-header.portal-modal-header .btn-close-modal {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    width: 32px;
    height: 32px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all var(--duration-fast) var(--ease-out);
    opacity: 1;
    text-shadow: none;
    padding: 0;
    line-height: 1;
}

.modal-header.portal-modal-header .close:hover,
.modal-header.portal-modal-header .btn-close-modal:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.modal-body.portal-modal-body {
    padding: 2rem;
}

/* ---------- Portal Form Styles (used in modals & pages) ---------- */
.portal-form .form-group {
    margin-bottom: 1.25rem;
}

.portal-form label {
    font-weight: 600;
    color: var(--slate-700);
    font-size: 0.85rem;
    margin-bottom: 0.4rem;
    display: block;
}

.portal-form .form-control {
    border: 1.5px solid var(--slate-200);
    border-radius: var(--radius-md);
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    font-family: var(--font-primary);
    color: var(--slate-700);
    background: var(--slate-50);
    transition: all var(--duration-fast) var(--ease-out);
    height: auto;
}

.portal-form .form-control:focus {
    border-color: var(--primary-400);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary-500) 10%, transparent);
    background: #fff;
    outline: none;
}

.portal-form .form-control::placeholder {
    color: var(--slate-400);
}

.portal-form .btn-submit {
    width: 100%;
    padding: 0.85rem;
    background: var(--gradient-primary);
    color: #fff;
    border: none;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 0.95rem;
    font-family: var(--font-primary);
    transition: all var(--duration-normal) var(--ease-out);
    cursor: pointer;
    box-shadow: 0 4px 14px color-mix(in srgb, var(--primary-500) 30%, transparent);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.portal-form .btn-submit:hover {
    box-shadow: 0 6px 20px color-mix(in srgb, var(--primary-500) 45%, transparent);
    transform: translateY(-1px);
}

.portal-form .form-divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1.5rem 0;
    color: var(--slate-400);
    font-size: 0.8rem;
}

.portal-form .form-divider::before,
.portal-form .form-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--slate-200);
}

.portal-form .form-footer {
    text-align: center;
    margin-top: 1.5rem;
    color: var(--slate-500);
    font-size: 0.85rem;
}

.portal-form .form-footer a,
.portal-form .form-footer .link-action {
    color: var(--primary-600);
    font-weight: 600;
    cursor: pointer;
    transition: color var(--duration-fast) var(--ease-out);
}

.portal-form .form-footer a:hover,
.portal-form .form-footer .link-action:hover {
    color: var(--primary-700);
}

.btn-portal-register {
    width: 100%;
    padding: 0.75rem;
    background: var(--slate-50);
    color: var(--slate-700);
    border: 1.5px solid var(--slate-200);
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.9rem;
    font-family: var(--font-primary);
    transition: all var(--duration-fast) var(--ease-out);
    cursor: pointer;
}

.btn-portal-register:hover {
    background: var(--primary-50);
    border-color: var(--primary-200);
    color: var(--primary-600);
}

/* ---------- More Info (Job details in modal) ---------- */
.job-detail-header {
    margin-bottom: 1.5rem;
}

.job-detail-header h2 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--slate-900);
    margin-bottom: 0.75rem;
}

.job-detail-description {
    color: var(--slate-600);
    line-height: 1.8;
    font-size: 0.95rem;
}

.job-detail-sidebar h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--slate-800);
    margin-bottom: 1rem;
}

.detail-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.detail-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.85rem 1rem;
    background: var(--slate-50);
    border-radius: var(--radius-md);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: var(--slate-600);
    border: 1px solid var(--slate-100);
}

.detail-list li span {
    font-weight: 700;
    color: var(--primary-600);
}

.job-detail-additional {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--slate-200);
}

.job-detail-additional h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--slate-800);
    margin-bottom: 1rem;
}

.job-detail-additional p {
    color: var(--slate-600);
    line-height: 1.8;
}

.job-detail-actions {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

/* ---------- Modal header — brand green ---------- */
.modal-header.portal-modal-header {
    background: var(--primary-500);
    border-bottom: none;
    padding: 1.25rem 1.75rem;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    position: relative;
}

.modal-header.portal-modal-header h3,
.modal-header.portal-modal-header .modal-title {
    color: #fff;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.05rem;
    margin: 0;
    line-height: 1.2;
}

.modal-header.portal-modal-header p {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.78rem;
    margin: 0.15rem 0 0;
}

.modal-header.portal-modal-header .close,
.modal-header.portal-modal-header .btn-close-modal {
    position: absolute;
    top: 50%;
    right: 1.60rem;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #fff;
    width: 30px;
    height: 30px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    cursor: pointer;
    transition: all var(--duration-fast) var(--ease-out);
    opacity: 1;
    text-shadow: none;
    padding: 0;
    line-height: 1;
}

.modal-header.portal-modal-header .close:hover,
.modal-header.portal-modal-header .btn-close-modal:hover {
    background: rgba(255, 255, 255, 0.28);
    transform: translateY(-50%) scale(1.1);
}

.modal-body.portal-modal-body {
    padding: 1.75rem 2rem;
}

/* ---------- Portal Form Styles (used in modals & pages) ---------- */
.portal-form .form-group {
    margin-bottom: 1.25rem;
}

.portal-form label {
    font-weight: 600;
    color: var(--slate-700);
    font-size: 0.85rem;
    margin-bottom: 0.4rem;
    display: block;
}

.portal-form .form-control {
    border: 1.5px solid var(--slate-200);
    border-radius: var(--radius-md);
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    font-family: var(--font-primary);
    color: var(--slate-700);
    background: var(--slate-50);
    transition: all var(--duration-fast) var(--ease-out);
    height: auto;
}

.portal-form .form-control:focus {
    border-color: var(--primary-500);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary-500) 10%, transparent);
    background: #fff;
    outline: none;
}

.portal-form .form-control::placeholder {
    color: var(--slate-400);
}

.portal-form .btn-submit {
    width: 100%;
    padding: 0.85rem;
    background: var(--primary-500);
    color: #fff;
    border: none;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 0.95rem;
    font-family: var(--font-primary);
    transition: all var(--duration-normal) var(--ease-out);
    cursor: pointer;
    box-shadow: 0 4px 14px color-mix(in srgb, var(--primary-500) 30%, transparent);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.portal-form .btn-submit:hover {
    background: var(--primary-600);
    box-shadow: 0 6px 20px color-mix(in srgb, var(--primary-500) 45%, transparent);
    transform: translateY(-1px);
}

.portal-form .form-divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1.5rem 0;
    color: var(--slate-400);
    font-size: 0.8rem;
}

.portal-form .form-divider::before,
.portal-form .form-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--slate-200);
}

.portal-form .form-footer {
    text-align: center;
    margin-top: 1.5rem;
    color: var(--slate-500);
    font-size: 0.85rem;
}

.portal-form .form-footer a,
.portal-form .form-footer .link-action {
    color: var(--primary-500);
    font-weight: 600;
    cursor: pointer;
    transition: color var(--duration-fast) var(--ease-out);
}

.portal-form .form-footer a:hover,
.portal-form .form-footer .link-action:hover {
    color: var(--primary-700);
}

.btn-portal-register {
    width: 100%;
    padding: 0.75rem;
    background: var(--slate-50);
    color: var(--slate-700);
    border: 1.5px solid var(--slate-200);
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.9rem;
    font-family: var(--font-primary);
    transition: all var(--duration-fast) var(--ease-out);
    cursor: pointer;
}

.btn-portal-register:hover {
    background: #e6f7f3;
    border-color: var(--primary-500);
    color: var(--primary-500);
}

/* ---------- Job Detail Modal — redesigned ---------- */
.job-detail-wrap {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

/* Left column */
.job-detail-left {
    flex: 1;
    min-width: 0;
}

.job-detail-title-block {
    margin-bottom: 1.5rem;
}

.job-detail-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--slate-900);
    margin: 0 0 0.75rem;
    line-height: 1.2;
}

.job-detail-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.job-detail-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.3rem 0.75rem;
    background: var(--slate-100);
    color: var(--slate-600);
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 600;
}

.job-detail-chip.chip-green {
    background: #d1fae5;
    color: #065f46;
}

.job-detail-chip.chip-red {
    background: #fee2e2;
    color: #991b1b;
}

.job-detail-section {
    margin-bottom: 1.5rem;
}

.job-detail-section-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--slate-400);
    text-transform: uppercase;
    letter-spacing: 0.07em;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.job-detail-description {
    color: var(--slate-600);
    line-height: 1.8;
    font-size: 0.92rem;
}

/* Right column */
.job-detail-right {
    width: 240px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.job-detail-info-card {
    background: var(--slate-50);
    border: 1px solid var(--slate-200);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
}

.job-detail-info-card-title {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--slate-400);
    margin: 0 0 1rem;
}

.job-detail-info-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.6rem 0;
    border-bottom: 1px solid var(--slate-200);
    gap: 0.5rem;
}

.job-detail-info-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.job-detail-info-label {
    font-size: 0.8rem;
    color: var(--slate-500);
    display: flex;
    align-items: center;
    gap: 0.4rem;
    white-space: nowrap;
}

.job-detail-info-value {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--slate-800);
    text-align: right;
}

/* CTA buttons */
.job-detail-cta {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.btn-detail-apply {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.8rem 1rem;
    background: var(--primary-500);
    color: #fff !important;
    border: 1.5px solid var(--primary-500);
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
    cursor: pointer;
    transition: all var(--duration-fast) var(--ease-out);
    box-shadow: 0 2px 10px color-mix(in srgb, var(--primary-500) 30%, transparent);
}

.btn-detail-apply:hover {
    background: var(--primary-600);
    border-color: var(--primary-600);
    color: #fff !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px color-mix(in srgb, var(--primary-500) 40%, transparent);
    text-decoration: none;
}

.btn-detail-secondary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.7rem 1rem;
    background: #fff;
    color: var(--slate-700) !important;
    border: 1.5px solid var(--slate-200);
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    cursor: pointer;
    transition: all var(--duration-fast) var(--ease-out);
}

.btn-detail-secondary:hover {
    background: var(--slate-50);
    border-color: var(--slate-300);
    color: var(--slate-800) !important;
    text-decoration: none;
}

.job-detail-expired-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: #fee2e2;
    color: #991b1b;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.85rem;
}

/* Responsive: stack on small screens */
@media (max-width: 640px) {
    .job-detail-wrap {
        flex-direction: column;
    }

    .job-detail-right {
        width: 100%;
    }
}

/* Legacy selectors kept for backward compat */
.job-detail-actions {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}


.portal-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 260px;
    background: var(--navbar-bg, var(--primary-600));
    z-index: 1000;
    overflow-y: auto;
    overflow-x: hidden;
    transition: width var(--duration-normal) var(--ease-out);
    display: flex;
    flex-direction: column;
}

.portal-sidebar::-webkit-scrollbar {
    width: 4px;
}

.portal-sidebar::-webkit-scrollbar-track {
    background: transparent;
}

.portal-sidebar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 4px;
}

/* ── Sidebar Logo ── */
.sidebar-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

.sidebar-logo {
    display: flex;
    align-items: center;
    gap: .6rem;
}

.sidebar-logo img {
    height: 32px;
    filter: brightness(0) invert(1);
    opacity: 0.9;
}

.sidebar-client-name {
    font-size: .85rem;
    font-weight: 700;
    color: rgba(255, 255, 255, .9);
    letter-spacing: -.01em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ── Sidebar User Section ── */
.sidebar-user-section {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1.1rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    flex-shrink: 0;
}

.sidebar-user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.sidebar-user-info {
    min-width: 0;
}

.sidebar-user-name {
    color: #fff;
    font-weight: 600;
    font-size: 0.875rem;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-user-role {
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.72rem;
    margin-top: 0.1rem;
}

/* ── Sidebar Nav ── */
.sidebar-nav {
    padding: 0.75rem 0.75rem;
    list-style: none;
    margin: 0;
    flex: 1;
}

.sidebar-nav-item {
    margin-bottom: 0.2rem;
}

.sidebar-nav-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.7rem 1rem;
    color: rgba(255, 255, 255, 0.85) !important;
    font-weight: 500;
    font-size: 0.875rem;
    border-radius: var(--radius-md);
    transition: background var(--duration-fast) var(--ease-out);
    text-decoration: none !important;
    cursor: pointer;
}

.sidebar-nav-link span {
    flex: 1;
}

.sidebar-nav-link i:first-child {
    width: 18px;
    text-align: center;
    flex-shrink: 0;
}

.sidebar-nav-link:hover,
.sidebar-nav-link.active {
    background: rgba(255, 255, 255, 0.15);
    color: #fff !important;
    text-decoration: none !important;
}

/* Chevron arrow */
.sidebar-nav-arrow {
    font-size: 0.6rem;
    opacity: 0.6;
    transition: transform var(--duration-fast) var(--ease-out);
    flex-shrink: 0;
}

.sidebar-nav-link.active .sidebar-nav-arrow {
    transform: rotate(180deg);
    opacity: 1;
}

/* Sub-nav */
.sidebar-subnav {
    list-style: none;
    padding: 0.2rem 0 0.2rem 2.5rem;
    margin: 0;
    display: none;
}

.sidebar-subnav.open {
    display: block;
}

.sidebar-nav-sublink {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.48rem 0.75rem;
    color: rgba(255, 255, 255, 0.78) !important;
    font-size: 0.83rem;
    border-radius: var(--radius-sm);
    transition: all var(--duration-fast) var(--ease-out);
    text-decoration: none !important;
}

.sidebar-nav-sublink:hover {
    color: #fff !important;
    background: rgba(255, 255, 255, 0.1);
    text-decoration: none !important;
}

/* Active sublink — current page indicator */
.sidebar-nav-sublink.sublink-active {
    color: #fff !important;
    background: rgba(255, 255, 255, 0.18);
    font-weight: 600;
    position: relative;
}

.sidebar-nav-sublink.sublink-active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 60%;
    background: #fff;
    border-radius: 0 3px 3px 0;
}

/* Active parent nav-link — top level group */
.sidebar-nav-link.active {
    background: rgba(255, 255, 255, 0.15);
    color: #fff !important;
}

.sidebar-nav-link.active .sidebar-nav-arrow {
    transform: rotate(180deg);
    opacity: 1;
}


.sidebar-nav-sublink i {
    width: 14px;
    text-align: center;
    font-size: 0.8rem;
    opacity: 0.7;
}

/* ── Sidebar Nav Divider ── */
.sidebar-nav-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 0.5rem 1rem;
}

/* ── Sidebar Footer ── */
.sidebar-footer {
    padding: 0.75rem 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    margin-top: auto;
    flex-shrink: 0;
}

.sidebar-footer-link {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.65rem 0.9rem;
    color: rgba(255, 255, 255, 0.7) !important;
    font-size: 0.83rem;
    font-weight: 500;
    border-radius: var(--radius-md);
    text-decoration: none !important;
    transition: all var(--duration-fast) var(--ease-out);
}

.sidebar-footer-link:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff !important;
    text-decoration: none !important;
}

.sidebar-footer-link i {
    font-size: 0.9rem;
    width: 18px;
    text-align: center;
    opacity: 0.8;
}


/* ══════════════════════════════════════════════
   CANDIDATE DASHBOARD COMPONENTS
══════════════════════════════════════════════ */

/* ── Welcome Banner ── */
.db-banner {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex-wrap: wrap;
    gap: 1.5rem;
    background: var(--navbar-bg, var(--primary-600)) !important;
    border-radius: var(--card-radius, 16px) !important;
    padding: 2rem 2.5rem !important;
    color: #fff !important;
    position: relative;
    overflow: hidden;
    border: none !important;
    box-shadow: 0 4px 20px color-mix(in srgb, var(--primary-500) 25%, transparent);
}

.db-banner::after {
    content: '';
    position: absolute;
    width: 260px;
    height: 260px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 50%;
    top: -80px;
    right: -50px;
    pointer-events: none;
}

.db-banner::before {
    content: '';
    position: absolute;
    width: 140px;
    height: 140px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 50%;
    bottom: -40px;
    left: 30%;
    pointer-events: none;
}

.db-banner-left {
    display: flex !important;
    align-items: center !important;
    gap: 1.15rem;
    position: relative;
    z-index: 2;
}

.db-avatar {
    width: 54px !important;
    height: 54px !important;
    min-width: 54px;
    border-radius: 50% !important;
    background: rgba(255, 255, 255, 0.2) !important;
    border: 2.5px solid rgba(255, 255, 255, 0.4) !important;
    color: #fff !important;
    font-weight: 800 !important;
    font-size: 1.1rem !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0;
    letter-spacing: 0.03em;
}

.db-banner-title {
    font-size: 1.5rem !important;
    font-weight: 800 !important;
    color: #fff !important;
    margin: 0 0 0.3rem 0 !important;
    padding: 0 !important;
    line-height: 1.25 !important;
    border: none !important;
    letter-spacing: -0.01em;
}

.db-banner-sub {
    color: rgba(255, 255, 255, 0.78) !important;
    font-size: 0.9rem !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1.4 !important;
}

.db-banner-stats {
    display: flex !important;
    align-items: center !important;
    gap: 1.75rem;
    position: relative;
    z-index: 2;
    flex-wrap: nowrap;
}

.db-stat {
    text-align: center;
    min-width: 65px;
}

.db-stat-value {
    font-size: 1.85rem !important;
    font-weight: 800 !important;
    color: #fff !important;
    line-height: 1 !important;
    margin: 0 !important;
    padding: 0 !important;
}

.db-stat-label {
    font-size: 0.7rem !important;
    color: rgba(255, 255, 255, 0.72) !important;
    font-weight: 600 !important;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-top: 0.3rem !important;
    line-height: 1.2 !important;
    white-space: nowrap;
}

.db-stat-divider {
    width: 1px;
    height: 42px;
    background: rgba(255, 255, 255, 0.22);
    flex-shrink: 0;
}

/* Message pulse indicator */
.db-msg-pulse {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ef4444;
    margin-left: 6px;
    position: relative;
    vertical-align: middle;
}

.db-msg-pulse::after {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    border: 2px solid #ef4444;
    animation: msgSonar 1.4s ease-out infinite;
}

@keyframes msgSonar {
    0% {
        transform: scale(1);
        opacity: .7;
    }
    100% {
        transform: scale(2.2);
        opacity: 0;
    }
}

/* ── Scoped reset — neutralise Bootstrap/plugin pollution inside dashboard ── */
.portal-content {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
    font-size: 0.9rem !important;
    color: #334155 !important;
    line-height: 1.55 !important;
}

.portal-content h1,
.portal-content h2,
.portal-content h3,
.portal-content h4,
.portal-content h5,
.portal-content h6 {
    font-family: 'Inter', -apple-system, sans-serif !important;
    color: #0f172a;
    border: none !important;
    border-bottom: none !important;
}

.portal-content p {
    margin-bottom: 0;
}

.portal-content .row {
    margin-left: -15px;
    margin-right: -15px;
}

/* ── Generic Card ── */
.db-card {
    background: #fff;
    border-radius: var(--card-radius, 14px);
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.db-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.1rem 1.5rem;
    border-bottom: 1px solid #f1f5f9;
    gap: 0.75rem;
}

.db-card-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.db-card-title i {
    color: var(--primary-500);
}

.db-card-body {
    padding: 1.25rem 1.5rem;
}

.db-card-body.p-0 {
    padding: 0;
}

.db-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 0.45rem;
    background: #e6f7f3;
    color: var(--primary-700);
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
}

.db-badge--alert {
    background: #fee2e2;
    color: #dc2626;
}

/* ── Notification Feed ── */
.db-notif-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.9rem 1.25rem;
    border-bottom: 1px solid #f8fafc;
    transition: background var(--duration-fast) var(--ease-out);
}

.db-notif-item:last-child {
    border-bottom: none;
}

.db-notif-item:hover {
    background: #f8fafc;
}

.db-notif-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    flex-shrink: 0;
}

.db-notif-content {
    flex: 1;
    min-width: 0;
}

.db-notif-subject {
    font-weight: 600;
    color: #1e293b;
    font-size: 0.85rem;
    margin-bottom: 0.15rem;
}

.db-notif-msg {
    color: #64748b;
    font-size: 0.8rem;
    line-height: 1.45;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.db-notif-date {
    color: #94a3b8;
    font-size: 0.72rem;
    margin-top: 0.25rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.db-notif-priority {
    display: inline-flex;
    align-items: center;
    height: 20px;
    padding: 0 0.5rem;
    border-radius: 999px;
    font-size: 0.62rem;
    font-weight: 700;
    text-transform: uppercase;
    flex-shrink: 0;
    align-self: flex-start;
    margin-top: 2px;
}

/* ── Open Vacancies Quick List ── */
.db-vacancy-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1.25rem;
    border-bottom: 1px solid #f8fafc;
    transition: background var(--duration-fast) var(--ease-out);
}

.db-vacancy-item:last-child {
    border-bottom: none;
}

.db-vacancy-item:hover {
    background: #f8fafc;
}

.db-vacancy-info {
    flex: 1;
    min-width: 0;
}

.db-vacancy-title {
    font-weight: 600;
    color: #1e293b;
    font-size: 0.85rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.db-vacancy-meta {
    font-size: 0.75rem;
    color: #94a3b8;
    margin-top: 0.15rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.db-vacancy-days {
    color: #64748b;
}

.db-vacancy-days.days-urgent {
    color: #ef4444;
    font-weight: 600;
}

.db-vacancy-applied {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #d1fae5;
    color: #059669;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    flex-shrink: 0;
}

.db-vacancy-apply {
    display: inline-flex;
    align-items: center;
    padding: 0.3rem 0.85rem;
    background: var(--primary-500);
    color: #fff !important;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
    text-decoration: none;
    transition: background var(--duration-fast) var(--ease-out);
    flex-shrink: 0;
}

.db-vacancy-apply:hover {
    background: var(--primary-600);
    color: #fff !important;
    text-decoration: none;
}

/* ── Empty State ── */
.db-empty-state {
    text-align: center;
    padding: 2.5rem 1.5rem;
    color: #94a3b8;
}

.db-empty-state i {
    font-size: 2rem;
    display: block;
    margin-bottom: 0.75rem;
}

.db-empty-state p {
    font-size: 0.875rem;
    margin: 0;
}

/* ── Application Cards ── */
.app-card {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 0.85rem;
    transition: box-shadow var(--duration-fast) var(--ease-out);
    background: #fff;
}

.app-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.app-card-header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.1rem 1.25rem;
    flex-wrap: wrap;
}

.app-card-meta {
    flex: 1;
    min-width: 0;
}

.app-card-title {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: 700;
    color: var(--primary-500) !important;
    font-size: 0.95rem;
    text-decoration: none;
    cursor: pointer;
}

.app-card-title:hover {
    color: var(--primary-700) !important;
    text-decoration: none;
}

.app-card-chevron {
    font-size: 0.65rem;
    transition: transform var(--duration-fast) var(--ease-out);
    color: #94a3b8;
}

.app-card-title[aria-expanded="true"] .app-card-chevron,
.app-card-title:not(.collapsed) .app-card-chevron {
    transform: rotate(180deg);
}

.app-card-sub {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 0.4rem;
    font-size: 0.78rem;
    color: #64748b;
}

.app-card-sub span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.app-card-sub i {
    color: #94a3b8;
}

.app-card-status {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    align-items: center;
    flex-shrink: 0;
}

.app-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.app-status-current {
    background: #e6f7f3;
    color: var(--primary-700);
}

.app-status-shortlisted {
    background: #fef3c7;
    color: #b45309;
}

/* Messages button & badge */
.btn-app-msg {
    background: #f0fdf4;
    color: #059669;
    border: 1px solid #bbf7d0;
}

.btn-app-msg:hover {
    background: #dcfce7;
    border-color: #86efac;
}

.btn-msg-badge {
    background: #ef4444;
    color: #fff;
    font-size: .55rem;
    font-weight: 800;
    min-width: 16px;
    height: 16px;
    line-height: 16px;
    text-align: center;
    border-radius: 999px;
    padding: 0 4px;
    margin-left: .15rem;
}

/* Inline message thread */
.app-msg-thread {
    border-top: 1px solid #e2e8f0;
    background: #f8fafc;
    border-radius: 0 0 12px 12px;
    overflow: hidden;
}

.app-msg-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: .5rem 1rem;
    background: var(--primary-600);
    color: #fff;
}

.app-msg-header-title {
    display: flex;
    align-items: center;
    gap: .35rem;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .02em;
    text-transform: uppercase;
}

.app-msg-header-close {
    background: rgba(255, 255, 255, .2);
    border: none;
    color: #fff;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background .15s;
}

.app-msg-header-close:hover {
    background: rgba(255, 255, 255, .35);
}

.app-msg-feed {
    max-height: 300px;
    overflow-y: auto;
    padding: .85rem 1rem;
    display: flex;
    flex-direction: column;
    gap: .5rem;
}

.app-msg-feed::-webkit-scrollbar {
    width: 4px;
}

.app-msg-feed::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

.app-msg-compose {
    border-top: 1px solid #e2e8f0;
    padding: .55rem .75rem;
    background: #fff;
}

.app-msg-compose-inner {
    display: flex;
    align-items: center;
    gap: 0;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: .3rem .4rem;
    transition: border-color .2s, box-shadow .2s;
}

.app-msg-compose-inner:focus-within {
    border-color: var(--primary-500);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary-500) 8%, transparent);
    background: #fff;
}

.app-msg-attach-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    color: #94a3b8;
    cursor: pointer;
    flex-shrink: 0;
    transition: color .15s, background .15s;
    margin-bottom: 0px !important;
}

.app-msg-attach-btn:hover {
    color: var(--primary-500);
    background: color-mix(in srgb, var(--primary-500) 8%, transparent);
}

.app-msg-compose-inner .msg-input {
    flex: 1;
    border: none;
    background: transparent;
    padding: .35rem .4rem;
    font-size: .8rem;
    color: #0f172a;
    resize: none;
    outline: none;
    font-family: inherit;
    line-height: 1.4;
    max-height: 80px;
    min-height: 32px;
    box-shadow: none;
}

.app-msg-compose-inner .msg-input:focus {
    box-shadow: none;
    border-color: transparent;
}

.app-msg-compose-inner .msg-send-btn {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    flex-shrink: 0;
}

/* File chip */
.app-msg-file-chip {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    padding: .25rem .5rem .25rem .45rem;
    margin-top: .4rem;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 6px;
    font-size: .68rem;
    font-weight: 600;
    color: #059669;
}

.app-msg-file-name {
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.app-msg-file-remove {
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    transition: color .15s, background .15s;
    margin-left: .1rem;
}

.app-msg-file-remove:hover {
    color: #ef4444;
    background: #fef2f2;
}

.app-card-actions {
    display: flex;
    gap: 0.4rem;
    align-items: center;
    flex-shrink: 0;
    flex-wrap: wrap;
}

.btn-app-action {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.4rem 0.85rem;
    border-radius: var(--radius-md);
    font-size: 0.78rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all var(--duration-fast) var(--ease-out);
    border: 1.5px solid transparent;
}

.btn-app-view {
    background: var(--primary-500);
    color: #fff !important;
    border-color: var(--primary-500);
}

.btn-app-view:hover {
    background: var(--primary-600);
    border-color: var(--primary-600);
    color: #fff !important;
    text-decoration: none;
}

.btn-app-modify {
    background: #fff;
    color: #475569 !important;
    border-color: #e2e8f0;
}

.btn-app-modify:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    color: #1e293b !important;
    text-decoration: none;
}

.btn-app-interview {
    background: #eff6ff;
    color: #1d4ed8 !important;
    border-color: #bfdbfe;
}

.btn-app-interview:hover {
    background: #dbeafe;
    color: #1e40af !important;
}

/* Expandable detail */
.app-card-detail {
    border-top: 1px solid #f1f5f9;
    padding: 1.1rem 1.25rem;
    background: #fafbfc;
}

.app-detail-group {
    margin-bottom: 0.65rem;
}

.app-detail-label {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #94a3b8;
    margin-bottom: 0.15rem;
}

.app-detail-value {
    font-size: 0.875rem;
    font-weight: 600;
    color: #1e293b;
}

/* ── Additional Status Pill Variants ── */
.app-status-draft {
    background: #fef3c7;
    color: #92400e;
}

.app-status-submitted {
    background: #dbeafe;
    color: #1e40af;
}

.app-status-approved {
    background: #d1fae5;
    color: #065f46;
}

.app-status-rejected {
    background: #fee2e2;
    color: #991b1b;
}

/* ── My Applications Stats Row ── */
.myapps-stats-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
}

.myapps-stat-card {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 1.1rem 1.25rem;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
    transition: box-shadow var(--duration-fast) var(--ease-out),
        transform var(--duration-fast) var(--ease-out);
}

.myapps-stat-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    transform: translateY(-1px);
}

.myapps-stat-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.myapps-stat-value {
    font-size: 1.5rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1;
}

.myapps-stat-label {
    font-size: 0.72rem;
    font-weight: 600;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-top: 0.2rem;
}

/* ── Info Banner ── */
.myapps-info-banner {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 12px;
    font-size: 0.85rem;
    color: #1e40af;
    line-height: 1.55;
}

.myapps-info-banner strong {
    color: #1e3a8a;
}

.myapps-info-icon {
    flex-shrink: 0;
    margin-top: 0.1rem;
    color: #3b82f6;
}


/* ══════════════════════════════════════════════
   LEGACY FORM WRAPPER OVERRIDES
   Modernises ibox / wrapper-content / page-heading
   for views that still use old markup.
══════════════════════════════════════════════ */

/* Page heading breadcrumb */
.page-heading {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    margin-bottom: 1rem !important;
}

.page-heading h2 {
    font-size: 1.5rem !important;
    font-weight: 800 !important;
    color: #0f172a !important;
    margin: 0 0 0.3rem !important;
}

.page-heading .breadcrumb {
    background: none !important;
    padding: 0 !important;
    margin: 0 !important;
    font-size: 0.82rem;
}

.page-heading .breadcrumb .breadcrumb-item a {
    color: #64748b;
}

.page-heading .breadcrumb .breadcrumb-item.active {
    color: #334155;
    font-weight: 600;
}

/* ibox card override */
.ibox {
    background: #fff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 16px !important;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04) !important;
    margin-bottom: 1.5rem !important;
    overflow: hidden;
}

.ibox-title {
    background: #fff !important;
    border-bottom: 1px solid #f1f5f9 !important;
    padding: 1.1rem 1.75rem !important;
    min-height: auto !important;
}

.ibox-title h5 {
    font-size: 0.95rem !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    text-transform: none !important;
}

.ibox-content {
    padding: 1.75rem !important;
    background: #fff !important;
    border: none !important;
}

.ibox-content>div>h2 {
    font-size: 1.15rem !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    margin: 0 0 0.25rem !important;
}

/* wrapper-content */
.wrapper-content {
    padding: 0 !important;
    background: transparent !important;
}

/* step-content override */
.step-content {
    background: #fff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 12px !important;
    padding: 1.5rem !important;
}

/* hr-line-dashed */
.hr-line-dashed {
    border-top: 1px dashed #e2e8f0 !important;
    border-bottom: none !important;
    margin: 1.5rem 0 !important;
}

/* form-group label styling */
.ibox-content .form-group label {
    font-size: 0.82rem;
    font-weight: 600;
    color: #334155;
    margin-bottom: 0.35rem;
}

/* input-group-addon (calendar icons) */
.input-group-addon {
    background: #f8fafc !important;
    border: 1.5px solid #e2e8f0 !important;
    color: #64748b !important;
    font-size: 0.82rem;
    border-radius: var(--radius-md) 0 0 var(--radius-md) !important;
}

/* form-group spacing */
.ibox-content .form-group,
.step-content .form-group {
    margin-bottom: 1.1rem;
}

/* input-group (date pickers) - fix joined borders */
.input-group .form-control {
    border-radius: 0 8px 8px 0 !important;
}

.input-daterange .form-control:first-child {
    border-radius: 8px 0 0 8px !important;
}

.input-daterange .input-group-addon {
    background: #f1f5f9 !important;
    border: 1.5px solid #cbd5e1 !important;
    border-radius: 0 !important;
    padding: 0.5rem 0.75rem;
    color: #64748b !important;
    font-size: 0.8rem;
}

/* Override old stepper to use new stepper visuals */
.stepper-wrapper {
    display: none !important;
}

/* Legacy btn-primary fix (used in Previous/Next links) */
.ibox-content .btn-primary,
.step-content .btn-primary {
    background: var(--primary-500) !important;
    border-color: var(--primary-500) !important;
    border-radius: var(--radius-full) !important;
    font-weight: 600 !important;
    font-size: 0.82rem !important;
    padding: 0.55rem 1.25rem !important;
    transition: all var(--duration-fast) var(--ease-out) !important;
}

.ibox-content .btn-primary:hover,
.step-content .btn-primary:hover {
    background: var(--primary-600) !important;
    border-color: var(--primary-600) !important;
}

.ibox-content .btn-default {
    background: #fff !important;
    border: 1.5px solid #e2e8f0 !important;
    border-radius: var(--radius-full) !important;
    font-size: 0.82rem !important;
    font-weight: 600 !important;
    color: #475569 !important;
}

.ibox-content .btn-success {
    background: #059669 !important;
    border-color: #059669 !important;
    border-radius: var(--radius-full) !important;
    font-weight: 600 !important;
}

/* ══════════════════════════════════════════════
   APPLICATION WIZARD & FORM COMPONENTS
══════════════════════════════════════════════ */

/* ── Page Header ── */
.app-page-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.app-page-title {
    font-size: 1.5rem !important;
    font-weight: 800 !important;
    color: #0f172a !important;
    margin: 0 0 0.35rem !important;
    line-height: 1.2;
}

.app-breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.82rem;
}

.app-breadcrumb a {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    color: #64748b;
    text-decoration: none;
    transition: color var(--duration-fast) var(--ease-out);
}

.app-breadcrumb a:hover {
    color: var(--primary-500);
}

.app-breadcrumb svg {
    flex-shrink: 0;
}

.breadcrumb-sep {
    color: #cbd5e1;
    display: flex;
    align-items: center;
}

.breadcrumb-current {
    color: #334155;
    font-weight: 600;
}

.btn-app-back {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.55rem 1.2rem;
    background: #fff;
    color: #475569 !important;
    border: 1.5px solid #e2e8f0;
    border-radius: var(--radius-full);
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none !important;
    transition: all var(--duration-fast) var(--ease-out);
    flex-shrink: 0;
}

.btn-app-back:hover {
    background: #f8fafc;
    border-color: var(--primary-500);
    color: var(--primary-500) !important;
}

/* ── Position Banner ── */
.app-position-banner {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: linear-gradient(135deg, #e6f7f3 0%, #ccefe7 100%);
    border: 1.5px solid #99dfcf;
    border-radius: 14px;
    padding: 1.1rem 1.5rem;
    margin-bottom: 1.5rem;
}

.app-position-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--primary-500);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #fff;
}

.app-position-label {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--primary-700);
    margin-bottom: 0.15rem;
}

.app-position-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #065f46;
}

/* ── Wizard Stepper ── */
.wizard-stepper {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 0;
    margin-bottom: 2rem;
    padding: 0 1rem;
}

.wizard-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    position: relative;
    z-index: 1;
}

/* Connecting line between steps */
.wizard-step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 22px;
    left: calc(50% + 24px);
    width: calc(100% - 48px);
    height: 2px;
    background: #e2e8f0;
    z-index: 0;
}

.wizard-step.completed:not(:last-child)::after {
    background: var(--primary-500);
}

.wizard-step-indicator {
    position: relative;
    z-index: 2;
    margin-bottom: 0.5rem;
}

.wizard-step-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    transition: all var(--duration-normal) var(--ease-out);
}

/* Active step */
.wizard-step.active .wizard-step-icon {
    background: var(--primary-500);
    border-color: var(--primary-500);
    color: #fff;
    box-shadow: 0 4px 14px color-mix(in srgb, var(--primary-500) 35%, transparent);
}

.wizard-step.active .wizard-step-label {
    color: var(--primary-500);
    font-weight: 700;
}

/* Completed step */
.wizard-step.completed .wizard-step-icon {
    background: #d1fae5;
    border-color: var(--primary-500);
    color: #059669;
}

.wizard-step.completed .wizard-step-label {
    color: #059669;
    font-weight: 600;
}

.wizard-step-label {
    font-size: 0.75rem;
    color: #94a3b8;
    font-weight: 500;
    text-align: center;
    white-space: nowrap;
}

/* ── Form Card ── */
.wizard-form-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
    padding: 0;
    overflow: hidden;
}

/* ── Form Section ── */
.form-section {
    padding: 2rem 2.5rem;
    border-bottom: 1px solid #f1f5f9;
}

.form-section:last-of-type {
    border-bottom: none;
}

.form-section-header {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    margin-bottom: 1.5rem;
}

.form-section-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: #e6f7f3;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--primary-500);
}

.form-section-title {
    font-size: 1.05rem !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    margin: 0 0 0.2rem !important;
}

.form-section-desc {
    font-size: 0.82rem;
    color: #64748b;
    margin: 0;
    line-height: 1.4;
}

/* ── Form Fields ── */
.form-field {
    margin-bottom: 1.2rem;
}

.form-field-label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: #334155;
    margin-bottom: 0.4rem;
}

.form-field-label .required {
    color: #ef4444;
    margin-left: 0.15rem;
}

/* Global form-control override for the entire portal */
.wizard-form-card .form-control,
.form-field .form-control,
.portal-content .form-control,
.step-content .form-control,
.ibox-content .form-control {
    border-radius: 8px !important;
    padding: 0.6rem 0.85rem !important;
    font-size: 0.875rem !important;
    color: #1e293b !important;
    background: #fff !important;
    height: auto !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05) !important;
    transition: border-color 0.15s ease, box-shadow 0.15s ease !important;
}

.wizard-form-card .form-control:focus,
.form-field .form-control:focus,
.portal-content .form-control:focus,
.step-content .form-control:focus,
.ibox-content .form-control:focus {
    border-color: var(--primary-500) !important;
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary-500) 12%, transparent) !important;
    outline: none !important;
}

.form-field .form-control::placeholder {
    color: #94a3b8;
}

/* Select2 container override */
.wizard-form-card .select2-container--default .select2-selection--single,
.portal-content .select2-container--default .select2-selection--single,
.ibox-content .select2-container--default .select2-selection--single {
    border-radius: 8px !important;
    height: 40px !important;
    padding: 0.3rem 0.5rem !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05) !important;
}

.wizard-form-card .select2-container--default .select2-selection--single .select2-selection__rendered,
.portal-content .select2-container--default .select2-selection--single .select2-selection__rendered,
.ibox-content .select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 32px !important;
    color: #1e293b !important;
    font-size: 0.875rem !important;
    padding-left: 4px !important;
}

.wizard-form-card .select2-container--default .select2-selection--single .select2-selection__arrow,
.portal-content .select2-container--default .select2-selection--single .select2-selection__arrow,
.ibox-content .select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 38px !important;
}

.select2-container--default .select2-selection--single:focus,
.select2-container--default.select2-container--open .select2-selection--single {
    border-color: var(--primary-500) !important;
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary-500) 12%, transparent) !important;
}

/* Select2 dropdown panel */
.select2-container--default .select2-dropdown {
    border: 1px solid #e2e8f0 !important;
    border-radius: 8px !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1) !important;
    overflow: hidden;
}

/* Search box inside dropdown — make it borderless */
.select2-container--default .select2-search--dropdown {
    padding: 0.5rem !important;
    background: #f8fafc !important;
    border-bottom: 1px solid #f1f5f9 !important;
}

.select2-container--default .select2-search--dropdown .select2-search__field {
    border: none !important;
    border-radius: 6px !important;
    padding: 0.45rem 0.65rem !important;
    font-size: 0.82rem !important;
    background: #fff !important;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.06) !important;
    outline: none !important;
}

.select2-container--default .select2-search--dropdown .select2-search__field:focus {
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.06), 0 0 0 2px color-mix(in srgb, var(--primary-500) 15%, transparent) !important;
}

/* Select2 results */
.select2-container--default .select2-results__option {
    padding: 0.45rem 0.75rem !important;
    font-size: 0.82rem !important;
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background: var(--primary-500) !important;
    color: #fff !important;
}

.form-field-hint {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.75rem;
    color: #94a3b8;
    margin-top: 0.35rem;
}

.form-field-hint svg {
    flex-shrink: 0;
    color: #cbd5e1;
}

/* ── Input Icon Group ── */
.input-icon-group {
    position: relative;
}

.input-icon-group .input-icon {
    position: absolute;
    left: 0.85rem;
    top: 50%;
    transform: translateY(-50%);
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    z-index: 5;
    width: 18px;
    height: 18px;
}

.input-icon-group .input-icon svg {
    width: 16px;
    height: 16px;
    display: block;
}

.input-icon-group .form-control {
    padding-left: 2.5rem !important;
}

/* ── Qualification / Record List Card ── */
.qualification-list-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.25rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.qualification-list-card .table {
    margin-bottom: 0;
}

.qualification-list-card .table thead th {
    border-top: none;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.qualification-list-card .table tbody tr:last-child {
    border-bottom: none;
}

.qualification-list-card .table tbody tr:hover {
    background: #f8fafc;
}

/* ── Education Certificate Dropzone ── */
.edu-dropzone {
    position: relative;
    border: 2px dashed #cbd5e1;
    border-radius: 12px;
    background: #f8fafc;
    padding: 2.5rem 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.edu-dropzone:hover,
.edu-dropzone.drag-over {
    border-color: var(--primary-500);
    background: #f0fdfa;
}

.edu-dropzone-input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
}

.edu-dropzone-inner {
    pointer-events: none;
}

.edu-dropzone-text {
    margin: 0.75rem 0 0.25rem;
    font-size: 0.875rem;
    color: #475569;
    font-weight: 500;
}

.edu-dropzone-browse {
    color: var(--primary-500);
    font-weight: 600;
    text-decoration: underline;
    cursor: pointer;
}

.edu-dropzone-hint {
    font-size: 0.75rem;
    color: #94a3b8;
    margin: 0;
}

.edu-file-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.edu-file-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 0.6rem 0.85rem;
    font-size: 0.82rem;
}

.edu-file-item-icon {
    flex-shrink: 0;
    color: var(--primary-500);
}

.edu-file-item-name {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #1e293b;
    font-weight: 500;
}

.edu-file-item-size {
    color: #94a3b8;
    font-size: 0.75rem;
    white-space: nowrap;
}

.edu-file-item-remove {
    background: none;
    border: none;
    padding: 0;
    color: #94a3b8;
    cursor: pointer;
    line-height: 1;
    transition: color 0.15s;
}

.edu-file-item-remove:hover {
    color: #ef4444;
}

.edu-file-item.uploading {
    opacity: 0.6;
}

.edu-file-item.success {
    border-color: var(--primary-500);
    background: #f0fdfa;
}

.edu-file-item.success .edu-file-item-icon {
    color: var(--primary-500);
}

.edu-file-item.error {
    border-color: #fca5a5;
    background: #fff5f5;
}

/* Compact variant — used inline inside the qualification form */
.edu-dropzone-compact {
    padding: 0.9rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.edu-dropzone-compact .edu-dropzone-inner {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.edu-dropzone-compact .edu-dropzone-text {
    margin: 0;
    font-size: 0.82rem;
}

/* Existing document card — shown when editing a qualification */
.edu-existing-doc {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    background: #f8fafc;
    border: 1px solid #f1f5f9;
    border-radius: 8px;
    margin-bottom: 6px;
    transition: all 0.15s ease;
}

.edu-existing-doc:hover {
    background: #f1f5f9;
    border-color: #e2e8f0;
}

/* ── Photo Upload ── */
.photo-upload-area {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    flex-wrap: wrap;
}

#image-preview {
    width: 100%;
    aspect-ratio: 1;
    max-width: 160px;
    border-radius: 12px;
    border: 2px dashed #cbd5e1;
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    transition: border-color var(--duration-fast) var(--ease-out);
    cursor: pointer;
}

#image-preview:hover {
    border-color: var(--primary-500);
}

#image-preview input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
    z-index: 10;
}

#image-preview label {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    color: #94a3b8;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    z-index: 5;
    position: relative;
    text-align: center;
    background: none;
    width: auto;
    height: auto;
    line-height: 1.3;
    text-transform: none;
    opacity: 1;
    margin: 0;
    left: auto;
    right: auto;
    bottom: auto;
    padding: 0;
}

.photo-upload-hint {
    font-size: 0.78rem;
    color: #64748b;
    line-height: 1.55;
    max-width: 400px;
    padding-top: 0.5rem;
    min-width: 200px;
}

.photo-upload-hint svg {
    display: inline;
    vertical-align: middle;
    margin-right: 0.3rem;
    flex-shrink: 0;
    color: #f59e0b;
}

/* ── Form Actions Bar ── */
.form-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 2.5rem;
    background: #f8fafc;
    border-top: 1px solid #f1f5f9;
    gap: 1rem;
    flex-wrap: wrap;
}

.form-actions-hint {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.78rem;
    color: #94a3b8;
}

.form-actions-hint svg {
    flex-shrink: 0;
    color: #cbd5e1;
}

.btn-wizard-next {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.7rem 1.75rem;
    background: var(--primary-500);
    color: #fff;
    border: none;
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 700;
    cursor: pointer;
    transition: all var(--duration-fast) var(--ease-out);
    box-shadow: 0 2px 8px color-mix(in srgb, var(--primary-500) 30%, transparent);
}

.btn-wizard-next:hover {
    background: var(--primary-600);
    box-shadow: 0 4px 14px color-mix(in srgb, var(--primary-500) 40%, transparent);
    transform: translateY(-1px);
}

.btn-wizard-next:disabled,
.btn-wizard-next[disabled] {
    background: #cbd5e1;
    color: #94a3b8;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
    pointer-events: none;
}

.btn-wizard-prev {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 1.5rem;
    background: #fff;
    color: #475569;
    border: 1.5px solid #e2e8f0;
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--duration-fast) var(--ease-out);
}

.btn-wizard-prev:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
}

/* Fix wizard buttons when used as links */
a.btn-wizard-next,
a.btn-wizard-prev {
    text-decoration: none !important;
}

a.btn-wizard-next {
    color: #fff !important;
}

a.btn-wizard-prev {
    color: #475569 !important;
}

/* ── Review / Declaration Components ── */
.review-block {
    background: #f8fafc;
    border: 1px solid #f1f5f9;
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    margin-bottom: 1rem;
}

.review-block-title {
    font-size: 0.9rem !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    margin: 0 0 1rem !important;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #e2e8f0;
}

.review-block-title svg {
    color: var(--primary-500);
    flex-shrink: 0;
}

.review-item {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 0.4rem 0;
    border-bottom: 1px dotted #f1f5f9;
}

.review-item:last-child {
    border-bottom: none;
}

.review-label {
    font-size: 0.78rem;
    color: #64748b;
    font-weight: 500;
    flex-shrink: 0;
    min-width: 120px;
}

.review-value {
    font-size: 0.82rem;
    color: #0f172a;
    font-weight: 600;
    text-align: right;
}

/* Review Sidebar Card */
.review-sidebar-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    overflow: hidden;
    position: sticky;
    top: 80px;
}

.review-sidebar-header {
    background: linear-gradient(135deg, #e6f7f3 0%, #ccefe7 100%);
    padding: 1.5rem;
    text-align: center;
}

.review-sidebar-photo {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    border: 3px solid #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    object-fit: cover;
    margin-bottom: 0.75rem;
}

.review-sidebar-name {
    font-size: 1rem !important;
    font-weight: 700 !important;
    color: #065f46 !important;
    margin: 0 0 0.2rem !important;
}

.review-sidebar-id {
    font-size: 0.78rem;
    color: var(--primary-700);
    font-weight: 500;
    margin-bottom: 0.35rem;
}

.review-sidebar-position {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--primary-500);
    background: color-mix(in srgb, var(--primary-500) 10%, transparent);
    display: inline-block;
    padding: 0.2rem 0.65rem;
    border-radius: 20px;
}

.review-sidebar-section {
    padding: 1.25rem 1.5rem;
}

.review-sidebar-section-title {
    font-size: 0.78rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em;
    color: #334155 !important;
    margin: 0 0 0.75rem !important;
}

/* Review Attachment Item */
.review-attachment-item {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid #f8fafc;
}

.review-attachment-item:last-child {
    border-bottom: none;
}

.review-attachment-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
}

.review-attachment-icon.attached {
    background: #d1fae5;
    color: #059669;
}

.review-attachment-icon.missing {
    background: #fee2e2;
    color: #dc2626;
}

.review-attachment-name {
    font-size: 0.82rem;
    font-weight: 600;
    color: #334155;
    margin-bottom: 0.15rem;
}

/* Review table override */
.review-block .table {
    font-size: 0.82rem;
}

.review-block .table td {
    padding: 0.6rem 0.5rem;
    border-color: #f1f5f9;
    vertical-align: middle;
}

.review-block .badge {
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.25rem 0.6rem;
    border-radius: 6px;
}


.portal-main {
    margin-left: 260px;
    min-height: 100vh;
    width: calc(100% - 260px);
    background: var(--slate-50);
    display: flex;
    flex-direction: column;
    transition: margin-left var(--duration-normal) var(--ease-out), width var(--duration-normal) var(--ease-out);
}

.portal-topbar {
    background: #fff;
    padding: 0.75rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--slate-100);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.topbar-toggle {
    background: none;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    color: var(--slate-500);
    font-size: 1.25rem;
    cursor: pointer;
    padding: 0.4rem;
    border-radius: var(--radius-sm);
    transition: all var(--duration-fast) var(--ease-out);
}

.topbar-toggle:hover {
    background: var(--slate-100);
    color: var(--slate-700);
}

.topbar-welcome {
    color: var(--slate-500);
    font-size: 0.9rem;
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.btn-topbar-logout {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1.25rem;
    background: var(--slate-50);
    color: var(--slate-600);
    border: 1px solid var(--slate-200);
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.8rem;
    transition: all var(--duration-fast) var(--ease-out);
    cursor: pointer;
    text-decoration: none;
}

.btn-topbar-logout:hover {
    background: var(--danger-100);
    color: var(--danger-500);
    border-color: var(--danger-500);
    text-decoration: none;
}

.portal-content {
    flex: 1;
    padding: 2rem;
}

/* ---------- AUTHENTICATED LAYOUT : Footer ---------- */
.portal-footer {
    background: #fff;
    border-top: 1px solid var(--slate-100);
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--slate-500);
}

.portal-footer a {
    color: var(--primary-600);
    font-weight: 600;
}

/* ---------- Collapsible sidebar (mini mode) ---------- */
body.mini-navbar .portal-sidebar {
    width: 70px;
    overflow: visible;
    /* allow hover flyouts to escape the sidebar bounds */
}

body.mini-navbar .portal-main {
    margin-left: 70px;
    width: calc(100% - 70px);
}

/* Hide text labels */
body.mini-navbar .sidebar-header {
    padding: 1rem 0;
    justify-content: center;
}

body.mini-navbar .sidebar-logo img {
    height: 26px;
}

body.mini-navbar .sidebar-client-name {
    display: none;
}

body.mini-navbar .sidebar-user-section {
    justify-content: center;
    padding: 0.9rem 0;
}

body.mini-navbar .sidebar-user-info {
    display: none;
}

body.mini-navbar .sidebar-user-avatar {
    width: 36px;
    height: 36px;
    font-size: 0.8rem;
}

/* Nav links — icon-only */
body.mini-navbar .sidebar-nav {
    padding: 0.75rem 0.5rem;
}

body.mini-navbar .sidebar-nav-link {
    justify-content: center;
    padding: 0.7rem;
    gap: 0;
}

body.mini-navbar .sidebar-nav-link span,
body.mini-navbar .sidebar-nav-arrow,
body.mini-navbar .sidebar-subnav {
    display: none !important;
}

body.mini-navbar .sidebar-nav-link i:first-child {
    width: auto;
    font-size: 1.15rem;
}

/* ── Mini mode: hover flyout submenu ── */
body.mini-navbar .sidebar-nav-item {
    position: relative;
}

/* Show subnav on hover as a flyout */
body.mini-navbar .sidebar-nav-item:hover .sidebar-subnav {
    display: block !important;
    position: absolute;
    left: 70px;
    top: 0;
    min-width: 200px;
    background: var(--primary-700);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    box-shadow: 4px 4px 16px rgba(0, 0, 0, 0.25);
    padding: 0.5rem 0;
    z-index: 2000;
}

/* Invisible bridge — fills the gap between the icon and the flyout panel
   so hover state is maintained while the cursor moves across */
body.mini-navbar .sidebar-nav-item:hover .sidebar-subnav::before {
    content: '';
    position: absolute;
    right: 100%;
    top: 0;
    bottom: 0;
    width: 20px;
}

/* Highlight parent icon while flyout is open */
body.mini-navbar .sidebar-nav-item:hover>.sidebar-nav-link {
    background: rgba(255, 255, 255, 0.2);
}

body.mini-navbar .sidebar-subnav li {
    list-style: none;
}

body.mini-navbar .sidebar-subnav .sidebar-nav-sublink {
    padding: 0.6rem 1.25rem;
    white-space: nowrap;
    font-size: 0.85rem;
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

body.mini-navbar .sidebar-subnav .sidebar-nav-sublink:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff !important;
}

/* Footer — icon only in mini mode */
body.mini-navbar .sidebar-footer-link {
    justify-content: center;
    padding: 0.65rem;
    gap: 0;
}

body.mini-navbar .sidebar-footer-link span {
    display: none;
}

body.mini-navbar .sidebar-footer-link i {
    width: auto;
    font-size: 1.1rem;
}

/* ---------- Responsive ---------- */

/* ── Sidebar overlay (mobile backdrop) ── */
.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 999;
    backdrop-filter: blur(2px);
    transition: opacity var(--duration-normal) var(--ease-out);
}

body.sidebar-open .sidebar-overlay {
    display: block;
}

/* ── Tablet & below (≤991px) ── */
@media (max-width: 991px) {
    .portal-sidebar {
        transform: translateX(-100%);
    }

    body.sidebar-open .portal-sidebar {
        transform: translateX(0);
    }

    .portal-main {
        margin-left: 0 !important;
        width: 100% !important;
    }

    .portal-topbar {
        padding: 0.6rem 1rem;
    }

    .portal-content {
        padding: 1.25rem;
    }

    /* Dashboard banner — stack vertically */
    .db-banner {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        padding: 1.25rem;
    }

    .db-banner-stats {
        width: 100%;
        justify-content: flex-start;
        gap: 1.5rem;
    }

    /* App card header — stack actions below meta */
    .app-card-header {
        flex-wrap: wrap;
        gap: 0.75rem;
    }

    .app-card-meta {
        flex: 1 1 100%;
    }

    .app-card-status {
        order: 3;
    }

    .app-card-actions {
        order: 4;
        width: 100%;
        justify-content: flex-start;
    }

    /* Wizard stepper — compact */
    .wizard-stepper {
        gap: 0;
        padding: 0.75rem 0.5rem;
    }

    .wizard-step-label {
        display: none;
    }

    .wizard-step-connector {
        flex: 0 0 1rem;
    }

    /* Form sections */
    .form-section {
        padding: 1.25rem;
    }

    .form-section-header {
        flex-direction: column;
        gap: 0.5rem;
    }

    /* Review sidebar card */
    .review-sidebar-card {
        margin-top: 1.25rem;
    }

    .hero-stats {
        gap: 2rem;
    }

    .hero-stat-value {
        font-size: 1.5rem;
    }
}

/* ── Mobile (≤768px) ── */
@media (max-width: 768px) {
    .portal-content {
        padding: 1rem 0.75rem;
    }

    .portal-topbar {
        padding: 0.5rem 0.75rem;
    }

    .btn-topbar-logout span,
    .btn-topbar-logout {
        font-size: 0.75rem;
        padding: 0.4rem 0.75rem;
    }

    /* Dashboard banner — tighter */
    .db-banner {
        padding: 1rem;
        border-radius: var(--radius-md);
    }

    .db-banner-title {
        font-size: 1.1rem;
    }

    .db-avatar {
        width: 42px;
        height: 42px;
        font-size: 0.9rem;
    }

    .db-stat-value {
        font-size: 1.25rem;
    }

    /* Cards — reduce padding */
    .db-card-header {
        padding: 0.75rem 1rem;
    }

    .db-card-body {
        padding: 0.75rem 1rem;
    }

    /* App cards */
    .app-card-sub {
        flex-direction: column;
        gap: 0.2rem;
    }

    .app-card-detail {
        padding: 0.75rem 1rem;
    }

    /* Form card */
    .wizard-form-card {
        border-radius: var(--radius-md);
    }

    .form-section {
        padding: 1rem 0.75rem;
    }

    .form-actions {
        flex-direction: column;
        gap: 0.75rem;
        padding: 1rem 0.75rem;
    }

    .form-actions-hint {
        text-align: center;
    }

    .btn-wizard-prev,
    .btn-wizard-next {
        width: 100%;
        justify-content: center;
    }

    /* Page header */
    .app-page-header {
        flex-direction: column;
        gap: 0.75rem;
        align-items: flex-start;
    }

    .btn-app-back {
        align-self: flex-start;
    }

    /* Position banner */
    .app-position-banner {
        padding: 0.75rem 1rem;
    }

    /* Detail groups in profile/review */
    .app-detail-group {
        margin-bottom: 0.75rem;
    }

    /* Landing / public page */
    .portal-hero {
        padding: 6rem 1.5rem 4rem;
        min-height: 90vh;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-stats {
        flex-direction: column;
        gap: 1.5rem;
    }

    .search-card {
        padding: 1.25rem;
    }
}

/* ── Small mobile (≤480px) ── */
@media (max-width: 480px) {
    .portal-content {
        padding: 0.75rem 0.5rem;
    }

    .db-banner-left {
        gap: 0.5rem;
    }

    .db-banner-stats {
        flex-wrap: wrap;
        gap: 1rem;
    }

    .db-stat {
        min-width: 0;
    }

    /* Notif items (sidebar lists) */
    .db-notif-item {
        padding: 0.65rem 0.75rem;
    }

    /* Vacancy items */
    .db-vacancy-item {
        padding: 0.65rem 0.75rem;
    }

    /* Action buttons — full width */
    .app-card-actions {
        flex-direction: column;
    }

    .btn-app-action {
        width: 100%;
        justify-content: center;
    }

    /* Modal full width */
    .modal-dialog {
        margin: 0.5rem;
    }
}

/* ---------- Loading Skeleton ---------- */
.skeleton-card {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    border: 1px solid var(--slate-100);
}

.skeleton-line {
    height: 12px;
    background: linear-gradient(90deg, var(--slate-100) 25%, var(--slate-200) 50%, var(--slate-100) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 6px;
    margin-bottom: 0.75rem;
}

.skeleton-line:last-child {
    margin-bottom: 0;
}

.skeleton-line.w-75 {
    width: 75%;
}

.skeleton-line.w-50 {
    width: 50%;
}

.skeleton-line.w-25 {
    width: 25%;
}

.skeleton-line.h-lg {
    height: 18px;
}

@keyframes shimmer {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

/* ---------- Empty State ---------- */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--slate-400);
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--slate-300);
}

.empty-state h4 {
    color: var(--slate-600);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.empty-state p {
    color: var(--slate-400);
    font-size: 0.9rem;
}

/* ---------- Utility: Radio / Checkbox replacements ---------- */
.portal-radio {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--slate-600);
}

.portal-radio input[type="radio"] {
    accent-color: var(--primary-600);
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.portal-checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--slate-600);
}

.portal-checkbox input[type="checkbox"] {
    accent-color: var(--primary-600);
    width: 18px;
    height: 18px;
    cursor: pointer;
}

/* ---------- Misc Overrides for backward compat ---------- */
.text-grey-mild {
    color: var(--slate-500);
}

.navy {
    color: var(--primary-600) !important;
}

.text-muted {
    color: var(--slate-500) !important;
}

/* Override bootstrap primary */
.btn-primary {
    background: var(--gradient-primary) !important;
    border-color: var(--primary-600) !important;
    border-radius: var(--radius-md) !important;
    box-shadow: 0 2px 8px color-mix(in srgb, var(--primary-500) 20%, transparent);
    font-weight: 600;
    transition: all var(--duration-normal) var(--ease-out);
}

.btn-primary:hover,
.btn-primary:focus {
    box-shadow: 0 4px 14px color-mix(in srgb, var(--primary-500) 35%, transparent) !important;
    transform: translateY(-1px);
}

.btn-info {
    background: linear-gradient(135deg, var(--info-500), #60a5fa) !important;
    border-color: var(--info-500) !important;
    border-radius: var(--radius-md) !important;
}

/* ==========================================================================
   INSPINIA BACKWARD COMPATIBILITY
   Styles for inner views (Application forms, Candidate pages) that still
   use legacy INSPINIA classes. These are minimal, clean replacements.
   ========================================================================== */

/* Wrapper */
.wrapper-content,
.wrapper.wrapper-content {
    padding: 1.5rem 0;
}

.animated {
    animation-duration: 0.5s;
}

.fadeInRight {
    animation-name: fadeInRight;
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* iBox Card System */
.ibox {
    background: #fff;
    border-radius: var(--radius-lg);
    border: 1px solid var(--slate-100);
    box-shadow: var(--shadow-sm);
    transition: all var(--duration-normal) var(--ease-out);
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.ibox:hover {
    box-shadow: var(--shadow-md);
}

.ibox-title {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--slate-100);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
    min-height: auto;
}

.ibox-title h2,
.ibox-title h3,
.ibox-title h5 {
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--slate-800);
    margin: 0;
    font-size: 1rem;
}

.ibox-title .label {
    display: inline-block;
    padding: 0.25rem 0.65rem;
    border-radius: var(--radius-full);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.ibox-content {
    padding: 1.5rem;
}

.ibox-heading {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--slate-100);
    background: var(--slate-50);
}

.ibox-heading h3 {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--slate-800);
    margin: 0 0 0.25rem;
}

/* iBox footer */
.ibox-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--slate-100);
    background: var(--slate-50);
}

/* Labels / Badges (INSPINIA style) */
.label-primary,
.badge-primary {
    background-color: var(--primary-500);
    color: #fff;
}

.label-success,
.badge-success {
    background-color: var(--success-500);
    color: #fff;
}

.label-info,
.badge-info {
    background-color: var(--info-500);
    color: #fff;
}

.label-warning,
.badge-warning {
    background-color: var(--warning-500);
    color: #fff;
}

.label-danger,
.badge-danger {
    background-color: var(--danger-500);
    color: #fff;
}

.label-purple,
.badge-purple {
    background-color: #7e22ce;
    color: #fff;
}

.label-default,
.badge-default {
    background-color: var(--slate-400);
    color: #fff;
}

.label {
    display: inline-block;
    padding: 0.25rem 0.6rem;
    font-size: 0.7rem;
    font-weight: 700;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

/* Background helpers */
.bg-primary-light {
    background: #eef2ff;
}

.bg-purple-light {
    background: #f3e8ff;
}

.bg-success-light {
    background: #dcfce7;
}

.bg-warning-light {
    background: #fef3c7;
}

.bg-danger-light {
    background: #fee2e2;
}

.bg-info-light {
    background: #dbeafe;
}

/* Text helpers */
.text-navy,
.text-primary {
    color: var(--primary-600) !important;
}

.text-success {
    color: var(--success-500) !important;
}

.text-danger {
    color: var(--danger-500) !important;
}

.text-warning {
    color: var(--warning-500) !important;
}

.text-info {
    color: var(--info-500) !important;
}

.text-purple {
    color: #7e22ce !important;
}

.text-white {
    color: #fff !important;
}

/* Spacing helpers */
.m-t {
    margin-top: 1rem;
}

.m-t-xs {
    margin-top: 0.25rem;
}

.m-t-sm {
    margin-top: 0.5rem;
}

.m-t-md {
    margin-top: 1rem;
}

.m-t-lg {
    margin-top: 1.5rem;
}

.m-t-xl {
    margin-top: 2rem;
}

.m-b {
    margin-bottom: 1rem;
}

.m-b-xs {
    margin-bottom: 0.25rem;
}

.m-b-sm {
    margin-bottom: 0.5rem;
}

.m-b-md {
    margin-bottom: 1rem;
}

.m-b-lg {
    margin-bottom: 1.5rem;
}

.m-b-xl {
    margin-bottom: 2rem;
}

.m-l {
    margin-left: 1rem;
}

.m-l-sm {
    margin-left: 0.5rem;
}

.m-r {
    margin-right: 1rem;
}

.m-r-sm {
    margin-right: 0.5rem;
}

.p-md {
    padding: 1rem;
}

.p-lg {
    padding: 1.5rem;
}

.no-margins {
    margin: 0 !important;
}

.no-padding {
    padding: 0 !important;
}

/* Font helpers */
.font-bold {
    font-weight: 700;
}

.font-normal {
    font-weight: 400;
}

.small {
    font-size: 0.85rem;
}

.text-right {
    text-align: right;
}

.text-center {
    text-align: center;
}

/* Form control overrides (authenticated area) */
.portal-content .form-control {
    border: 1.5px solid var(--slate-200);
    border-radius: var(--radius-md);
    padding: 0.6rem 0.85rem;
    font-size: 0.9rem;
    font-family: var(--font-primary);
    color: var(--slate-700);
    background: #fff;
    transition: all var(--duration-fast) var(--ease-out);
    height: auto;
}

.portal-content .form-control:focus {
    border-color: var(--primary-400);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary-500) 8%, transparent);
    outline: none;
}

.portal-content .form-group>label {
    font-weight: 600;
    color: var(--slate-600);
    font-size: 0.85rem;
    margin-bottom: 0.35rem;
}

/* Nav Tabs (used in application steps) */
.nav-tabs {
    border-bottom: 2px solid var(--slate-100);
}

.nav-tabs .nav-link {
    border: none;
    border-bottom: 3px solid transparent;
    color: var(--slate-500);
    font-weight: 600;
    font-size: 0.85rem;
    padding: 0.75rem 1.25rem;
    transition: all var(--duration-fast) var(--ease-out);
    border-radius: 0;
}

.nav-tabs .nav-link:hover {
    border-bottom-color: var(--slate-300);
    color: var(--slate-700);
}

.nav-tabs .nav-link.active {
    border-bottom-color: var(--primary-500);
    color: var(--primary-600);
    background: transparent;
}

/* Table styling */
.table {
    border-collapse: separate;
    border-spacing: 0;
}

.table thead th {
    background: var(--slate-50);
    border-bottom: 2px solid var(--slate-200);
    color: var(--slate-600);
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    padding: 0.75rem 1rem;
}

.table tbody td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--slate-100);
    vertical-align: middle;
    color: var(--slate-700);
    font-size: 0.85rem;
}

.table-striped tbody tr:nth-of-type(odd) {
    background: rgba(248, 250, 252, 0.5);
}

.table tbody tr:hover {
    background: rgba(238, 242, 255, 0.4);
}

/* Timeline (notifications) */
.inspinia-timeline .timeline-item {
    padding: 1rem 0;
    border-bottom: 1px solid var(--slate-100);
}

.inspinia-timeline .timeline-item:last-child {
    border-bottom: none;
}

/* FAQ / Accordion items */
.faq-item {
    padding: 1rem 0;
    border-bottom: 1px solid var(--slate-100);
}

.faq-answer {
    padding: 1rem 0;
    color: var(--slate-600);
    line-height: 1.7;
}

/* Tag items */
.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.tag-item {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    background: var(--slate-100);
    color: var(--slate-600);
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
}

/* Button sizes (backward compat) */
.btn-sm {
    padding: 0.35rem 0.85rem;
    font-size: 0.8rem;
    border-radius: var(--radius-md);
}

.btn-xs {
    padding: 0.25rem 0.5rem;
    font-size: 0.7rem;
    border-radius: var(--radius-sm);
}

.btn-white {
    background: #fff;
    border: 1px solid var(--slate-200);
    color: var(--slate-700);
}

.btn-white:hover {
    background: var(--slate-50);
    border-color: var(--slate-300);
}

/* DataTables overrides */
.dataTables_wrapper .dataTables_paginate .paginate_button.current {
    background: var(--gradient-primary) !important;
    border-color: var(--primary-500) !important;
    color: #fff !important;
    border-radius: var(--radius-md);
}


/* bg-primary for ibox-title */
.ibox-title.bg-primary,
.bg-primary {
    background: var(--gradient-primary) !important;
    color: #fff;
}

.bg-primary h5,
.ibox-title.bg-primary h5 {
    color: #fff;
}

.bg-success {
    background: var(--success-500) !important;
    color: #fff;
}

.bg-purple {
    background: #7e22ce !important;
    color: #fff;
}

/* Page heading / breadcrumb bar */
.page-heading {
    background: #fff;
    padding: 1rem 1.5rem;
    margin: -1.5rem -2rem 1.5rem;
    border-bottom: 1px solid var(--slate-100);
}

.page-heading h2 {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--slate-800);
    margin: 0 0 0.25rem;
}

.page-heading .breadcrumb {
    background: transparent;
    padding: 0;
    margin: 0;
    font-size: 0.8rem;
}

.page-heading .breadcrumb a {
    color: var(--primary-500);
}

.white-bg {
    background: #fff;
}

.border-bottom {
    border-bottom: 1px solid var(--slate-100) !important;
}

/* Horizontal line dashed */
.hr-line-dashed {
    border: 0;
    border-top: 1px dashed var(--slate-200);
    margin: 1.5rem 0;
}

/* Input group addon */
.input-group-addon {
    background: var(--slate-50);
    border: 1.5px solid var(--slate-200);
    border-right: none;
    padding: 0.5rem 0.75rem;
    color: var(--slate-500);
    border-radius: var(--radius-md) 0 0 var(--radius-md);
    display: flex;
    align-items: center;
}

.input-group-addon+.form-control {
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

/* Button width classes */
.btn-w-m {
    min-width: 120px;
}

/* Link button */
.btn-link {
    color: var(--primary-600);
    text-decoration: none;
    font-weight: 600;
}

.btn-link:hover {
    color: var(--primary-700);
    text-decoration: underline;
}

/* Spinner (INSPINIA loading) */
.sk-spinner-three-bounce .sk-bounce1,
.sk-spinner-three-bounce .sk-bounce2,
.sk-spinner-three-bounce .sk-bounce3 {
    width: 14px;
    height: 14px;
    background: var(--primary-400);
    border-radius: 50%;
    display: inline-block;
    animation: sk-bouncedelay 1.4s infinite ease-in-out both;
}

.sk-spinner-three-bounce .sk-bounce1 {
    animation-delay: -0.32s;
}

.sk-spinner-three-bounce .sk-bounce2 {
    animation-delay: -0.16s;
}

@keyframes sk-bouncedelay {

    0%,
    80%,
    100% {
        transform: scale(0);
    }

    40% {
        transform: scale(1);
    }
}

/* ---------- Toastr overrides ---------- */
.toast-success {
    background-color: var(--success-500) !important;
}

.toast-error {
    background-color: var(--danger-500) !important;
}

.toast-info {
    background-color: var(--primary-500) !important;
}

.toast-warning {
    background-color: var(--warning-500) !important;
}

/* ---------- OTP / Verification Styles ---------- */
.otp-input {
    letter-spacing: 0.5em;
    text-align: center;
    font-size: 1.5rem;
    font-weight: 700;
    font-family: var(--font-display);
}

/* ---------- Password Reset Page ---------- */
.reset-page-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.reset-card {
    background: #fff;
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--slate-100);
    max-width: 480px;
    width: 100%;
}

.reset-card h3 {
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--slate-900);
    margin-bottom: 0.5rem;
}

.reset-card p {
    color: var(--slate-500);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* ---------- Reveal Animations ---------- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s var(--ease-out);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ---------- Select2 custom overrides ---------- */
.select2-container .select2-selection--single {
    height: 42px !important;
    border: 1.5px solid var(--slate-200) !important;
    border-radius: var(--radius-md) !important;
    background: var(--slate-50) !important;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 42px !important;
    color: var(--slate-700) !important;
    padding-left: 1rem;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 42px !important;
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background-color: var(--primary-500) !important;
}

/* ---------- Scrollbar global ---------- */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--slate-50);
}

::-webkit-scrollbar-thumb {
    background: var(--slate-300);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--slate-400);
}

/* ==========================================================================
   AUTH MODALS — Split Panel Design (Login / Register)
   ========================================================================== */

/* Override modal for auth panels — no header, full bleed */
.modal.auth-modal .modal-content {
    border: none !important;
    border-radius: var(--radius-xl) !important;
    overflow: hidden;
    box-shadow: 0 30px 60px -10px rgba(0, 0, 0, 0.2), 0 18px 36px -18px rgba(0, 0, 0, 0.1) !important;
}

.modal.auth-modal .modal-header.portal-modal-header {
    display: none;
}

.modal.auth-modal .modal-body.portal-modal-body {
    padding: 0;
}

/* Split container */
.auth-split {
    display: flex;
    min-height: 520px;
}

/* Left branding panel */
.auth-brand-panel {
    width: 42%;
    background: var(--gradient-hero);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2.5rem;
}

.auth-brand-panel::before {
    content: '';
    position: absolute;
    inset: 0;
    background: none;
    pointer-events: none;
}

/* Floating shapes in the brand panel */
.auth-brand-shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.15;
    pointer-events: none;
}

.auth-brand-shape-1 {
    width: 180px;
    height: 180px;
    background: var(--primary-300);
    top: -40px;
    right: -40px;
    animation: orbFloat 10s ease-in-out infinite;
}

.auth-brand-shape-2 {
    width: 120px;
    height: 120px;
    background: var(--accent-400);
    bottom: -20px;
    left: -20px;
    animation: orbFloat 8s ease-in-out infinite reverse;
}

.auth-brand-shape-3 {
    width: 60px;
    height: 60px;
    background: #a78bfa;
    top: 45%;
    right: 15%;
    animation: orbFloat 6s ease-in-out infinite;
    animation-delay: -2s;
}

.auth-brand-content {
    position: relative;
    z-index: 2;
    color: #fff;
}

.auth-brand-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 2.5rem;
}

.auth-brand-logo img {
    width: 32px;
    height: 32px;
    border-radius: 8px;
}

.auth-brand-logo span {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 0.95rem;
    letter-spacing: -0.01em;
}

.auth-brand-content h2 {
    font-family: var(--font-display);
    font-size: 1.65rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
    margin-bottom: 0.75rem;
    letter-spacing: -0.02em;
}

.auth-brand-content p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

/* Feature bullets in brand panel */
.auth-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.auth-features li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0;
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.85rem;
    font-weight: 500;
}

.auth-features li .feat-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    color: var(--accent-400);
    flex-shrink: 0;
}

/* Right form panel */
.auth-form-panel {
    flex: 1;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: #fff;
    position: relative;
}

.auth-form-panel .auth-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 36px;
    height: 36px;
    border-radius: var(--radius-full);
    background: var(--slate-50);
    border: 1px solid var(--slate-200);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--slate-400);
    font-size: 1.2rem;
    cursor: pointer;
    transition: all var(--duration-fast) var(--ease-out);
    z-index: 5;
    line-height: 1;
    padding: 0;
}

.auth-form-panel .auth-close:hover {
    background: var(--danger-100);
    color: var(--danger-500);
    border-color: var(--danger-500);
}

.auth-form-header {
    margin-bottom: 1.75rem;
}

.auth-form-header h3 {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--slate-900);
    margin-bottom: 0.35rem;
    letter-spacing: -0.02em;
}

.auth-form-header p {
    color: var(--slate-500);
    font-size: 0.875rem;
    line-height: 1.5;
    margin: 0;
}

/* Auth form inputs with icons */
.auth-input-group {
    position: relative;
    margin-bottom: 1rem;
}

.auth-input-group label {
    font-weight: 600;
    color: var(--slate-600);
    font-size: 0.8rem;
    margin-bottom: 0.35rem;
    display: block;
}

.auth-input-group .input-wrap {
    position: relative;
}

.auth-input-group .input-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--slate-400);
    font-size: 0.9rem;
    pointer-events: none;
    transition: color var(--duration-fast) var(--ease-out);
}

.auth-input-group .form-control {
    border: 1.5px solid var(--slate-200);
    border-radius: var(--radius-md);
    padding: 0.75rem 1rem 0.75rem 2.75rem;
    font-size: 0.9rem;
    font-family: var(--font-primary);
    color: var(--slate-700);
    background: var(--slate-50);
    transition: all var(--duration-fast) var(--ease-out);
    height: auto;
    width: 100%;
}

.auth-input-group .form-control:focus {
    border-color: var(--primary-400);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary-500) 8%, transparent);
    background: #fff;
    outline: none;
}

.auth-input-group .form-control:focus+.input-icon,
.auth-input-group .form-control:focus~.input-icon {
    color: var(--primary-500);
}

.auth-input-group .form-control.no-icon {
    padding-left: 1rem;
}

.auth-input-group .form-control::placeholder {
    color: var(--slate-400);
}

/* Auth primary button */
.auth-btn-submit {
    width: 100%;
    padding: 0.85rem;
    background: var(--gradient-primary);
    color: #fff;
    border: none;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 0.95rem;
    font-family: var(--font-primary);
    transition: all var(--duration-normal) var(--ease-out);
    cursor: pointer;
    box-shadow: 0 4px 14px color-mix(in srgb, var(--primary-500) 30%, transparent);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
    position: relative;
    overflow: hidden;
}

.auth-btn-submit::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), transparent);
    opacity: 0;
    transition: opacity var(--duration-fast) var(--ease-out);
}

.auth-btn-submit:hover {
    box-shadow: 0 6px 20px color-mix(in srgb, var(--primary-500) 45%, transparent);
    transform: translateY(-2px);
}

.auth-btn-submit:hover::after {
    opacity: 1;
}

.auth-btn-submit:active {
    transform: translateY(0);
}

/* Auth secondary/outline button */
.auth-btn-outline {
    width: 100%;
    padding: 0.75rem;
    background: #fff;
    color: var(--slate-700);
    border: 1.5px solid var(--slate-200);
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.875rem;
    font-family: var(--font-primary);
    transition: all var(--duration-fast) var(--ease-out);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.auth-btn-outline:hover {
    background: var(--primary-50);
    border-color: var(--primary-300);
    color: var(--primary-600);
    transform: translateY(-1px);
}

/* Google sign-in button */
.auth-btn-google {
    width: 100%;
    padding: 0.75rem;
    background: #fff;
    color: #3c4043;
    border: 1.5px solid #dadce0;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.875rem;
    font-family: var(--font-primary);
    transition: all var(--duration-fast) var(--ease-out);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    text-decoration: none;
}

.auth-btn-google:hover {
    background: #f8f9fa;
    border-color: #4285f4;
    box-shadow: 0 1px 3px rgba(66, 133, 244, .18);
    transform: translateY(-1px);
    color: #3c4043;
    text-decoration: none;
}

/* Divider */
.auth-divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1.25rem 0;
    color: var(--slate-400);
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--slate-200);
}

/* Footer links */
.auth-footer {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--slate-100);
}

.auth-footer p {
    color: var(--slate-500);
    font-size: 0.85rem;
    margin: 0 0 0.5rem;
}

.auth-footer .auth-link {
    color: var(--primary-600);
    font-weight: 700;
    cursor: pointer;
    transition: color var(--duration-fast) var(--ease-out);
    text-decoration: none;
}

.auth-footer .auth-link:hover {
    color: var(--primary-700);
    text-decoration: underline;
}

/* Step indicators for registration */
.auth-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.auth-step-dot {
    width: 10px;
    height: 10px;
    border-radius: var(--radius-full);
    background: var(--slate-200);
    transition: all var(--duration-normal) var(--ease-out);
}

.auth-step-dot.active {
    width: 32px;
    background: var(--gradient-primary);
}

.auth-step-dot.completed {
    background: var(--primary-400);
}

/* Checkbox custom */
.auth-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--slate-600);
    cursor: pointer;
    line-height: 1.4;
}

.auth-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary-600);
    cursor: pointer;
    flex-shrink: 0;
    margin-top: 1px;
}

/* Radio custom */
.auth-radio {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--slate-600);
    cursor: pointer;
    padding: 0.6rem 1rem;
    background: var(--slate-50);
    border: 1.5px solid var(--slate-200);
    border-radius: var(--radius-md);
    transition: all var(--duration-fast) var(--ease-out);
}

.auth-radio:has(input:checked) {
    background: var(--primary-50);
    border-color: var(--primary-300);
    color: var(--primary-600);
}

.auth-radio input[type="radio"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary-600);
    cursor: pointer;
    flex-shrink: 0;
}

/* Animated spinner override */
.auth-spinner {
    display: none;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: authSpin 0.6s linear infinite;
}

@keyframes authSpin {
    to {
        transform: rotate(360deg);
    }
}

/* Responsive: stack on mobile */
@media (max-width: 768px) {
    .auth-split {
        flex-direction: column;
        min-height: auto;
    }

    .auth-brand-panel {
        width: 100%;
        padding: 2rem;
        min-height: auto;
    }

    .auth-brand-content h2 {
        font-size: 1.25rem;
    }

    .auth-features {
        display: none;
    }

    .auth-form-panel {
        padding: 2rem;
    }
}

/* ── Portal Toggle Switch ── */
.portal-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    cursor: pointer;
    user-select: none;
    margin: 0;
    padding: 0.5rem 0;
}

.portal-toggle input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

.portal-toggle-track {
    position: relative;
    width: 42px;
    height: 24px;
    background: #cbd5e1;
    border-radius: 999px;
    flex-shrink: 0;
    transition: background 0.22s ease, box-shadow 0.22s ease;
}

.portal-toggle input:checked~.portal-toggle-track {
    background: var(--primary-500);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary-500) 15%, transparent);
}

.portal-toggle-thumb {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 18px;
    height: 18px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.18);
    transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.portal-toggle input:checked~.portal-toggle-track .portal-toggle-thumb {
    transform: translateX(18px);
}

.portal-toggle-label {
    font-size: 0.85rem;
    font-weight: 500;
    color: #334155;
    line-height: 1.4;
}

.portal-toggle:hover .portal-toggle-track {
    box-shadow: 0 0 0 3px rgba(100, 116, 139, 0.12);
}

.portal-toggle input:checked:focus~.portal-toggle-track,
.portal-toggle input:focus~.portal-toggle-track {
    outline: 2px solid var(--primary-500);
    outline-offset: 2px;
}

/* ==========================================================================
   CANDIDATE DECLARATION v2 — Premium Redesign
   ========================================================================== */

/* ── Hero Banner ── */
/* ==========================================================================
   APPLICATION VIEW HEADER
   ========================================================================== */

.appview-header {
    background: #fff;
    border-radius: 14px;
    border: 1px solid #e2e8f0;
    overflow: hidden;
    position: relative;
}

.appview-header-bg {
    height: 4px;
    background: linear-gradient(90deg, var(--primary-500), var(--primary-700), var(--accent-500));
}

.appview-header-inner {
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.appview-profile-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    min-width: 0;
    flex: 1;
}

.appview-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 2px solid #e2e8f0;
    object-fit: cover;
    flex-shrink: 0;
}

.appview-avatar-placeholder {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 2px solid #e2e8f0;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #94a3b8;
}

.appview-profile-info {
    min-width: 0;
}

.appview-profile-name {
    font-size: 1.05rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 .25rem;
    line-height: 1.25;
}

.appview-profile-meta {
    display: flex;
    align-items: center;
    gap: .75rem;
    flex-wrap: wrap;
}

.appview-meta-item {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    font-size: .72rem;
    color: #64748b;
    font-weight: 500;
}

.appview-meta-item svg {
    color: #94a3b8;
    flex-shrink: 0;
}

.appview-app-info {
    text-align: right;
    flex-shrink: 0;
}

.appview-designation {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    font-size: .85rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: .4rem;
}

.appview-designation svg {
    color: var(--primary-500);
}

.appview-chips {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: .4rem;
    flex-wrap: wrap;
}

.appview-chip {
    display: inline-flex;
    align-items: center;
    gap: .25rem;
    padding: .2rem .55rem;
    border-radius: 999px;
    font-size: .62rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .03em;
    background: #f1f5f9;
    color: #64748b;
    border: 1px solid #e2e8f0;
}

.appview-chip-success {
    background: #f0fdf4;
    color: #059669;
    border-color: #bbf7d0;
}

@media (max-width: 768px) {
    .appview-header-inner {
        flex-direction: column;
        align-items: flex-start;
    }
    .appview-app-info {
        text-align: left;
    }
    .appview-chips {
        justify-content: flex-start;
    }
}

.decl-hero {
    background: var(--primary-700);
    border-radius: 18px;
    padding: 2rem 2rem 2.5rem;
    margin-bottom: -1.5rem;
    position: relative;
    overflow: hidden;
}

.decl-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: transparent;
    pointer-events: none;
}

.decl-hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(55px);
    opacity: .28;
    pointer-events: none;
}

.decl-hero-orb-1 {
    width: 260px;
    height: 260px;
    background: var(--primary-500);
    top: -80px;
    right: -60px;
}

.decl-hero-orb-2 {
    width: 180px;
    height: 180px;
    background: #14b8a6;
    bottom: -60px;
    left: 10%;
}

.decl-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .35rem 1rem;
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 999px;
    color: rgba(255, 255, 255, .85);
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
    margin-bottom: 1rem;
    backdrop-filter: blur(8px);
}

.decl-hero-badge svg {
    color: #6ee7b7;
}

.decl-hero-title {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 800;
    color: #fff !important;
    margin: 0 0 .35rem;
    letter-spacing: -.02em;
    position: relative;
}

.decl-hero-sub {
    font-size: .8rem;
    color: rgba(255, 255, 255, .6);
    margin: 0;
    max-width: 480px;
    line-height: 1.5;
    position: relative;
}

.decl-hero-meta {
    display: flex;
    align-items: center;
    gap: .75rem;
    margin-top: 1rem;
    flex-wrap: wrap;
    position: relative;
}

.decl-hero-chip {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .45rem 1rem;
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 999px;
    color: #fff;
    font-size: .78rem;
    font-weight: 600;
    backdrop-filter: blur(6px);
}

.decl-hero-chip svg {
    opacity: .7;
}

/* ── V2 Stepper (pill-style) ── */

/* Hero Inner Layout */
.decl-hero-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    position: relative;
}

.decl-hero-left {
    flex: 1;
    min-width: 0;
}

.decl-hero-profile {
    text-align: center;
    flex-shrink: 0;
    position: relative;
}

.decl-hero-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, .4);
    box-shadow: 0 4px 16px rgba(0, 0, 0, .2);
    object-fit: cover;
    margin-bottom: .6rem;
}

.decl-hero-avatar-placeholder {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, .25);
    background: rgba(255, 255, 255, .1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto .6rem;
    color: rgba(255, 255, 255, .6);
}

.decl-hero-profile-name {
    font-size: 1rem;
    font-weight: 700;
    color: #fff !important;
    margin: 0 0 .15rem;
}

.decl-hero-profile-id {
    font-size: .75rem;
    color: rgba(255, 255, 255, .65);
    margin-bottom: .4rem;
}

.decl-hero-profile-pos {
    display: inline-block;
    font-size: .65rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 999px;
    padding: .2rem .65rem;
    color: rgba(255, 255, 255, .85);
}

@media (max-width: 576px) {
    .decl-hero-inner {
        flex-direction: column;
        text-align: center;
    }

    .decl-hero-left {
        order: 2;
    }

    .decl-hero-profile {
        order: 1;
    }

    .decl-hero-meta {
        justify-content: center;
    }
}

.decl-stepper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .05);
    padding: 1.1rem 2rem;
    margin-bottom: 1.75rem;
    overflow-x: auto;
}

.decl-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    position: relative;
    z-index: 1;
    min-width: 80px;
}

.decl-step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 20px;
    left: calc(50% + 22px);
    width: calc(100% - 44px);
    height: 2px;
    background: #e2e8f0;
}

.decl-step.s-done:not(:last-child)::after {
    background: var(--primary-500);
}

.decl-step-dot {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid #e2e8f0;
    background: #f8fafc;
    color: #94a3b8;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
    transition: all .25s;
    margin-bottom: .45rem;
}

.decl-step.s-done .decl-step-dot {
    background: #d1fae5;
    border-color: var(--primary-500);
    color: #059669;
}

.decl-step.s-active .decl-step-dot {
    background: var(--primary-500);
    border-color: var(--primary-500);
    color: #fff;
    box-shadow: 0 4px 14px color-mix(in srgb, var(--primary-500) 40%, transparent);
}

.decl-step-lbl {
    font-size: .7rem;
    font-weight: 500;
    color: #94a3b8;
    white-space: nowrap;
}

.decl-step.s-done .decl-step-lbl {
    color: #059669;
    font-weight: 600;
}

.decl-step.s-active .decl-step-lbl {
    color: var(--primary-500);
    font-weight: 700;
}

/* ── Main Layout ── */
.decl-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 1.5rem;
    align-items: start;
}

@media (max-width: 991px) {
    .decl-layout {
        grid-template-columns: 1fr;
    }
}

/* ── Section Cards ── */
.decl-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .04);
    overflow: hidden;
    margin-bottom: 1rem;
    transition: box-shadow .2s;
}

.decl-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, .06);
}

.decl-card-header {
    display: flex;
    align-items: center;
    gap: .7rem;
    padding: .85rem 1.25rem;
    border-bottom: 1px solid #f1f5f9;
    background: #fafbfd;
}

.decl-card-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.decl-card-icon svg {
    width: 16px;
    height: 16px;
}

.decl-card-title {
    font-size: .88rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
    flex: 1;
}

.decl-card-count {
    font-size: .65rem;
    font-weight: 700;
    padding: .15rem .5rem;
    border-radius: 999px;
    background: #e6f7f3;
    color: var(--primary-500);
}

.decl-card-body {
    padding: 1rem 1.25rem;
}

/* ── Info Grid ── */
.decl-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 2rem;
}

@media (max-width: 576px) {
    .decl-info-grid {
        grid-template-columns: 1fr;
    }
}

.decl-info-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: .55rem 0;
    border-bottom: 1px solid #f1f5f9;
    gap: .75rem;
}

.decl-info-row:last-child {
    border-bottom: none;
}

.decl-info-label {
    font-size: .78rem;
    font-weight: 500;
    color: #64748b;
    white-space: nowrap;
    flex-shrink: 0;
}

.decl-info-value {
    font-size: .84rem;
    font-weight: 600;
    color: #1e293b;
    text-align: right;
}

/* ── Timeline Record Item ── */
.decl-timeline {
    display: flex;
    flex-direction: column;
    gap: .5rem;
}

.decl-timeline-item {
    display: flex;
    gap: .75rem;
    align-items: center;
    padding: .6rem .85rem;
    background: #f8fafc;
    border: 1px solid #f1f5f9;
    border-radius: 10px;
    transition: all .15s;
}

.decl-timeline-item:hover {
    background: #f0fdf9;
    border-color: #d1fae5;
}

.decl-timeline-dot {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #e6f7f3;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--primary-500);
}

.decl-timeline-dot svg {
    width: 13px;
    height: 13px;
}

.decl-timeline-main {
    flex: 1;
    min-width: 0;
}

.decl-timeline-title {
    font-size: .82rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: .1rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.decl-timeline-sub {
    font-size: .75rem;
    color: #64748b;
}

.decl-timeline-badge {
    font-size: .65rem;
    font-weight: 700;
    padding: .18rem .5rem;
    border-radius: 6px;
    white-space: nowrap;
    align-self: center;
    flex-shrink: 0;
}

.decl-timeline-date {
    font-size: .72rem;
    color: #94a3b8;
    white-space: nowrap;
    align-self: center;
    flex-shrink: 0;
}

/* ── Question Item ── */
.decl-question {
    padding: 1rem;
    background: #f8fafc;
    border: 1px solid #f1f5f9;
    border-radius: 10px;
    margin-bottom: .75rem;
}

.decl-question:last-child {
    margin-bottom: 0;
}

.decl-question-label {
    font-size: .83rem;
    font-weight: 600;
    color: #334155;
    margin-bottom: .65rem;
}

/* ── Sidebar Profile Card ── */
.decl-profile-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .05);
    position: sticky;
    top: 80px;
}

.decl-profile-header {
    background: var(--primary-700);
    padding: 1.75rem 1.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.decl-profile-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: transparent;
    pointer-events: none;
}

.decl-profile-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, .5);
    box-shadow: 0 4px 16px rgba(0, 0, 0, .2);
    object-fit: cover;
    margin-bottom: .85rem;
    position: relative;
}

.decl-profile-avatar-placeholder {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, .35);
    background: rgba(255, 255, 255, .15);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto .85rem;
    color: rgba(255, 255, 255, .7);
}

.decl-profile-name {
    font-size: 1rem;
    font-weight: 800;
    color: #fff !important;
    margin: 0 0 .2rem;
}

.decl-profile-id {
    font-size: .75rem;
    color: rgba(255, 255, 255, .75);
    margin-bottom: .5rem;
}

.decl-profile-pos {
    display: inline-block;
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
    background: rgba(255, 255, 255, .15);
    border: 1px solid rgba(255, 255, 255, .25);
    border-radius: 999px;
    padding: .2rem .7rem;
    color: rgba(255, 255, 255, .9);
}

/* ── Checklist ── */
.decl-checklist {
    padding: 1.25rem 1.5rem;
}

.decl-checklist-title {
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: #334155;
    margin-bottom: 1rem;
}

.decl-check-item {
    display: flex;
    align-items: flex-start;
    gap: .7rem;
    padding: .55rem 0;
    border-bottom: 1px solid #f8fafc;
}

.decl-check-item:last-child {
    border-bottom: none;
}

.decl-check-icon {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 1px;
}

.decl-check-icon.ok {
    background: #d1fae5;
    color: #059669;
}

.decl-check-icon.no {
    background: #fee2e2;
    color: #dc2626;
}

.decl-check-name {
    font-size: .8rem;
    font-weight: 600;
    color: #334155;
    margin-bottom: .12rem;
}

.decl-check-tag {
    font-size: .63rem;
    font-weight: 700;
    padding: .1rem .4rem;
    border-radius: 4px;
}

.decl-check-warn {
    font-size: .7rem;
    color: #dc2626;
    margin-top: .15rem;
}

/* ── Agreement Banner ── */
.decl-agreement {
    background: #fffbeb;
    border: 1.5px solid #fde68a;
    border-radius: 14px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.decl-agreement-icon {
    width: 40px;
    height: 40px;
    background: #fef3c7;
    border: 1.5px solid #fde68a;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #d97706;
}

.decl-agreement-text {
    font-size: .845rem;
    color: #78350f;
    line-height: 1.65;
    flex: 1;
}

/* ── Submit Button Row ── */
.decl-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    justify-content: space-between;
    flex-wrap: wrap;
}

.btn-decl-prev {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .75rem 1.6rem;
    background: #fff;
    color: #475569;
    border: 1.5px solid #e2e8f0;
    border-radius: 999px;
    font-size: .875rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all .2s;
}

.btn-decl-prev:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    color: #334155;
    text-decoration: none;
}

.btn-decl-submit {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    padding: .85rem 2.25rem;
    background: var(--primary-500);
    color: #fff;
    border: none;
    border-radius: 999px;
    font-size: .9rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 16px color-mix(in srgb, var(--primary-500) 40%, transparent);
    transition: all .2s;
}

.btn-decl-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px color-mix(in srgb, var(--primary-500) 50%, transparent);
}

.btn-decl-submit:active {
    transform: translateY(0);
}

/* ── Empty State ── */
.decl-empty {
    text-align: center;
    padding: 1.5rem 1rem;
    color: #94a3b8;
    font-size: .8rem;
}

/* Fade-in animation for sections */
@keyframes declFadeUp {
    from {
        opacity: 0;
        transform: translateY(16px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.decl-card {
    animation: declFadeUp .35s var(--ease-out) both;
}

.decl-card:nth-child(1) {
    animation-delay: .05s;
}

.decl-card:nth-child(2) {
    animation-delay: .1s;
}

.decl-card:nth-child(3) {
    animation-delay: .15s;
}

.decl-card:nth-child(4) {
    animation-delay: .2s;
}

.decl-card:nth-child(5) {
    animation-delay: .25s;
}

/* ── Responsive: Tablet (≤991px) ── */
@media (max-width: 991px) {
    .decl-hero {
        padding: 1.5rem 1.5rem 2rem;
        border-radius: 14px;
    }

    .decl-hero-title {
        font-size: 1.4rem;
    }

    .decl-profile-card {
        position: static;
    }


    /* Hero Inner Layout */
    .decl-hero-inner {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 2rem;
        position: relative;
    }

    .decl-hero-left {
        flex: 1;
        min-width: 0;
    }

    .decl-hero-profile {
        text-align: center;
        flex-shrink: 0;
        position: relative;
    }

    .decl-hero-avatar {
        width: 80px;
        height: 80px;
        border-radius: 50%;
        border: 3px solid rgba(255, 255, 255, .4);
        box-shadow: 0 4px 16px rgba(0, 0, 0, .2);
        object-fit: cover;
        margin-bottom: .6rem;
    }

    .decl-hero-avatar-placeholder {
        width: 80px;
        height: 80px;
        border-radius: 50%;
        border: 3px solid rgba(255, 255, 255, .25);
        background: rgba(255, 255, 255, .1);
        display: flex;
        align-items: center;
        justify-content: center;
        margin: 0 auto .6rem;
        color: rgba(255, 255, 255, .6);
    }

    .decl-hero-profile-name {
        font-size: 1rem;
        font-weight: 700;
        color: #fff !important;
        margin: 0 0 .15rem;
    }

    .decl-hero-profile-id {
        font-size: .75rem;
        color: rgba(255, 255, 255, .65);
        margin-bottom: .4rem;
    }

    .decl-hero-profile-pos {
        display: inline-block;
        font-size: .65rem;
        font-weight: 700;
        letter-spacing: .04em;
        text-transform: uppercase;
        background: rgba(255, 255, 255, .12);
        border: 1px solid rgba(255, 255, 255, .2);
        border-radius: 999px;
        padding: .2rem .65rem;
        color: rgba(255, 255, 255, .85);
    }

    @media (max-width: 576px) {
        .decl-hero-inner {
            flex-direction: column;
            text-align: center;
        }

        .decl-hero-left {
            order: 2;
        }

        .decl-hero-profile {
            order: 1;
        }

        .decl-hero-meta {
            justify-content: center;
        }
    }

    .decl-stepper {
        padding: .85rem 1rem;
    }

    .decl-step-dot {
        width: 34px;
        height: 34px;
    }

    .decl-actions {
        flex-direction: column;
        gap: .75rem;
    }

    .btn-decl-prev,
    .btn-decl-submit {
        width: 100%;
        justify-content: center;
    }
}

/* ── Responsive: Phone (≤576px) ── */
@media (max-width: 576px) {
    .decl-hero {
        padding: 1.25rem 1rem 1.75rem;
        border-radius: 12px;
        margin-bottom: -1rem;
    }

    .decl-hero-title {
        font-size: 1.2rem;
    }

    .decl-hero-sub {
        font-size: .75rem;
    }

    .decl-hero-badge {
        font-size: .65rem;
        padding: .25rem .7rem;
    }

    .decl-hero-meta {
        gap: .5rem;
    }

    .decl-hero-chip {
        font-size: .7rem;
        padding: .35rem .7rem;
    }

    .decl-hero-orb-1,
    .decl-hero-orb-2 {
        display: none;
    }

    .decl-layout {
        margin-top: 1.5rem !important;
        gap: 1rem;
    }


    /* Hero Inner Layout */
    .decl-hero-inner {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 2rem;
        position: relative;
    }

    .decl-hero-left {
        flex: 1;
        min-width: 0;
    }

    .decl-hero-profile {
        text-align: center;
        flex-shrink: 0;
        position: relative;
    }

    .decl-hero-avatar {
        width: 80px;
        height: 80px;
        border-radius: 50%;
        border: 3px solid rgba(255, 255, 255, .4);
        box-shadow: 0 4px 16px rgba(0, 0, 0, .2);
        object-fit: cover;
        margin-bottom: .6rem;
    }

    .decl-hero-avatar-placeholder {
        width: 80px;
        height: 80px;
        border-radius: 50%;
        border: 3px solid rgba(255, 255, 255, .25);
        background: rgba(255, 255, 255, .1);
        display: flex;
        align-items: center;
        justify-content: center;
        margin: 0 auto .6rem;
        color: rgba(255, 255, 255, .6);
    }

    .decl-hero-profile-name {
        font-size: 1rem;
        font-weight: 700;
        color: #fff !important;
        margin: 0 0 .15rem;
    }

    .decl-hero-profile-id {
        font-size: .75rem;
        color: rgba(255, 255, 255, .65);
        margin-bottom: .4rem;
    }

    .decl-hero-profile-pos {
        display: inline-block;
        font-size: .65rem;
        font-weight: 700;
        letter-spacing: .04em;
        text-transform: uppercase;
        background: rgba(255, 255, 255, .12);
        border: 1px solid rgba(255, 255, 255, .2);
        border-radius: 999px;
        padding: .2rem .65rem;
        color: rgba(255, 255, 255, .85);
    }

    @media (max-width: 576px) {
        .decl-hero-inner {
            flex-direction: column;
            text-align: center;
        }

        .decl-hero-left {
            order: 2;
        }

        .decl-hero-profile {
            order: 1;
        }

        .decl-hero-meta {
            justify-content: center;
        }
    }

    .decl-stepper {
        padding: .7rem .5rem;
        border-radius: 10px;
        gap: 0;
    }

    .decl-step-dot {
        width: 28px;
        height: 28px;
    }

    .decl-step-dot svg {
        width: 12px;
        height: 12px;
    }

    .decl-step-lbl {
        font-size: .6rem;
    }

    .decl-step:not(:last-child)::after {
        top: 14px;
        left: calc(50% + 16px);
        width: calc(100% - 32px);
    }

    .decl-card {
        border-radius: 10px;
        margin-bottom: .75rem;
    }

    .decl-card-header {
        padding: .7rem 1rem;
        gap: .5rem;
    }

    .decl-card-icon {
        width: 28px;
        height: 28px;
        border-radius: 6px;
    }

    .decl-card-title {
        font-size: .82rem;
    }

    .decl-card-body {
        padding: .85rem 1rem;
    }

    .decl-info-row {
        flex-direction: column;
        align-items: flex-start;
        gap: .15rem;
        padding: .4rem 0;
    }

    .decl-info-label {
        font-size: .7rem;
    }

    .decl-info-value {
        text-align: left;
        font-size: .8rem;
    }

    .decl-timeline-item {
        flex-wrap: wrap;
        padding: .5rem .7rem;
    }

    .decl-timeline-dot {
        width: 24px;
        height: 24px;
    }

    .decl-timeline-title {
        font-size: .78rem;
        white-space: normal;
    }

    .decl-timeline-date {
        font-size: .65rem;
        width: 100%;
        margin-top: .25rem;
        padding-left: 2.2rem;
    }

    .decl-timeline-badge {
        font-size: .6rem;
    }

    .decl-profile-card {
        border-radius: 14px;
    }

    .decl-profile-header {
        padding: 1.25rem 1rem;
    }

    .decl-profile-avatar,
    .decl-profile-avatar-placeholder {
        width: 64px;
        height: 64px;
    }

    .decl-profile-name {
        font-size: .9rem;
    }

    .decl-checklist {
        padding: 1rem;
    }

    .decl-check-item {
        gap: .5rem;
    }

    .decl-check-icon {
        width: 22px;
        height: 22px;
    }

    .decl-check-name {
        font-size: .75rem;
    }

    .decl-agreement {
        padding: 1rem;
        border-radius: 10px;
        gap: .75rem;
    }

    .decl-agreement-icon {
        width: 32px;
        height: 32px;
    }

    .decl-agreement-text {
        font-size: .78rem;
    }

    .btn-decl-prev {
        padding: .6rem 1.2rem;
        font-size: .8rem;
    }

    .btn-decl-submit {
        padding: .7rem 1.5rem;
        font-size: .82rem;
    }
}

/* ==========================================================================
   JOB OPENINGS PAGE
   ========================================================================== */

.openings-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.openings-page-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 .2rem;
    letter-spacing: -.02em;
}

.openings-page-sub {
    font-size: .84rem;
    color: #64748b;
    margin: 0;
}

.openings-header-right {
    display: flex;
    align-items: center;
    gap: .75rem;
    flex-wrap: wrap;
}

.openings-search-box {
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: .5rem .85rem;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    min-width: 220px;
    color: #94a3b8;
    transition: border-color .2s;
}

.openings-search-box:focus-within {
    border-color: var(--primary-500);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary-500) 8%, transparent);
}

.openings-search-input {
    border: none;
    outline: none;
    background: transparent;
    font-size: .82rem;
    color: #0f172a;
    width: 100%;
}

.openings-search-input::placeholder {
    color: #94a3b8;
}

.openings-filter-select {
    padding: .5rem .85rem;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: .82rem;
    color: #0f172a;
    cursor: pointer;
    min-width: 140px;
    transition: border-color .2s;
}

.openings-filter-select:focus {
    border-color: var(--primary-500);
    outline: none;
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary-500) 8%, transparent);
}

/* Table */
.openings-table-wrap {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
}

.openings-table {
    width: 100%;
    border-collapse: collapse;
}

.openings-table thead th {
    font-size: .72rem;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: .04em;
    padding: .75rem 1rem;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    text-align: left;
    white-space: nowrap;
}

.openings-table tbody tr {
    transition: background .15s;
}

.openings-table tbody tr:hover {
    background: #f8fdfb;
}

.openings-table tbody td {
    padding: .85rem 1rem;
    font-size: .84rem;
    color: #0f172a;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: middle;
}

.openings-table tbody tr:last-child td {
    border-bottom: none;
}

.openings-pos-name {
    font-weight: 600;
    color: #0f172a;
    margin-bottom: .1rem;
}

.openings-pos-class {
    font-size: .75rem;
    color: #94a3b8;
}

.openings-cell-muted {
    color: #64748b;
    font-size: .8rem;
}

.openings-cell-center {
    text-align: center;
}

.openings-cell-action {
    text-align: right;
    white-space: nowrap;
}

/* Badges */
.opening-badge {
    display: inline-flex;
    align-items: center;
    gap: .25rem;
    font-size: .65rem;
    font-weight: 700;
    padding: .2rem .5rem;
    border-radius: 5px;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: .02em;
}

.opening-badge-type {
    background: #f0f4ff;
    color: #4f46e5;
}

.opening-badge-applied {
    background: #d1fae5;
    color: #059669;
}

.opening-badge-urgent {
    background: #fef2f2;
    color: #dc2626;
}

/* Apply Button */
.opening-apply-btn {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .4rem .9rem;
    background: var(--primary-500);
    color: #fff;
    border: none;
    border-radius: 7px;
    font-size: .75rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all .15s;
}

.opening-apply-btn:hover {
    background: #159a7f;
    color: #fff;
    text-decoration: none;
    box-shadow: 0 2px 8px color-mix(in srgb, var(--primary-500) 30%, transparent);
}

/* Empty */
.openings-empty {
    text-align: center;
    padding: 3rem 1rem;
    color: #94a3b8;
}

.openings-empty h3 {
    font-size: .95rem;
    font-weight: 700;
    color: #64748b;
    margin: .85rem 0 .25rem;
}

.openings-empty p {
    font-size: .82rem;
    color: #94a3b8;
    margin: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .openings-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .openings-header-right {
        width: 100%;
    }

    .openings-search-box {
        flex: 1;
        min-width: 0;
    }

    .openings-filter-select {
        min-width: 0;
    }

    .openings-table-wrap {
        overflow-x: auto;
    }

    .openings-table {
        min-width: 700px;
    }
}


/* ==========================================================================
   FLOATING CHAT WIDGET
   ========================================================================== */

/* FAB Button */
.chat-fab {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--primary-500);
    color: #fff;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 16px color-mix(in srgb, var(--primary-500) 35%, transparent);
    z-index: 1050;
    transition: transform .2s, box-shadow .2s;
}

.chat-fab:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 24px color-mix(in srgb, var(--primary-500) 45%, transparent);
}

.chat-fab-active {
    background: #64748b;
    box-shadow: 0 4px 12px rgba(100, 116, 139, .3);
}

.chat-fab-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    background: #ef4444;
    color: #fff;
    font-size: .55rem;
    font-weight: 800;
    min-width: 18px;
    height: 18px;
    line-height: 18px;
    text-align: center;
    border-radius: 999px;
    padding: 0 4px;
    box-shadow: 0 1px 4px rgba(239, 68, 68, .4);
    animation: chatBadgePulse 2s ease-in-out infinite;
}

@keyframes chatBadgePulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.15);
    }
}

/* Chat Window */
.chat-widget {
    position: fixed;
    bottom: 86px;
    right: 24px;
    width: 370px;
    max-height: 520px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 12px 48px rgba(0, 0, 0, .15), 0 2px 8px rgba(0, 0, 0, .08);
    z-index: 1049;
    flex-direction: column;
    overflow: hidden;
    animation: chatSlideUp .25s ease-out;
}

@keyframes chatSlideUp {
    from {
        opacity: 0;
        transform: translateY(16px) scale(.96);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.chat-widget-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: .75rem 1rem;
    background: var(--primary-600);
    color: #fff;
    flex-shrink: 0;
}

.chat-widget-title {
    display: flex;
    align-items: center;
    gap: .45rem;
    font-size: .85rem;
    font-weight: 700;
    letter-spacing: .01em;
}

.chat-widget-close {
    background: rgba(255, 255, 255, .2);
    border: none;
    color: #fff;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background .15s;
}

.chat-widget-close:hover {
    background: rgba(255, 255, 255, .35);
}

/* Feed */
.chat-widget-feed {
    flex: 1;
    overflow-y: auto;
    padding: .85rem 1rem;
    display: flex;
    flex-direction: column;
    gap: .55rem;
    min-height: 200px;
    max-height: 340px;
    background: #f8fafc;
}

.msg-loading,
.msg-empty {
    text-align: center;
    padding: 2rem 1rem;
    color: #94a3b8;
    font-size: .8rem;
}

.msg-empty p {
    margin: .5rem 0 0;
}

/* Bubbles */
.msg-bubble {
    max-width: 80%;
    padding: .5rem .75rem;
    border-radius: 14px;
    position: relative;
}

.msg-bubble-client {
    align-self: flex-start;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-bottom-left-radius: 4px;
}

.msg-bubble-self {
    align-self: flex-end;
    background: linear-gradient(135deg, #d1fae5, #bbf7d0);
    border-bottom-right-radius: 4px;
}

.msg-bubble-sender {
    font-size: .6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    margin-bottom: .15rem;
}

.msg-bubble-client .msg-bubble-sender {
    color: #64748b;
}

.msg-bubble-self .msg-bubble-sender {
    color: #059669;
}

.msg-bubble-text {
    font-size: .8rem;
    color: #0f172a;
    line-height: 1.45;
    white-space: pre-wrap;
    word-break: break-word;
}

.msg-bubble-file {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    font-size: .72rem;
    font-weight: 600;
    color: #2563eb;
    margin-top: .25rem;
    text-decoration: none;
}

.msg-bubble-file:hover {
    text-decoration: underline;
    color: #1d4ed8;
}

.msg-bubble-time {
    font-size: .55rem;
    color: #94a3b8;
    margin-top: .2rem;
    text-align: right;
}

/* Compose */
.chat-widget-compose {
    border-top: 1px solid #e2e8f0;
    padding: .6rem .85rem;
    background: #fff;
    flex-shrink: 0;
}

.msg-compose-row {
    display: flex;
    gap: .4rem;
    align-items: flex-end;
}

.msg-input {
    flex: 1;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: .45rem .65rem;
    font-size: .8rem;
    color: #0f172a;
    resize: none;
    outline: none;
    transition: border-color .2s;
    font-family: inherit;
    line-height: 1.4;
    max-height: 80px;
}

.msg-input:focus {
    border-color: var(--primary-500);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary-500) 8%, transparent);
}

.msg-input::placeholder {
    color: #94a3b8;
}

.msg-send-btn {
    background: var(--primary-500);
    color: #fff;
    border: none;
    border-radius: 10px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background .15s;
    flex-shrink: 0;
}

.msg-send-btn:hover {
    background: #159a7f;
}

.msg-send-btn:disabled {
    opacity: .5;
    cursor: not-allowed;
}

.msg-file-row {
    display: flex;
    align-items: center;
    gap: .4rem;
    margin-top: .3rem;
}

.msg-file-label {
    display: inline-flex;
    align-items: center;
    gap: .2rem;
    font-size: .68rem;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    padding: .15rem .4rem;
    border-radius: 5px;
    transition: background .15s;
}

.msg-file-label:hover {
    background: #f1f5f9;
    color: #0f172a;
}

.msg-file-name {
    font-size: .68rem;
    color: #059669;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 160px;
}

/* Mobile */
@media (max-width: 576px) {
    .chat-widget {
        right: 8px;
        left: 8px;
        bottom: 78px;
        width: auto;
        max-height: 70vh;
    }

    .chat-fab {
        bottom: 16px;
        right: 16px;
    }

    .msg-bubble {
        max-width: 88%;
    }

    .chat-widget-feed {
        max-height: 50vh;
    }
}