:root {
    --bs-primary: #0e7490;
    --bs-primary-rgb: 14, 116, 144;
}

html {
  font-size: 14px;
}

body {
    font-family: 'Inter', sans-serif;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1 0 auto;
}

/* Hero Section Wrapper (fixed overlay + sliding images) */
.hero-section-wrapper {
    position: relative;
    min-height: 75vh;
    overflow: hidden;
}

.hero-section-wrapper .hero-carousel,
.hero-section-wrapper .hero-carousel .carousel-item {
    min-height: 75vh;
    background-size: cover;
    background-position: center;
}

.hero-overlay-fixed {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(14, 116, 144, 0.35) 0%, rgba(0, 0, 0, 0.20) 100%);
}

.hero-section-wrapper .carousel-indicators,
.hero-section-wrapper .carousel-control-prev,
.hero-section-wrapper .carousel-control-next {
    z-index: 3;
}

.text-gold {
    color: #f59e0b;
}

.candidate-dashboard {
    padding-left: 1rem;
    padding-right: 1rem;
}

.btn-gold {
    background-color: #f59e0b;
    border-color: #f59e0b;
    color: #fff;
    transition: all 0.3s ease;
}

.btn-gold:hover {
    background-color: #d97706;
    border-color: #d97706;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4);
}

.hero-section-wrapper h1 {
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.4);
    letter-spacing: 1px;
}

.hero-section-wrapper .lead {
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.3);
    font-size: 1.4rem;
}

.hero-section-wrapper .hero-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background: #f59e0b;
    margin: 0.75rem auto 0.5rem;
    border-radius: 2px;
}

.hero-section-wrapper .btn {
    padding: 0.6rem 1.8rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.hero-section-wrapper .btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(14, 116, 144, 0.4);
}

/* Service Cards Premium */
.service-card {
    background: #FFFFFF;
    border: 1px solid #EEF2F7;
    border-radius: 16px;
    padding: 2rem 1.5rem;
    height: 100%;
    overflow: hidden;
    position: relative;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
    transition: all 0.3s ease;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: var(--accent, var(--bs-primary));
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 16px 16px 0 0;
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.1);
}

.service-card:hover::before { opacity: 1; }

.service-card:hover .icon-circle {
    transform: scale(1.08);
}

.icon-circle {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    transition: all 0.3s ease;
}

.service-card .card-text {
    font-size: 0.9rem;
    line-height: 1.7;
    color: #64748B;
}

.service-card .btn {
    padding: 0.5rem 1.5rem;
    font-weight: 600;
    border-radius: 8px;
}

/* Enterprise Feature Cards — v2 Premium */
.feature-section {
    background: #F8FAFC;
    position: relative;
    overflow: hidden;
}

.feature-card {
    background: #FFFFFF;
    border: 1px solid #EEF2F7;
    border-radius: 24px;
    padding: 40px;
    height: 100%;
    overflow: hidden;
    position: relative;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 24px 24px 0 0;
}

.feature-card:nth-child(1)::before { background: #2563EB; }
.feature-card:nth-child(2)::before { background: #F59E0B; }
.feature-card:nth-child(3)::before { background: #7C3AED; }

.feature-card:nth-child(1) { background: rgba(37, 99, 235, 0.04); border-color: rgba(37, 99, 235, 0.1); }
.feature-card:nth-child(2) { background: rgba(245, 158, 11, 0.04); border-color: rgba(245, 158, 11, 0.1); }
.feature-card:nth-child(3) { background: rgba(124, 58, 237, 0.04); border-color: rgba(124, 58, 237, 0.1); }

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.12);
}

.feature-card:hover::before { opacity: 1; }

.feature-card .feature-card-icon {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    margin-bottom: 24px;
    flex-shrink: 0;
    transition: all 0.3s ease;
    position: relative;
}

.feature-card:nth-child(1) .feature-card-icon {
    background: linear-gradient(135deg, #EAF4FF, #DBEAFE);
    color: #2563EB;
}

.feature-card:nth-child(2) .feature-card-icon {
    background: linear-gradient(135deg, #FFF4E5, #FEF3C7);
    color: #F59E0B;
}

.feature-card:nth-child(3) .feature-card-icon {
    background: linear-gradient(135deg, #F3F0FF, #EDE9FE);
    color: #7C3AED;
}

.feature-card:hover .feature-card-icon { transform: scale(1.08); }

.feature-card h5 {
    font-size: 24px;
    font-weight: 700;
    color: #0F172A;
    margin-bottom: 16px;
    letter-spacing: -0.01em;
    line-height: 1.3;
}

.feature-card p {
    font-size: 17px;
    line-height: 1.8;
    color: #64748B;
    margin-bottom: 28px;
    max-width: 300px;
}

.feature-card .btn {
    height: 50px;
    padding: 0 28px;
    border-radius: 14px;
    background: #2563EB;
    color: #FFFFFF;
    font-weight: 600;
    font-size: 15px;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.25s ease;
    margin-top: auto;
}

.feature-card .btn::after {
    content: '→';
    font-size: 18px;
    line-height: 1;
    transition: transform 0.25s ease;
}

.feature-card .btn:hover {
    background: #1D4ED8;
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.25);
    transform: translateY(-1px);
    color: #FFFFFF;
}

.feature-card .btn:hover::after {
    transform: translateX(4px);
}

/* Why Choose Section */
.why-section {
    background: #F8FAFC;
}

.section-title {
    font-size: 2rem;
    letter-spacing: 0.5px;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: #f59e0b;
    margin: 0.75rem auto 0;
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.05rem;
    margin-top: 0.5rem;
}

.why-card {
    background: #FFFFFF;
    border: 1px solid #EEF2F7;
    border-radius: 16px;
    padding: 2rem 1.25rem;
    height: 100%;
    overflow: hidden;
    position: relative;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
    transition: all 0.3s ease;
}

.why-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 16px 16px 0 0;
}

.why-card:nth-child(1)::before { background: #0e7490; }
.why-card:nth-child(2)::before { background: #f59e0b; }
.why-card:nth-child(3)::before { background: #4f46e5; }
.why-card:nth-child(4)::before { background: #10b981; }

.why-card:nth-child(1) { background: rgba(14,116,144,0.04); border-color: rgba(14,116,144,0.1); }
.why-card:nth-child(2) { background: rgba(245,158,11,0.04); border-color: rgba(245,158,11,0.1); }
.why-card:nth-child(3) { background: rgba(79,70,229,0.04); border-color: rgba(79,70,229,0.1); }
.why-card:nth-child(4) { background: rgba(16,185,129,0.04); border-color: rgba(16,185,129,0.1); }

.why-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.1);
}

.why-card:hover::before { opacity: 1; }

.why-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin-bottom: 1.25rem;
    transition: all 0.3s ease;
}

.why-card:hover .why-icon {
    transform: scale(1.08);
}

.why-card h6 {
    font-size: 1.05rem;
    font-weight: 700;
    color: #0F172A;
    margin-bottom: 0.5rem;
}

.why-text {
    font-size: 0.9rem;
    line-height: 1.7;
    color: #64748B;
    margin-bottom: 0;
}

.why-text {
    font-size: 0.85rem;
    color: #6b7280;
    margin-bottom: 0;
    line-height: 1.5;
}

/* Footer Premium */
.footer-premium {
    background: linear-gradient(180deg, #FDFBF7 0%, #F8F4EC 100%);
    border-top: 4px solid #F59E0B;
}

.footer-copyright {
    font-size: 0.95rem;
    color: #475569;
    margin-bottom: 0.5rem;
    letter-spacing: 0.3px;
}

.footer-location {
    font-size: 0.9rem;
    color: #64748B;
    margin-bottom: 0;
}

.footer-divider {
    width: 40px;
    height: 2px;
    background: #F59E0B;
    margin: 1rem auto;
    border-radius: 1px;
    opacity: 0.5;
}

.footer-powered {
    font-size: 0.85rem;
    color: #94A3B8;
    margin-bottom: 0;
}

.footer-powered a {
    color: #F59E0B;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-powered a:hover {
    color: #D97706;
    text-decoration: underline;
}

/* Auth Cards (Register / Login / Forgot / Reset) */
.register-card,
.auth-card {
    border-top: 4px solid #14b8a6 !important;
}

.register-accent,
.auth-accent {
    width: 40px;
    height: 4px;
    background: #14b8a6;
    border-radius: 2px;
}

.register-card .form-control,
.auth-card .form-control {
    border-radius: 8px;
    padding: 0.6rem 0.75rem;
    border: 1.5px solid #e5e7eb;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.register-card .form-control:focus,
.auth-card .form-control:focus {
    border-color: #0e7490;
    box-shadow: 0 0 0 3px rgba(14, 116, 144, 0.1);
}

.register-card .form-control::placeholder,
.auth-card .form-control::placeholder {
    color: #9ca3af;
    font-size: 0.9rem;
}

.register-card .form-label,
.auth-card .form-label {
    font-size: 0.9rem;
    margin-bottom: 0.35rem;
}

/* Inner Page Hero Sections */
.page-hero-section {
    position: relative;
    min-height: 42vh;
    overflow: hidden;
    background-size: cover;
    background-position: center;
}

.page-hero-section .hero-overlay-fixed {
    background: linear-gradient(135deg, rgba(14, 116, 144, 0.35) 0%, rgba(0, 0, 0, 0.20) 100%);
}

.page-hero-section .hero-title {
    font-size: 2.8rem;
}

@media (max-width: 576px) {
    .page-hero-section {
        min-height: 35vh;
    }
    .page-hero-section .hero-title {
        font-size: 2rem;
    }
}

.mission-card {
    background: rgba(245, 158, 11, 0.03);
    border: 1px solid rgba(245, 158, 11, 0.1);
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.mission-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: #F59E0B;
    border-radius: 16px 16px 0 0;
}

.mission-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.1);
}

.mission-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: linear-gradient(135deg, #FFF4E5, #FEF3C7);
    color: #F59E0B;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.mission-card:hover .mission-icon {
    transform: scale(1.08);
}

/* Contact Cards */
.contact-card {
    background: #FFFFFF;
    border: 1px solid #EEF2F7;
    border-radius: 16px;
    padding: 2rem;
    height: 100%;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
    transition: all 0.3s ease;
}

.contact-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: var(--accent, var(--bs-primary));
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 16px 16px 0 0;
}

.contact-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.1);
}

.contact-card:hover::before { opacity: 1; }

.contact-card-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.contact-card:hover .contact-card-icon {
    transform: scale(1.08);
}

.contact-card h5 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #0F172A;
}

.contact-card p {
    font-size: 0.9rem;
    line-height: 1.7;
    color: #64748B;
}

.industry-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    border: 1px solid;
    transition: all 0.2s ease;
    cursor: default;
}

/* Active Nav Link */
.navbar .nav-link.active {
    position: relative;
}
.navbar .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 8px;
    right: 8px;
    height: 2px;
    background: #f59e0b;
    border-radius: 1px;
}

.industry-pill:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* (services-hero and contact-hero now use shared .page-hero-section) */

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, rgba(14, 116, 144, 0.95) 0%, rgba(6, 78, 98, 0.98) 100%);
}

.hero-carousel .carousel-item {
    background-color: var(--bs-primary);
}

/* ===== Admin Dashboard ===== */

/* Stat Cards */
.stat-card {
    position: relative;
    overflow: hidden;
    color: #fff;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    cursor: default;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.stat-card .stat-number {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.1;
}

.stat-card .stat-label {
    font-size: 0.8rem;
    opacity: 0.85;
    font-weight: 500;
    margin-top: 2px;
}

.stat-card .stat-icon {
    font-size: 2.8rem;
    opacity: 0.25;
    line-height: 1;
}

/* Gradient backgrounds */
.bg-gradient-teal { background: linear-gradient(135deg, #0e7490, #14b8a6); }
.bg-gradient-green { background: linear-gradient(135deg, #059669, #34d399); }
.bg-gradient-amber { background: linear-gradient(135deg, #d97706, #fbbf24); }
.bg-gradient-indigo { background: linear-gradient(135deg, #4338ca, #818cf8); }
.bg-gradient-emerald { background: linear-gradient(135deg, #047857, #6ee7b7); }
.bg-gradient-blue { background: linear-gradient(135deg, #0369a1, #38bdf8); }
.bg-gradient-orange { background: linear-gradient(135deg, #ea580c, #fb923c); }
.bg-gradient-purple { background: linear-gradient(135deg, #7c3aed, #a78bfa); }
.bg-gradient-rose { background: linear-gradient(135deg, #be123c, #fb7185); }

/* Action Cards */
.action-card {
    background: #fff;
    transition: all 0.3s ease;
    border-color: #e5e7eb !important;
}

.action-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    border-color: transparent !important;
}

.action-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    transition: transform 0.3s ease;
}

.action-card:hover .action-icon {
    transform: scale(1.15);
}

/* Soft background circles */
.bg-soft-teal { background: rgba(14, 116, 144, 0.1); }
.bg-soft-indigo { background: rgba(67, 56, 202, 0.1); }
.bg-soft-amber { background: rgba(217, 119, 6, 0.1); }
.bg-soft-sky { background: rgba(3, 105, 161, 0.1); }
.bg-soft-purple { background: rgba(124, 58, 237, 0.1); }
.bg-soft-rose { background: rgba(190, 18, 60, 0.1); }
.bg-soft-emerald { background: rgba(4, 120, 87, 0.1); }
.bg-soft-orange { background: rgba(234, 88, 12, 0.1); }

/* ===== Premium Split-Card Admin Dashboard ===== */

/* Admin page background */
.admin-page { background: #f0f2f5; min-height: 100vh; }

/* Welcome Banner */
.admin-welcome {
    background: linear-gradient(135deg, #0d9488 0%, #0a5a72 40%, #0e7490 100%);
    position: relative;
    overflow: hidden;
    isolation: isolate;
}
.admin-welcome::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.07'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    z-index: 0;
}
.admin-welcome > * { position: relative; z-index: 1; }
.admin-welcome::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, #f59e0b, #fbbf24, #f59e0b);
    z-index: 1;
}

/* Section title with left border */
.section-title-premium {
    font-size: 1.1rem; font-weight: 700; color: #1f2937;
    margin-bottom: 1rem;
    padding-left: 0.85rem;
    border-left: 3px solid #f59e0b;
    letter-spacing: 0.01em;
}

/* White glass icon circle for gradients */
.icon-circle-glass {
    width: 44px; height: 44px; border-radius: 14px;
    background: rgba(255,255,255,0.85);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem; flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

/* ===== Professional Admin Redesign ===== */

/* Accent bar colors */
.bg-accent-teal   { background: #0d9488; }
.bg-accent-indigo { background: #4338ca; }
.bg-accent-amber  { background: #d97706; }
.bg-accent-purple { background: #7c3aed; }

/* Soft icon backgrounds */
.bg-soft-teal    { background: rgba(13,148,136,0.08); }
.bg-soft-indigo  { background: rgba(67,56,202,0.08); }
.bg-soft-amber   { background: rgba(217,119,6,0.08); }
.bg-soft-purple  { background: rgba(124,58,237,0.08); }
.bg-soft-emerald { background: rgba(5,150,105,0.08); }
.bg-soft-blue    { background: rgba(2,132,199,0.08); }
.bg-soft-rose    { background: rgba(190,18,60,0.08); }
.bg-soft-orange  { background: rgba(234,88,12,0.08); }

/* Modern stat card */
.stat-modern {
    background: #fff;
    border-radius: 16px;
    border: 1px solid rgba(0,0,0,0.04);
    box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 4px 16px rgba(0,0,0,0.03);
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    cursor: default;
    animation: fadeInUp 0.5s ease both;
}
.stat-modern:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 32px rgba(0,0,0,0.07);
}
.stat-modern .stat-modern-accent {
    height: 4px;
    width: 100%;
}
.stat-modern .stat-modern-body {
    padding: 1.5rem 1.25rem 1.25rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.stat-modern .stat-modern-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
}
.stat-modern .stat-modern-number {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
}
.stat-modern .stat-modern-number.text-teal   { color: #0d9488; }
.stat-modern .stat-modern-number.text-indigo { color: #4338ca; }
.stat-modern .stat-modern-number.text-amber  { color: #d97706; }
.stat-modern .stat-modern-number.text-purple { color: #7c3aed; }
.stat-modern .stat-modern-label {
    font-size: 0.82rem;
    font-weight: 600;
    color: #6b7280;
    margin-top: 0.25rem;
    letter-spacing: 0.01em;
}

/* Staggered fade-in animation for stat cards */
.stat-modern:nth-child(1) { animation-delay: 0.03s; }
.stat-modern:nth-child(2) { animation-delay: 0.06s; }
.stat-modern:nth-child(3) { animation-delay: 0.09s; }
.stat-modern:nth-child(4) { animation-delay: 0.12s; }
.stat-modern:nth-child(5) { animation-delay: 0.15s; }
.stat-modern:nth-child(6) { animation-delay: 0.18s; }
.stat-modern:nth-child(7) { animation-delay: 0.21s; }
.stat-modern:nth-child(8) { animation-delay: 0.24s; }
.stat-modern:nth-child(9) { animation-delay: 0.27s; }
.stat-modern:nth-child(10) { animation-delay: 0.30s; }
.stat-modern:nth-child(11) { animation-delay: 0.33s; }
.stat-modern:nth-child(12) { animation-delay: 0.36s; }
.stat-modern:nth-child(13) { animation-delay: 0.39s; }

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Sector table inside dashboard card */
.sector-table thead th {
    background: #f8fafc;
    font-size: 0.78rem;
    font-weight: 700;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border-bottom: 2px solid #e5e7eb;
}
.sector-table tbody td {
    font-size: 0.85rem;
    vertical-align: middle;
    border-bottom: 1px solid #f3f4f6;
}
.sector-table tbody tr:last-child td {
    border-bottom: none;
}
.sector-table tbody tr:hover {
    background: #f8fafc;
}
.sector-badge {
    display: inline-block;
    padding: 0.25rem 0.85rem;
    border-radius: 50px;
    font-size: 0.82rem;
    font-weight: 600;
    min-width: 36px;
    text-align: center;
}
.sector-badge.teal   { background: rgba(13,148,136,0.08); color: #0d9488; }
.sector-badge.indigo { background: rgba(67,56,202,0.08); color: #4338ca; }

/* ===== Premium KPI Cards ===== */
.stat-card-premium {
    border-radius: 16px;
    background: #fff;
    border: 1px solid #E5E7EB;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
    transition: all 0.25s ease;
    cursor: pointer;
    padding: 24px;
    min-height: 160px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    animation: fadeInUp 0.5s ease both;
}
.stat-card-premium:nth-child(1) { animation-delay: 0.03s; }
.stat-card-premium:nth-child(2) { animation-delay: 0.06s; }
.stat-card-premium:nth-child(3) { animation-delay: 0.09s; }
.stat-card-premium:nth-child(4) { animation-delay: 0.12s; }
.stat-card-premium:nth-child(5) { animation-delay: 0.15s; }
.stat-card-premium:nth-child(6) { animation-delay: 0.18s; }
.stat-card-premium:nth-child(7) { animation-delay: 0.21s; }
.stat-card-premium:nth-child(8) { animation-delay: 0.24s; }
.stat-card-premium:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 32px rgba(15, 23, 42, 0.12);
}

/* Top accent bar via ::before */
.stat-card-premium::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    border-radius: 16px 16px 0 0;
}
.top-accent-sky::before    { background: #0EA5E9; }
.top-accent-green::before  { background: #10B981; }
.top-accent-blue::before   { background: #2563EB; }
.top-accent-amber::before  { background: #F59E0B; }
.top-accent-purple::before { background: #8B5CF6; }

/* Icon circle */
.stat-card-premium .stat-icon-circle {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 16px;
    flex-shrink: 0;
    transition: transform 0.25s ease;
}
.stat-card-premium:hover .stat-icon-circle { transform: scale(1.05); }

/* Value */
.stat-card-premium .stat-number {
    display: block;
    font-size: 42px;
    font-weight: 800;
    line-height: 1.1;
    color: #111827;
    letter-spacing: -0.02em;
    margin-bottom: 8px;
}

/* Label */
.stat-card-premium .stat-label {
    display: block;
    font-size: 16px;
    font-weight: 600;
    color: #6B7280;
    margin-bottom: 8px;
    line-height: 1.2;
}

/* Trend */
.stat-card-premium .stat-trend {
    font-size: 13px;
    font-weight: 500;
    line-height: 1.2;
}
.stat-trend.text-up      { color: #10B981; }
.stat-trend.text-down    { color: #EF4444; }
.stat-trend.text-neutral { color: #94A3B8; }

/* Premium action cards — modern white card row */
.action-card-premium {
    border-radius: 16px;
    padding: 1rem 1.25rem;
    background: #fff;
    border: 1px solid rgba(0,0,0,0.04);
    box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 4px 16px rgba(0,0,0,0.03);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    cursor: pointer;
    height: 100%;
}
.action-card-premium:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(0,0,0,0.07);
}
.action-card-premium .action-body {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}
.action-card-premium .action-icon-circle {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}
.action-card-premium .action-text {
    flex: 1;
    min-width: 0;
}
.action-card-premium .action-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 0.1rem;
    line-height: 1.3;
}
.action-card-premium .action-subtitle {
    font-size: 0.72rem;
    color: #6b7280;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
}
.action-card-premium .action-arrow {
    font-size: 0.8rem;
    color: #9ca3af;
    transition: transform 0.25s ease, color 0.25s ease;
    flex-shrink: 0;
}
.action-card-premium:hover .action-arrow {
    transform: translateX(3px);
    color: #0d9488;
}

/* Back to Dashboard button — subtle white/teal pill */
.btn-back-dashboard {
    background: rgba(255,255,255,0.9);
    color: #0e7490;
    border: 1px solid rgba(14,116,144,0.15);
    border-radius: 50px;
    padding: 0.35rem 1rem;
    font-size: 0.82rem;
    font-weight: 600;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    white-space: nowrap;
}
.btn-back-dashboard:hover {
    background: #fff;
    color: #0a5a72;
    border-color: rgba(14,116,144,0.3);
    box-shadow: 0 2px 8px rgba(14,116,144,0.08);
    transform: translateY(-1px);
}

/* Info display (view mode labels/values) */
.info-label {
    font-size: 0.8rem;
    color: #64748B;
    font-weight: 600;
    margin-bottom: 2px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-value {
    font-size: 1.05rem;
    color: #0F172A;
    font-weight: 600;
}

/* Dashboard card with colored accent border header */
.dashboard-card {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 4px 16px rgba(0,0,0,0.03);
    background: #fff;
    transition: box-shadow 0.25s ease;
    border: 1px solid rgba(0,0,0,0.04);
}
.dashboard-card:hover { box-shadow: 0 8px 32px rgba(0,0,0,0.06); }
.dashboard-card .card-head {
    padding: 0.9rem 1.25rem;
    font-size: 0.9rem; font-weight: 700; color: #374151;
    display: flex; align-items: center; gap: 0.5rem;
    background: #fff;
    border-bottom: 1px solid #f3f4f6;
    position: relative;
}
.dashboard-card .card-head::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 4px;
}
.dashboard-card .card-head.bg-soft-grad-teal::before    { background: #0d9488; }
.dashboard-card .card-head.bg-soft-grad-purple::before  { background: #7c3aed; }
.dashboard-card .card-head.bg-soft-grad-indigo::before  { background: #4338ca; }
.dashboard-card .card-body-custom { padding: 0; }

/* Recent Items */
.recent-item {
    display: flex; align-items: center; justify-content: space-between;
    padding: 0.875rem 1.5rem;
    border-bottom: 1px solid #f3f4f6;
    transition: background 0.15s ease;
}
.recent-item:last-child { border-bottom: none; }
.recent-item:hover { background: #f8fafc; }
.recent-item .avatar-squircle {
    width: 40px; height: 40px; border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1rem; flex-shrink: 0;
}
.recent-item .avatar-squircle.teal-bg   { background: rgba(13,148,136,0.08); color: #0d9488; }
.recent-item .avatar-squircle.indigo-bg { background: rgba(67,56,202,0.08); color: #4338ca; }
.recent-item .item-name { font-size: 0.88rem; font-weight: 600; color: #1f2937; }
.recent-item .item-date { font-size: 0.72rem; color: #9ca3af; margin-top: 2px; }

/* Soft gradient backgrounds (ultra-light pastel pairs) */
.bg-soft-grad-teal    { background: linear-gradient(135deg, #f0fdfa, #ccfbf1); }
.bg-soft-grad-green   { background: linear-gradient(135deg, #f0fdf4, #bbf7d0); }
.bg-soft-grad-sky     { background: linear-gradient(135deg, #f0f9ff, #bae6fd); }
.bg-soft-grad-amber   { background: linear-gradient(135deg, #fffbeb, #fde68a); }
.bg-soft-grad-indigo  { background: linear-gradient(135deg, #eef2ff, #c7d2fe); }
.bg-soft-grad-emerald { background: linear-gradient(135deg, #ecfdf5, #a7f3d0); }
.bg-soft-grad-blue    { background: linear-gradient(135deg, #eff6ff, #bfdbfe); }
.bg-soft-grad-orange  { background: linear-gradient(135deg, #fff7ed, #fed7aa); }
.bg-soft-grad-purple  { background: linear-gradient(135deg, #f5f3ff, #ddd6fe); }
.bg-soft-grad-rose    { background: linear-gradient(135deg, #fff1f2, #fecdd3); }

/* Dark text colors matching gradient accents (softened) */
.text-accent-teal    { color: #0d9488; }
.text-accent-green  { color: #059669; }
.text-accent-sky    { color: #0284c7; }
.text-accent-amber  { color: #d97706; }
.text-accent-indigo { color: #4338ca; }
.text-accent-emerald { color: #047857; }
.text-accent-blue   { color: #0369a1; }
.text-accent-orange { color: #ea580c; }
.text-accent-purple { color: #7c3aed; }
.text-accent-rose   { color: #be123c; }

/* Mobile responsive */
@media (max-width: 575.98px) {
    .stat-card-premium .card-top .stat-number { font-size: 1.3rem; }
    .action-card-premium { padding: 1rem 0.75rem; }
    .action-card-premium .action-icon { width: 44px; height: 44px; font-size: 1.1rem; }
    .action-card-premium .action-title { font-size: 0.75rem; }
    .admin-welcome h1 { font-size: 1.3rem; }
    .admin-welcome { flex-direction: column !important; text-align: center; gap: 8px; }
    .admin-welcome .text-end { text-align: center !important; }
}

/* Text colors */
.text-teal { color: #0e7490; }
.text-indigo { color: #4338ca; }
.text-amber { color: #d97706; }
.text-sky { color: #0369a1; }
.text-purple { color: #7c3aed; }
.text-rose { color: #be123c; }

/* Outline button variants */
.btn-outline-teal {
    color: #0e7490;
    border-color: #0e7490;
}
.btn-outline-teal:hover {
    background: #0e7490;
    color: #fff;
}

.btn-outline-indigo {
    color: #4338ca;
    border-color: #4338ca;
}
.btn-outline-indigo:hover {
    background: #4338ca;
    color: #fff;
}

.btn-outline-purple {
    color: #7c3aed;
    border-color: #7c3aed;
}
.btn-outline-purple:hover {
    background: #7c3aed;
    color: #fff;
}

.btn-outline-rose {
    color: #be123c;
    border-color: #be123c;
}
.btn-outline-rose:hover {
    background: #be123c;
    color: #fff;
}

/* Browse button for file uploads */
.btn-browse {
    color: #0e7490;
    background: rgba(14, 116, 144, 0.06);
    border: 1px solid rgba(14, 116, 144, 0.25);
    border-radius: 8px;
    padding: 0.375rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s ease;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    margin-bottom: 0;
    line-height: 1.5;
}
.btn-browse:hover {
    background: rgba(14, 116, 144, 0.12);
    border-color: rgba(14, 116, 144, 0.4);
    color: #0e7490;
}

.btn-indigo {
    background: #4338ca;
    color: #fff;
    border-color: #4338ca;
}
.btn-indigo:hover {
    background: #3730a3;
    color: #fff;
}

.btn-teal {
    background: #14b8a6;
    color: #fff;
    border-color: #14b8a6;
    transition: all 0.2s ease;
}
.btn-teal:hover {
    background: #0d9488;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(20, 184, 166, 0.35);
}

.btn-soft-reset {
    color: #6b7280;
    background: rgba(107, 114, 128, 0.06);
    border: 1px solid rgba(107, 114, 128, 0.15);
    transition: all 0.2s ease;
}
.btn-soft-reset:hover {
    color: #374151;
    background: rgba(107, 114, 128, 0.12);
    border-color: rgba(107, 114, 128, 0.25);
    transform: translateY(-1px);
}

/* Solid background utilities for modal headers */
.bg-teal { background: #0e7490 !important; }
.bg-indigo { background: #4338ca !important; }
.bg-purple { background: #7c3aed !important; }

/* Badge subtles override */
.bg-success-subtle { background: #d1fae5 !important; }
.bg-warning-subtle { background: #fef3c7 !important; }
.bg-secondary-subtle { background: #f3f4f6 !important; }
.text-success { color: #059669 !important; }
.text-warning { color: #d97706 !important; }

/* ===== Candidate Dashboard ===== */

.candidate-welcome {
    background: linear-gradient(135deg, #0e7490 0%, #0a5a72 50%, #1e3a5f 100%);
    box-shadow: 0 4px 20px rgba(14, 116, 144, 0.3);
}

/* Next Steps Checklist */
.next-step {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 12px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
}

.next-step.completed {
    background: #f0fdf4;
    border-color: #86efac;
}

.next-step .step-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.next-step .step-label strong {
    font-size: 0.85rem;
    display: block;
}

.next-step .step-label small {
    font-size: 0.75rem;
}

/* Dashboard Section Styles */
.section-icon-lg {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.bg-soft-rose { background: rgba(190, 18, 60, 0.1); }
.text-rose { color: #be123c; }
.btn-outline-rose {
    color: #be123c;
    border-color: #be123c;
}
.btn-outline-rose:hover {
    background: #be123c;
    color: #fff;
}

/* Profile Form */
.profile-form .section-icon {
    flex-shrink: 0;
}

.profile-form .card {
    border-left: 4px solid #0e7490;
}

.profile-form .form-control,
.profile-form .form-select {
    border-radius: 8px;
    padding: 0.6rem 0.75rem;
    border: 1.5px solid #e5e7eb;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.profile-form .form-control:focus,
.profile-form .form-select:focus {
    border-color: #0e7490;
    box-shadow: 0 0 0 3px rgba(14, 116, 144, 0.1);
}

.profile-form .form-control::placeholder,
.profile-form .form-select::placeholder {
    color: #9ca3af;
    font-size: 0.9rem;
}

.profile-form .form-label {
    font-size: 0.88rem;
    margin-bottom: 0.3rem;
}

.profile-form .table th {
    font-size: 0.85rem;
    font-weight: 600;
}

/* Profile success alert override */
.profile-form .alert-success {
    border-left: 4px solid #059669;
}

.exp-required {
    display: inline;
}

/* ===== Mobile Responsive Overrides ===== */

@media (max-width: 767.98px) {
    .hero-carousel h1 {
        font-size: 1.6rem;
    }
    .hero-carousel .lead {
        font-size: 1rem;
    }
    .hero-carousel .btn-lg {
        font-size: 0.9rem;
        padding: 0.5rem 1.2rem;
    }
    .hero-carousel,
    .hero-carousel .carousel-item {
        min-height: 55vh;
    }
}

/* ===== Master Data ===== */
.master-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 0.25rem 0.5rem 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.82rem;
    font-weight: 500;
    transition: all 0.15s ease;
    border: 1px solid transparent;
    margin: 2px;
}
.master-pill:hover { border-color: rgba(0,0,0,0.08); }
.master-pill .master-delete {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px; height: 18px;
    border-radius: 50%;
    font-size: 0.75rem;
    line-height: 1;
    opacity: 0.4;
    transition: all 0.15s ease;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    color: inherit;
}
.master-pill .master-delete:hover { opacity: 1; background: rgba(0,0,0,0.1); }
.master-pill-teal { background: rgba(14,116,144,0.08); color: #0e7490; }
.master-pill-indigo { background: rgba(67,56,202,0.08); color: #4338ca; }
.master-pill-amber { background: rgba(217,119,6,0.08); color: #d97706; }
.master-pill-purple { background: rgba(124,58,237,0.08); color: #7c3aed; }
.master-pill-emerald { background: rgba(4,120,87,0.08); color: #047857; }
.master-search {
    border: none;
    border-bottom: 2px solid #e5e7eb;
    border-radius: 0;
    padding: 0.3rem 0;
    font-size: 0.85rem;
    background: transparent;
    transition: border-color 0.2s;
    outline: none;
}
.master-search:focus { border-color: #0e7490; }
.master-search::placeholder { color: #9ca3af; }
.master-pills-wrap { max-height: 280px; overflow-y: auto; }
.master-pills-wrap::-webkit-scrollbar { width: 4px; }
.master-pills-wrap::-webkit-scrollbar-thumb { background: #d1d5db; border-radius: 2px; }
.master-pills-wrap::-webkit-scrollbar-track { background: transparent; }
.master-state-item { transition: all 0.2s; }
.master-state-item:hover { border-color: #d1d5db !important; background: #fff !important; }

@media (max-width: 575.98px) {
    .stat-card .stat-number {
        font-size: 1.4rem;
    }
    .stat-card .stat-label {
        font-size: 0.7rem;
    }
    .admin-welcome,
    .candidate-welcome {
        flex-direction: column !important;
        text-align: center;
        gap: 8px;
    }
    .admin-welcome .text-end,
    .candidate-welcome .text-end {
        text-align: center !important;
    }
    .next-step {
        flex-direction: column;
        text-align: center;
        padding: 12px;
    }
}

/* ===== Admin Sidebar Layout ===== */
.admin-wrapper {
    display: flex;
    min-height: 100vh;
}

.admin-sidebar {
    width: 250px;
    background: #1e293b;
    color: #cbd5e1;
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 1040;
    transition: transform 0.3s ease;
}

.sidebar-brand {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.sidebar-brand a {
    color: #fff;
    text-decoration: none;
    font-size: 1.15rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sidebar-brand a i {
    font-size: 1.3rem;
    color: #f59e0b;
}

.sidebar-close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: none;
    border: none;
    color: #94a3b8;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.25rem;
}

.sidebar-nav {
    flex: 1;
    overflow-y: auto;
    padding: 0.75rem 0;
}

.sidebar-nav .nav-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0.65rem 1.25rem;
    color: #94a3b8;
    font-size: 0.88rem;
    font-weight: 500;
    border-left: 3px solid transparent;
    transition: all 0.15s ease;
    text-decoration: none;
}

.sidebar-nav .nav-link:hover {
    color: #e2e8f0;
    background: rgba(255,255,255,0.04);
}

.sidebar-nav .nav-link.active {
    color: #fff;
    background: rgba(255,255,255,0.06);
    border-left-color: #f59e0b;
}

.sidebar-nav .nav-link i {
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
}

.sidebar-footer {
    padding: 0.75rem 1.25rem;
    border-top: 1px solid rgba(255,255,255,0.08);
}

.admin-content {
    flex: 1;
    margin-left: 250px;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.admin-topbar {
    display: flex;
    align-items: center;
    padding: 0.6rem 1.5rem;
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
    position: sticky;
    top: 0;
    z-index: 1030;
}

.sidebar-toggle {
    background: none;
    border: none;
    padding: 0.25rem 0.5rem;
    cursor: pointer;
    color: #374151;
}

.admin-footer {
    padding: 1rem 1.5rem;
    margin-top: auto;
    border-top: 1px solid #e5e7eb;
    background: #f9fafb;
}

.sidebar-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1035;
    display: none;
}
.sidebar-backdrop.show {
    display: block;
}

@media (max-width: 991.98px) {
    .admin-sidebar {
        transform: translateX(-100%);
    }
    .admin-sidebar.show {
        transform: translateX(0);
    }
    .admin-content {
        margin-left: 0;
    }
}

@media (min-width: 992px) {
    .admin-sidebar.show {
        transform: translateX(-100%);
    }
    .admin-sidebar.show ~ .admin-content {
        margin-left: 0;
    }
}

/* ===== MyProfile Redesign ===== */

/* Profile Progress Card */
.profile-progress-card {
    background: #fff;
    border-radius: 16px;
    padding: 1.25rem 1.5rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 4px 16px rgba(0,0,0,0.03);
    border: 1px solid rgba(0,0,0,0.04);
    margin-bottom: 1.5rem;
}
.profile-progress {
    height: 6px;
    border-radius: 3px;
    background: #e5e7eb;
    overflow: hidden;
}
.profile-progress .progress-bar {
    background: linear-gradient(90deg, #0e7490, #0d9488);
    border-radius: 3px;
    transition: width 0.5s ease;
}
.steps-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}
.step-item {
    text-align: center;
    flex: 1;
}
.step-badge {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    background: #e5e7eb;
    color: #9ca3af;
    transition: all 0.3s ease;
    margin: 0 auto;
}
.step-badge.completed {
    background: #0e7490;
    color: #fff;
}
.step-badge.active {
    background: #0e7490;
    color: #fff;
    box-shadow: 0 0 0 4px rgba(14,116,144,0.15);
}
.step-label {
    font-size: 0.65rem;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
    font-weight: 500;
}
.step-label.completed {
    color: #0e7490;
}
.step-label.active {
    color: #0e7490;
    font-weight: 600;
}

/* Section Number Badge */
.section-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #0e7490;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    flex-shrink: 0;
}

/* Upload Zone (Drag & Drop) */
.upload-zone {
    position: relative;
    width: 160px;
    height: 160px;
    border: 2px dashed #d1d5db;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.25s ease;
    background: #f9fafb;
    overflow: hidden;
}
.upload-zone:hover {
    border-color: #0e7490;
    background: rgba(14,116,144,0.03);
}
.upload-zone.dragover {
    border-color: #0e7490;
    background: rgba(14,116,144,0.06);
    border-style: solid;
}
.upload-zone.has-image {
    border-style: solid;
    border-color: #0e7490;
}
.upload-zone .upload-placeholder {
    text-align: center;
    color: #9ca3af;
    pointer-events: none;
}
.upload-zone .upload-placeholder i {
    font-size: 2rem;
    display: block;
    margin-bottom: 0.5rem;
    color: #d1d5db;
}
.upload-zone .upload-placeholder span {
    font-size: 0.75rem;
    display: block;
    line-height: 1.3;
}
.upload-zone .upload-preview {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: none;
}
.upload-zone.has-image .upload-preview {
    display: block;
}
.upload-zone.has-image .upload-placeholder {
    display: none;
}
.upload-zone .upload-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0,0,0,0.5);
    color: #fff;
    font-size: 0.65rem;
    padding: 4px;
    text-align: center;
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
}
.upload-zone:hover .upload-overlay {
    opacity: 1;
}
.upload-zone input[type="file"] {
    display: none;
}

/* Language Chips */
.lang-chips-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding-top: 4px;
}
.lang-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 0.35rem 0.75rem;
    border-radius: 50px;
    font-size: 0.82rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
    border: 1px solid #e5e7eb;
    background: #fff;
    color: #374151;
    user-select: none;
}
.lang-chip:hover {
    border-color: #0e7490;
    background: rgba(14,116,144,0.04);
}
.lang-chip.selected {
    background: #0e7490;
    border-color: #0e7490;
    color: #fff;
}
.lang-chip.selected::after {
    content: '\2713';
    margin-left: 2px;
    font-size: 0.7rem;
}

/* Skill Pills */
.skill-pills-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.skill-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1.5px solid #e5e7eb;
    background: #fff;
    color: #374151;
    user-select: none;
}
.skill-pill:hover {
    border-color: #4338ca;
    background: rgba(67,56,202,0.04);
    transform: translateY(-1px);
}
.skill-pill.active {
    background: #4338ca;
    border-color: #4338ca;
    color: #fff;
    box-shadow: 0 2px 8px rgba(67,56,202,0.2);
}
.skill-pill.active::after {
    content: '\2713';
    margin-left: 4px;
    font-size: 0.75rem;
}

/* Experience section collapse */
.exp-collapse-wrap {
    overflow: hidden;
    transition: max-height 0.35s ease, opacity 0.35s ease, margin 0.35s ease, padding 0.35s ease;
    max-height: 600px;
    opacity: 1;
}
.exp-collapse-wrap.collapsed {
    max-height: 0;
    opacity: 0;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

/* Inline validation */
.profile-form .form-control.is-valid,
.profile-form .form-select.is-valid {
    border-color: #059669;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%23059669' d='M2.3 6.73L.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}
.profile-form .form-control.is-invalid,
.profile-form .form-select.is-invalid {
    border-color: #fca5a5;
    background-color: #fffbfb;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.06);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23fca5a5'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23fca5a5' stroke='none'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}
.profile-form .field-error-msg {
    display: none;
    margin-top: 0.25rem;
    font-size: 0.75rem;
    color: #ef4444;
}
.profile-form .input-group.is-invalid .form-control {
    border-color: #fca5a5;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.06);
}
.profile-form .upload-zone.is-invalid {
    border-color: #fca5a5;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.06);
}
.profile-form .skill-pills-wrap.is-invalid {
    border: 1px solid #fca5a5;
    border-radius: 0.5rem;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.06);
}
.profile-form #educationTable.is-invalid {
    border: 1px solid #fca5a5;
    border-radius: 0.5rem;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.06);
}

/* ===== Documents Page Redesign ===== */

/* Stats Row */
.doc-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 1.5rem;
}
.doc-stat-card {
    background: #fff;
    border-radius: 14px;
    padding: 0.9rem 1rem;
    border: 1px solid rgba(0,0,0,0.04);
    box-shadow: 0 1px 3px rgba(0,0,0,0.03);
    display: flex;
    align-items: center;
    gap: 12px;
    transition: box-shadow 0.2s ease;
}
.doc-stat-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.05); }
.doc-stat-card .stat-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    flex-shrink: 0;
}
.doc-stat-card .stat-icon.teal-bg { background: rgba(14,116,144,0.08); color: #0e7490; }
.doc-stat-card .stat-icon.green-bg { background: rgba(5,150,105,0.08); color: #059669; }
.doc-stat-card .stat-icon.amber-bg { background: rgba(217,119,6,0.08); color: #d97706; }
.doc-stat-card .stat-icon.indigo-bg { background: rgba(67,56,202,0.08); color: #4338ca; }
.doc-stat-card .stat-number {
    font-size: 1.3rem;
    font-weight: 800;
    color: #1f2937;
    line-height: 1.1;
}
.doc-stat-card .stat-label {
    font-size: 0.7rem;
    color: #9ca3af;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* Document Cards Grid */
.doc-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}
.doc-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 4px 16px rgba(0,0,0,0.03);
    border: 1px solid rgba(0,0,0,0.04);
    transition: box-shadow 0.25s ease, transform 0.2s ease;
}
.doc-card:hover {
    box-shadow: 0 8px 32px rgba(0,0,0,0.06);
    transform: translateY(-2px);
}
.doc-card .doc-head {
    padding: 0.85rem 1.1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(0,0,0,0.04);
}
.doc-card .doc-head-left {
    display: flex;
    align-items: center;
    gap: 10px;
}
.doc-card .doc-head-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}
.doc-head-icon.icon-teal   { background: rgba(13,148,136,0.12); color: #0d9488; }
.doc-head-icon.icon-amber  { background: rgba(217,119,6,0.12); color: #d97706; }
.doc-head-icon.icon-rose   { background: rgba(190,18,60,0.12); color: #be123c; }
.doc-head-icon.icon-emerald { background: rgba(4,120,87,0.12); color: #047857; }
.doc-head-icon.icon-blue   { background: rgba(3,105,161,0.12); color: #0369a1; }
.doc-head-icon.icon-purple { background: rgba(124,58,237,0.12); color: #7c3aed; }
.doc-head-icon.icon-sky    { background: rgba(2,132,199,0.12); color: #0284c7; }
.doc-card .doc-type {
    font-size: 0.9rem;
    font-weight: 700;
    color: #1f2937;
}
.doc-card .doc-body {
    padding: 0.9rem 1.1rem;
}
.doc-card .doc-filename {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    color: #0e7490;
    text-decoration: none;
    word-break: break-all;
    margin-bottom: 6px;
}
.doc-card .doc-filename:hover {
    color: #0a5a72;
    text-decoration: underline;
}
.doc-card .doc-filename i {
    font-size: 1rem;
    color: #6b7280;
    flex-shrink: 0;
}
.doc-card .doc-meta {
    font-size: 0.75rem;
    color: #9ca3af;
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 0.65rem;
}
.doc-card .doc-actions {
    display: flex;
    justify-content: flex-end;
    border-top: 1px solid #f3f4f6;
    padding-top: 0.65rem;
}

/* Empty state */
.doc-empty {
    text-align: center;
    padding: 3rem 1rem;
    color: #9ca3af;
}
.doc-empty i {
    font-size: 3rem;
    display: block;
    margin-bottom: 1rem;
    color: #d1d5db;
}
.doc-empty h5 {
    color: #6b7280;
    font-weight: 600;
}

/* Mini upload zone for document file input */
.mini-upload-zone {
    position: relative;
    border: 2px dashed #d1d5db;
    border-radius: 12px;
    padding: 0.6rem 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #fafbfc;
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 48px;
}
.mini-upload-zone:hover {
    border-color: #0e7490;
    background: rgba(14,116,144,0.03);
}
.mini-upload-zone.dragover {
    border-color: #0e7490;
    background: rgba(14,116,144,0.06);
    border-style: solid;
}
.mini-upload-zone .uz-placeholder {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #9ca3af;
    font-size: 0.85rem;
    pointer-events: none;
}
.mini-upload-zone .uz-placeholder i {
    font-size: 1.2rem;
    color: #d1d5db;
}
.mini-upload-zone .uz-filename {
    font-size: 0.85rem;
    font-weight: 500;
    color: #1f2937;
    display: none;
    pointer-events: none;
}
.mini-upload-zone.has-file .uz-placeholder { display: none; }
.mini-upload-zone.has-file .uz-filename { display: flex; align-items: center; gap: 6px; }
.mini-upload-zone input[type="file"] { display: none; }

@media (max-width: 767.98px) {
    .doc-stats { grid-template-columns: repeat(2, 1fr); }
    .doc-grid { grid-template-columns: 1fr; }
}

/* ===== Candidate Profile View ===== */
:root {
    --pf-primary: #2563eb;
    --pf-primary-light: rgba(37,99,235,0.08);
    --pf-bg: #f8fafc;
    --pf-border: #e2e8f0;
    --pf-success: #22c55e;
    --pf-text-muted: #64748b;
    --pf-text-dark: #1e293b;
}

.profile-view-page {
    background: var(--pf-bg);
    min-height: 100vh;
}

/* Profile Header Card */
.profile-header-card {
    background: linear-gradient(135deg, #f0fdfa 0%, #ccfbf1 100%);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
}
.profile-header-card .header-content {
    padding: 2rem 2rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}
.profile-header-card .header-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 4px solid rgba(20,184,166,0.25);
    object-fit: cover;
    flex-shrink: 0;
    background: rgba(20,184,166,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: #14b8a6;
}
.profile-header-card .header-info {
    flex: 1;
    min-width: 200px;
}
.profile-header-card .header-info h2 {
    color: #0f172a;
    font-weight: 700;
    font-size: 1.5rem;
    margin-bottom: 0.15rem;
}
.profile-header-card .header-info .header-designation {
    color: #475569;
    font-size: 0.9rem;
    margin-bottom: 0.35rem;
}
.profile-header-card .header-info .header-location {
    color: #64748b;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 4px;
}
.profile-header-card .header-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}

/* Header Progress Section */
.profile-header-card .header-progress-section {
    padding: 0 2rem 1.5rem;
}
.completion-progress-wrap {
    background: #f1f5f9;
    border-radius: 12px;
    padding: 1rem 1.25rem;
    margin-bottom: 0.75rem;
}
.completion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}
.completion-title {
    font-size: 0.78rem;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.completion-pct {
    font-size: 1.1rem;
    font-weight: 800;
    color: #22c55e;
}
.completion-bar-track {
    height: 8px;
    background: #e2e8f0;
    border-radius: 50px;
    overflow: hidden;
}
.completion-bar-fill {
    height: 100%;
    background-color: #22c55e;
    border-radius: 50px;
    transition: width 0.8s ease;
}
.completion-reminders {
    background: #f8fafc;
    border-radius: 12px;
    padding: 0.85rem 1rem;
    border: 1px solid #e2e8f0;
}
.reminders-title {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--pf-primary);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 0.5rem;
}
.reminders-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.reminder-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    color: #475569;
    padding: 0.25rem 0;
}
.reminder-item i {
    color: var(--pf-primary);
    font-size: 0.7rem;
    flex-shrink: 0;
}

/* Quick Summary */
.quick-summary-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}
.qs-card {
    background: #fff;
    border-radius: 14px;
    padding: 1rem 1.1rem;
    border: 1px solid var(--pf-border);
    display: flex;
    align-items: center;
    gap: 12px;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.qs-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.04);
    transform: translateY(-1px);
}
.qs-card .qs-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--pf-primary-light);
    color: var(--pf-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}
.qs-card .qs-label {
    font-size: 0.68rem;
    color: var(--pf-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-weight: 500;
    line-height: 1.2;
}
.qs-card .qs-value {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--pf-text-dark);
}

/* Overview Stats */
.overview-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}
.overview-stat-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 1rem;
    border-radius: 14px;
    border: 1px solid var(--pf-border);
    background: #fff;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.overview-stat-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.04);
    transform: translateY(-1px);
}
.overview-stat-card .os-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}
.overview-stat-card .os-value {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--pf-text-dark);
    line-height: 1.2;
}
.overview-stat-card .os-label {
    font-size: 0.68rem;
    color: var(--pf-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-weight: 500;
}

/* Sidebar Layout */
.profile-layout {
    display: flex;
    gap: 24px;
    align-items: flex-start;
}
.profile-sidebar {
    width: 210px;
    flex-shrink: 0;
    position: sticky;
    top: 90px;
    background: #fff;
    border-radius: 16px;
    border: 1px solid var(--pf-border);
    overflow: hidden;
    padding: 0.5rem 0;
}
.profile-sidebar .nav-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0.65rem 1.2rem;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--pf-text-muted);
    text-decoration: none;
    border-left: 3px solid transparent;
    transition: all 0.15s ease;
}
.profile-sidebar .nav-link:hover {
    color: var(--pf-primary);
    background: var(--pf-primary-light);
}
.profile-sidebar .nav-link.active {
    color: var(--pf-primary);
    background: var(--pf-primary-light);
    border-left-color: var(--pf-primary);
    font-weight: 600;
}
.profile-sidebar .nav-link i {
    font-size: 1rem;
    width: 18px;
    text-align: center;
}

/* Section Cards */
.profile-section-card {
    background: #fff;
    border-radius: 16px;
    border: 1px solid var(--pf-border);
    overflow: hidden;
    transition: box-shadow 0.2s ease;
}
.profile-section-card:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,0.04);
}
.profile-section-card .section-title {
    padding: 1rem 1.5rem;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--pf-text-dark);
    border-bottom: 1px solid var(--pf-border);
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fafbfc;
}
.profile-section-card .section-title i {
    color: var(--pf-primary);
    font-size: 1.1rem;
}
.profile-section-card .section-title::after {
    display: none;
}
.profile-section-card .section-body {
    padding: 1.25rem 1.5rem;
}

/* Info Grid for fields */
.info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem 2rem;
}
.info-item .info-label {
    font-size: 0.72rem;
    color: var(--pf-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-weight: 500;
    margin-bottom: 2px;
}
.info-item .info-value {
    font-size: 0.92rem;
    color: var(--pf-text-dark);
    font-weight: 600;
}

/* Skill Pills in view */
.skill-view-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0.35rem 1rem;
    border-radius: 50px;
    font-size: 0.82rem;
    font-weight: 500;
    background: var(--pf-primary-light);
    color: var(--pf-primary);
    margin: 3px;
    border: 1px solid rgba(37,99,235,0.12);
}

/* Education table in view */
.edu-view-table {
    width: 100%;
    border-collapse: collapse;
}
.edu-view-table thead th {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--pf-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 0.5rem 0.75rem;
    border-bottom: 2px solid var(--pf-border);
    background: #fafbfc;
}
.edu-view-table tbody td {
    font-size: 0.85rem;
    padding: 0.65rem 0.75rem;
    border-bottom: 1px solid #f1f5f9;
    color: var(--pf-text-dark);
}
.edu-view-table tbody tr:last-child td {
    border-bottom: none;
}

/* Doc summary in view */
.doc-view-summary {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}
.doc-view-stat {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.88rem;
    color: var(--pf-text-dark);
}
.doc-view-stat i {
    font-size: 1.2rem;
}

/* Mobile nav tabs */
.profile-mobile-nav {
    display: none;
    overflow-x: auto;
    gap: 4px;
    padding: 0.5rem 0;
    background: #fff;
    border-bottom: 1px solid var(--pf-border);
    position: sticky;
    top: 0;
    z-index: 10;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
}
.profile-mobile-nav .nav-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0.5rem 1rem;
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--pf-text-muted);
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.15s ease;
    flex-shrink: 0;
}
.profile-mobile-nav .nav-link:hover {
    background: var(--pf-primary-light);
    color: var(--pf-primary);
}
.profile-mobile-nav .nav-link.active {
    background: var(--pf-primary);
    color: #fff;
}

@media (max-width: 1199.98px) {
    .overview-stats-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 991.98px) {
    .quick-summary-grid { grid-template-columns: repeat(2, 1fr); }
    .overview-stats-grid { grid-template-columns: repeat(2, 1fr); }
    .profile-sidebar { display: none; }
    .profile-mobile-nav { display: flex; }
}
@media (max-width: 575.98px) {
    .quick-summary-grid { grid-template-columns: 1fr; }
    .overview-stats-grid { grid-template-columns: 1fr; }
    .info-grid { grid-template-columns: 1fr; }
    .profile-header-card .header-content {
        padding: 1.25rem;
        flex-direction: column;
        text-align: center;
    }
    .profile-header-card .header-progress-section {
        padding: 0 1.25rem 1.25rem;
    }
    .profile-header-card .header-actions { justify-content: center; }
    .profile-header-card .header-info .header-location { justify-content: center; }
    .profile-header-card .header-avatar { width: 80px; height: 80px; }
}

/* ═══════════════════════════════════════════════
   ✅ Employer Company Profile (cp-) Styles
   ═══════════════════════════════════════════════ */

/* ── Quick Summary Stat Cards ── */
.cp-stat-card {
    background: #fff;
    border: 1px solid #eef2f7;
    border-radius: 14px;
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}
.cp-stat-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    transform: translateY(-2px);
}
.cp-stat-icon {
    width: 48px; height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}
.cp-stat-icon.teal-bg { background: rgba(13,148,136,0.1); color: #0d9488; }
.cp-stat-icon.blue-bg { background: rgba(37,99,235,0.1); color: #2563eb; }
.cp-stat-icon.green-bg { background: rgba(34,197,94,0.1); color: #22c55e; }
.cp-stat-icon.amber-bg { background: rgba(245,158,11,0.1); color: #f59e0b; }
.cp-stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.2;
}
.cp-stat-label {
    font-size: 0.78rem;
    color: #64748b;
    font-weight: 500;
}

/* ── Profile Completion Widget ── */
.cp-progress-widget {
    background: #fff;
    border: 1px solid #eef2f7;
    border-radius: 14px;
    padding: 1.5rem;
    height: 100%;
    box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}
.cp-progress-header {
    font-size: 0.85rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.cp-progress-bar-track {
    height: 8px;
    background: #e2e8f0;
    border-radius: 99px;
    overflow: hidden;
    margin-bottom: 1rem;
}
.cp-progress-bar-fill {
    height: 100%;
    border-radius: 99px;
    background: linear-gradient(90deg, #22c55e, #16a34a);
    transition: width 0.6s ease;
}
.cp-progress-pct {
    font-size: 1.25rem;
    font-weight: 700;
    color: #22c55e;
}
.cp-missing-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.cp-missing-list li {
    font-size: 0.82rem;
    color: #64748b;
    padding: 0.3rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.cp-missing-list li::before {
    content: '✗';
    color: #ef4444;
    font-weight: 700;
    font-size: 0.7rem;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: rgba(239,68,68,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* ── Verification Timeline ── */
.cp-verification-card {
    background: #fff;
    border: 1px solid #eef2f7;
    border-radius: 14px;
    padding: 1.5rem;
    height: 100%;
    box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}
.cp-timeline {
    position: relative;
    padding-left: 2rem;
}
.cp-timeline::before {
    content: '';
    position: absolute;
    left: 11px;
    top: 8px;
    bottom: 8px;
    width: 2px;
    background: #e2e8f0;
}
.cp-timeline-item {
    position: relative;
    padding-bottom: 1.25rem;
}
.cp-timeline-item:last-child { padding-bottom: 0; }
.cp-timeline-dot {
    position: absolute;
    left: -2rem;
    top: 2px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    border: 2px solid #e2e8f0;
    background: #fff;
    z-index: 1;
}
.cp-timeline-dot.verified {
    background: #22c55e;
    border-color: #22c55e;
    color: #fff;
}
.cp-timeline-dot.pending {
    background: #f59e0b;
    border-color: #f59e0b;
    color: #fff;
}
.cp-timeline-dot.missing {
    background: #f1f5f9;
    border-color: #cbd5e1;
    color: #94a3b8;
}
.cp-timeline-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: #0f172a;
}
.cp-timeline-status {
    font-size: 0.72rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 3px;
}
.cp-timeline-status.verified { color: #22c55e; }
.cp-timeline-status.pending { color: #f59e0b; }
.cp-timeline-status.missing { color: #94a3b8; }
.cp-timeline-date {
    font-size: 0.7rem;
    color: #94a3b8;
    margin-top: 1px;
}

/* ── Info Grid ── */
.cp-info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}
.cp-info-grid .cp-info-item { min-width: 0; }
.cp-info-grid .cp-info-item.full-width { grid-column: 1 / -1; }
.cp-info-label {
    font-size: 0.72rem;
    color: #64748b;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    margin-bottom: 2px;
}
.cp-info-value {
    font-size: 0.95rem;
    color: #0f172a;
    font-weight: 600;
    word-break: break-word;
}

/* ── Card header overrides for cp sections ── */
.cp-section-card .card-head.bg-soft-grad-teal::before    { background: #0d9488; }
.cp-section-card .card-head.bg-soft-grad-indigo::before  { background: #4338ca; }
.cp-section-card .card-head.bg-soft-grad-amber::before   { background: #d97706; }

/* ── Responsive ── */
@media (max-width: 1199.98px) {
    .cp-info-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 767.98px) {
    .cp-info-grid { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════
   📋 Post Demand (pd-) Styles
   ═══════════════════════════════════════════════ */

/* ── Summary Bar ── */
.pd-summary-bar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}
.pd-summary-item {
    background: #fff;
    border: 1px solid #eef2f7;
    border-radius: 12px;
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.03);
    transition: all 0.2s ease;
}
.pd-summary-item:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    transform: translateY(-1px);
}
.pd-summary-icon {
    width: 40px; height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}
.pd-summary-icon.teal-bg { background: rgba(13,148,136,0.1); color: #0d9488; }
.pd-summary-icon.indigo-bg { background: rgba(67,56,202,0.1); color: #4338ca; }
.pd-summary-icon.amber-bg { background: rgba(245,158,11,0.1); color: #f59e0b; }
.pd-summary-icon.emerald-bg { background: rgba(16,185,129,0.1); color: #10b981; }
.pd-summary-label {
    font-size: 0.7rem;
    color: #94a3b8;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    line-height: 1.2;
}
.pd-summary-value {
    font-size: 0.88rem;
    font-weight: 600;
    color: #0f172a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 160px;
}
.pd-summary-placeholder {
    color: #94a3b8;
    font-weight: 400;
    font-size: 0.82rem;
}

/* ── Section Step Badge ── */
.pd-step-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    font-size: 0.72rem;
    font-weight: 700;
    flex-shrink: 0;
}
.pd-step-badge.teal { background: rgba(13,148,136,0.12); color: #0d9488; }
.pd-step-badge.indigo { background: rgba(67,56,202,0.12); color: #4338ca; }
.pd-step-badge.amber { background: rgba(245,158,11,0.12); color: #f59e0b; }
.pd-step-badge.emerald { background: rgba(16,185,129,0.12); color: #10b981; }
.pd-step-badge.purple { background: rgba(124,58,237,0.12); color: #7c3aed; }

/* ── Category Pills ── */
.pd-category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 0.5rem;
    max-height: 200px;
    overflow-y: auto;
    padding-right: 4px;
}
.pd-category-pill {
    position: relative;
}
.pd-category-pill input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.pd-category-pill label {
    display: block;
    padding: 0.45rem 0.75rem;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 500;
    color: #64748b;
    cursor: pointer;
    transition: all 0.15s ease;
    text-align: center;
}
.pd-category-pill label:hover {
    border-color: #94a3b8;
    background: #f8fafc;
}
.pd-category-pill input:checked + label {
    border-color: #0e7490;
    background: rgba(14,116,144,0.08);
    color: #0e7490;
    font-weight: 600;
}

/* ── Gender Radio Group ── */
.pd-gender-group {
    display: flex;
    gap: 0.5rem;
}
.pd-gender-option {
    position: relative;
    flex: 1;
}
.pd-gender-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.pd-gender-option label {
    display: block;
    padding: 0.55rem 1rem;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    color: #64748b;
    cursor: pointer;
    transition: all 0.15s ease;
    text-align: center;
}
.pd-gender-option label:hover {
    border-color: #94a3b8;
    background: #f8fafc;
}
.pd-gender-option input:checked + label {
    border-color: #0e7490;
    background: rgba(14,116,144,0.08);
    color: #0e7490;
    font-weight: 600;
}

/* ── Toggle Switch ── */
.pd-toggle-group {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding-top: 0.5rem;
}
.pd-toggle {
    position: relative;
    width: 44px;
    height: 24px;
    flex-shrink: 0;
}
.pd-toggle input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.pd-toggle .slider {
    position: absolute;
    inset: 0;
    background: #cbd5e1;
    border-radius: 99px;
    cursor: pointer;
    transition: all 0.2s ease;
}
.pd-toggle .slider::before {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    left: 3px;
    bottom: 3px;
    background: #fff;
    border-radius: 50%;
    transition: all 0.2s ease;
}
.pd-toggle input:checked + .slider { background: #0e7490; }
.pd-toggle input:checked + .slider::before { transform: translateX(20px); }
.pd-toggle-label {
    font-size: 0.85rem;
    font-weight: 500;
    color: #0f172a;
}

/* ── Range Connector ── */
.pd-range-connector {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.pd-range-connector .form-control { flex: 1; }
.pd-range-sep {
    color: #94a3b8;
    font-weight: 600;
    font-size: 0.9rem;
    flex-shrink: 0;
}

/* ── Interview Date Group ── */
.pd-interview-group {
    position: relative;
}
.pd-interview-group .form-control {
    padding-left: 2.5rem;
}
.pd-interview-group .pd-date-icon {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 1rem;
    pointer-events: none;
    z-index: 5;
}

/* ── Submit Footer ── */
.pd-submit-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
    padding: 1.25rem 1.5rem;
    background: #fff;
    border: 1px solid #eef2f7;
    border-radius: 14px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.03);
    margin-bottom: 2rem;
}
.pd-submit-footer .btn { min-width: 140px; }

/* ── Card inner spacing tweaks ── */
.pd-card .card-body { padding: 1.5rem; }

/* ── Responsive ── */
@media (max-width: 991.98px) {
    .pd-summary-bar { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 575.98px) {
    .pd-summary-bar { grid-template-columns: 1fr; }
    .pd-summary-value { max-width: 100%; }
    .pd-category-grid { grid-template-columns: repeat(2, 1fr); }
    .pd-submit-footer { flex-direction: column; }
    .pd-submit-footer .btn { width: 100%; }
}

/* ═══════════════════════════════════════════════
   📊 Compact Stat Cards (stat-card-compact)
   ═══════════════════════════════════════════════ */
.stat-card-compact {
    border-radius: 14px;
    background: #fff;
    border: 1px solid #eef2f7;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
    transition: all 0.25s ease;
    padding: 1rem 0.75rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.stat-card-compact:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.1);
}
.stat-card-compact::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    border-radius: 14px 14px 0 0;
}
.stat-card-compact .stat-icon {
    width: 36px; height: 36px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    margin-bottom: 0.5rem;
}
.stat-card-compact .stat-number {
    display: block;
    font-size: 1.5rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.02em;
    line-height: 1.2;
}
.stat-card-compact .stat-label {
    display: block;
    font-size: 0.72rem;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

/* ═══════════════════════════════════════════════
   🌈 Gradient KPI Cards (stat-card-gradient)
   ═══════════════════════════════════════════════ */
.stat-card-gradient {
    border-radius: 20px;
    padding: 1.25rem 0.75rem;
    text-align: center;
    position: relative;
    overflow: hidden;
/*    box-shadow: 0 12px 30px rgba(0,0,0,0.08);*/
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    min-height: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.stat-card-gradient:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.12);
}
.stat-card-gradient::before {
    content: '';
    position: absolute;
    top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: radial-gradient(circle at 30% 20%, rgba(255,255,255,0.35) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}
.stat-card-gradient::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.05) 0%, transparent 50%);
    pointer-events: none;
    border-radius: 20px;
    z-index: 0;
}
.stat-card-gradient .stat-bg-icon {
    position: absolute;
    right: -8px;
    bottom: -8px;
    font-size: 5.5rem;
    opacity: 0.12;
    color: #fff;
    pointer-events: none;
    line-height: 1;
    z-index: 1;
}
.stat-card-gradient .stat-icon {
    width: 38px; height: 38px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    margin-bottom: 0.65rem;
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.15);
    color: #fff;
    position: relative;
    z-index: 2;
}
.stat-card-gradient .stat-number {
    display: block;
    font-size: 1.65rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.02em;
    line-height: 1.2;
    position: relative;
    z-index: 2;
    text-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.stat-card-gradient .stat-label {
    display: block;
    font-size: 0.72rem;
    font-weight: 600;
    color: rgba(255,255,255,0.9);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    z-index: 2;
    text-shadow: 0 1px 4px rgba(0,0,0,0.1);
}
.stat-card-gradient .stat-trend {
    font-size: 0.72rem;
    font-weight: 600;
    position: relative;
    z-index: 2;
    color: rgba(255,255,255,0.85);
    text-shadow: 0 1px 4px rgba(0,0,0,0.15);
    margin-top: 2px;
}

/* ═══════════════════════════════════════════════
   🌤 Greeting Chip (Admin Topbar)
   ═══════════════════════════════════════════════ */
.greeting-chip {
    background: rgba(249, 250, 251, 0.85);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 1px solid rgba(0, 0, 0, 0.04);
    border-radius: 100px;
    padding: 0.25rem 1rem;
    font-size: 0.78rem;
    font-weight: 500;
    color: #6b7280;
    box-shadow: 0 1px 4px rgba(0,0,0,0.03);
    gap: 8px;
    letter-spacing: 0.01em;
}
.greeting-chip .greeting-sep {
    color: #d1d5db;
    font-weight: 300;
}

/* ═══════════════════════════════════════════════
   🔍 Filter Panel
   ═══════════════════════════════════════════════ */
.filter-panel {
    background: rgba(13, 148, 136, 0.04);
    border: 1px solid rgba(13, 148, 136, 0.08);
    border-radius: 12px;
}

/* ═══════════════════════════════════════════════
   🔔 Notification Dropdown
   ═══════════════════════════════════════════════ */
.notif-toggle {
    background: none;
    border: none;
    padding: 0;
    color: inherit;
    cursor: pointer;
    position: relative;
}
.notif-toggle:focus-visible {
    outline: 2px solid #14b8a6;
    outline-offset: 2px;
    border-radius: 4px;
}

/* When bell is inside a .navbar-nav .nav-item, match nav-link sizing/color */
.navbar-nav .nav-item .notif-toggle {
    padding: 0.5rem 0.5rem;
    color: rgba(255,255,255,.55);
    display: flex;
    align-items: center;
    line-height: 1;
}
.navbar-nav .nav-item .notif-toggle:hover {
    color: rgba(255,255,255,.75);
}

.notif-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 380px;
    max-width: calc(100vw - 32px);
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.12), 0 4px 12px rgba(0,0,0,0.06);
    border: 1px solid rgba(0,0,0,0.04);
    z-index: 1060;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px) scale(0.97);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
    transform-origin: top right;
}
.notif-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.notif-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px 12px;
    border-bottom: 1px solid #f1f5f9;
}
.notif-title {
    font-size: 1rem;
    font-weight: 700;
    margin: 0;
    color: #0f172a;
}
.notif-mark-all-read {
    background: none;
    border: none;
    font-size: 0.75rem;
    font-weight: 600;
    color: #14b8a6;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 6px;
    transition: background 0.15s;
}
.notif-mark-all-read:hover {
    background: rgba(20, 184, 166, 0.08);
}
.notif-mark-all-read:focus-visible {
    outline: 2px solid #14b8a6;
    outline-offset: 2px;
}

.notif-body {
    max-height: 400px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #e2e8f0 transparent;
}
.notif-body::-webkit-scrollbar {
    width: 5px;
}
.notif-body::-webkit-scrollbar-thumb {
    background: #e2e8f0;
    border-radius: 10px;
}

.notif-item {
    display: flex;
    gap: 12px;
    padding: 12px 20px;
    cursor: pointer;
    transition: background 0.15s;
    border-left: 3px solid transparent;
}
.notif-item:hover {
    background: #f8fafc;
}
.notif-item-unread {
    border-left-color: #14b8a6;
    background: rgba(20, 184, 166, 0.03);
}
.notif-item-unread:hover {
    background: rgba(20, 184, 166, 0.06);
}
.notif-item .notif-icon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-size: 0.9rem;
    margin-top: 2px;
}
.notif-item .notif-content {
    flex: 1;
    min-width: 0;
}
.notif-item .notif-message {
    font-size: 0.85rem;
    color: #334155;
    margin: 0 0 2px;
    line-height: 1.4;
}
.notif-item-unread .notif-message {
    font-weight: 600;
    color: #0f172a;
}
.notif-item .notif-time {
    font-size: 0.7rem;
    color: #94a3b8;
    white-space: nowrap;
}

.notif-empty {
    text-align: center;
    padding: 32px 20px;
}
.notif-empty i {
    font-size: 2.5rem;
    color: #cbd5e1;
    display: block;
    margin-bottom: 8px;
}
.notif-empty p {
    font-size: 0.8rem;
    color: #94a3b8;
    margin: 0;
}

.notif-loading {
    text-align: center;
    padding: 32px 20px;
}
.notif-loading .spinner-border {
    color: #14b8a6;
}
.notif-loading p {
    font-size: 0.8rem;
    color: #94a3b8;
    margin: 8px 0 0;
}

.notif-footer {
    border-top: 1px solid #f1f5f9;
    padding: 10px 20px;
    text-align: center;
}
.notif-footer a {
    font-size: 0.8rem;
    font-weight: 600;
    color: #14b8a6;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 12px;
    border-radius: 6px;
    transition: background 0.15s;
}
.notif-footer a:hover {
    background: rgba(20, 184, 166, 0.08);
}
.notif-footer a:focus-visible {
    outline: 2px solid #14b8a6;
    outline-offset: 2px;
}
