/* ===============================
   RESUMEIQ AI - GLOBAL
================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-primary: #050816;
    --bg-secondary: #0b1023;
    --card-bg: rgba(15, 23, 42, 0.72);

    --primary: #6366f1;
    --secondary: #8b5cf6;
    --cyan: #06b6d4;

    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;

    --border: rgba(255, 255, 255, 0.08);
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    background: var(--bg-primary);
    color: var(--text-primary);
    font-family: "Inter", sans-serif;
    overflow-x: hidden;
}

a {
    text-decoration: none;
}

.page-content {
    min-height: calc(100vh - 160px);
    position: relative;
    z-index: 2;
}


/* ===============================
   AI BACKGROUND
================================ */

.ai-background {
    position: fixed;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.gradient-orb {
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    filter: blur(130px);
    opacity: 0.22;
}

.orb-one {
    background: var(--primary);
    top: -180px;
    left: -150px;
}

.orb-two {
    background: var(--cyan);
    right: -180px;
    bottom: -180px;
}


/* ===============================
   NAVBAR
================================ */

.resume-navbar {
    position: relative;
    z-index: 100;
    padding: 18px 0;
    background: rgba(5, 8, 22, 0.82);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}

.resume-brand {
    color: white !important;
    font-size: 1.5rem;
    font-weight: 800;
}

.resume-brand span {
    color: #818cf8;
}

.brand-icon {
    display: inline-flex;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    margin-right: 8px;
    border-radius: 12px;
    background: linear-gradient(
        135deg,
        var(--primary),
        var(--secondary)
    );
}

.brand-icon i {
    color: white;
}

.resume-navbar .nav-link {
    color: var(--text-secondary);
    font-weight: 500;
    padding: 10px 15px !important;
    transition: 0.3s ease;
}

.resume-navbar .nav-link:hover {
    color: white;
}

.recruiter-btn,
.logout-btn {
    padding: 10px 18px;
    border-radius: 10px;
    color: white;
    font-weight: 600;
}

.recruiter-btn {
    background: linear-gradient(
        135deg,
        var(--primary),
        var(--secondary)
    );
}

.recruiter-btn:hover {
    color: white;
    transform: translateY(-2px);
}

.logout-btn {
    border: 1px solid rgba(239, 68, 68, 0.5);
    color: #f87171;
}

.logout-btn:hover {
    background: #ef4444;
    color: white;
}


/* ===============================
   HERO
================================ */

.hero {
    min-height: 78vh;
    display: flex;
    align-items: center;
    padding: 100px 20px;
    background: transparent;
    color: white;
    text-align: center;
}

.hero h1 {
    max-width: 950px;
    margin: auto;
    font-size: clamp(3rem, 7vw, 5.8rem);
    font-weight: 800;
    letter-spacing: -4px;
    line-height: 1.05;
}

.hero p {
    max-width: 720px;
    margin: 30px auto 0;
    color: var(--text-secondary);
    font-size: 1.15rem;
    line-height: 1.8;
}

.hero .btn-primary {
    border: none;
    padding: 14px 28px;
    border-radius: 12px;
    font-weight: 600;
    background: linear-gradient(
        135deg,
        var(--primary),
        var(--secondary)
    );
    box-shadow: 0 15px 40px rgba(99, 102, 241, 0.3);
}

.hero .btn-primary:hover {
    transform: translateY(-3px);
}


/* ===============================
   CARDS
================================ */

.card,
.feature-card {
    background: var(--card-bg);
    color: var(--text-primary);
    border: 1px solid var(--border) !important;
    border-radius: 18px;
    backdrop-filter: blur(18px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}

.feature-card {
    height: 100%;
    padding: 38px 30px;
    text-align: center;
    transition: 0.35s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: rgba(99, 102, 241, 0.5) !important;
}

.feature-card h3 {
    margin-bottom: 15px;
    font-weight: 700;
}

.feature-card p {
    color: var(--text-secondary);
}


/* ===============================
   FEATURES
================================ */

.features {
    padding: 80px 0 120px;
}


/* ===============================
   FORMS
================================ */

.form-control,
.form-select,
textarea {
    color: white !important;
    background: rgba(15, 23, 42, 0.8) !important;
    border: 1px solid var(--border) !important;
    border-radius: 12px !important;
}

.form-control:focus,
.form-select:focus,
textarea:focus {
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.15) !important;
}

.form-control::placeholder {
    color: #64748b;
}

.form-label {
    color: #cbd5e1;
}


/* ===============================
   TABLE
================================ */

.table {
    --bs-table-bg: transparent;
    --bs-table-color: #e2e8f0;
    --bs-table-hover-color: white;
    --bs-table-hover-bg: rgba(99, 102, 241, 0.08);
}

.table-dark {
    --bs-table-bg: rgba(15, 23, 42, 0.9);
}

.table td,
.table th {
    border-color: var(--border);
    padding: 16px;
}


/* ===============================
   TEXT HELPERS
================================ */

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

.text-primary {
    color: #818cf8 !important;
}

.text-success {
    color: #34d399 !important;
}

.text-danger {
    color: #fb7185 !important;
}

.text-warning {
    color: #fbbf24 !important;
}


/* ===============================
   FOOTER
================================ */

.resume-footer {
    position: relative;
    z-index: 2;
    margin-top: 60px;
    padding: 30px 0;
    border-top: 1px solid var(--border);
    background: rgba(5, 8, 22, 0.7);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.footer-brand {
    font-weight: 700;
}

.footer-brand i {
    color: #818cf8;
}

.footer-text,
.footer-copy {
    color: var(--text-secondary);
    font-size: 0.9rem;
}


/* ===============================
   RESPONSIVE
================================ */

@media (max-width: 768px) {

    .hero {
        min-height: auto;
        padding: 90px 20px;
    }

    .hero h1 {
        letter-spacing: -2px;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .resume-navbar .navbar-collapse {
        padding-top: 20px;
    }

}
/* ===============================
   RESUME UPLOAD
================================ */

.resume-upload-box {
    padding: 45px 30px;
    text-align: center;
    border: 2px dashed rgba(99, 102, 241, 0.35);
    border-radius: 18px;
    background: rgba(99, 102, 241, 0.04);
    transition: 0.3s ease;
}

.resume-upload-box:hover {
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.08);
}

.upload-icon {
    font-size: 4rem;
    color: #818cf8;
}

#analyzeButton {
    padding: 15px;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    background: linear-gradient(
        135deg,
        var(--primary),
        var(--secondary)
    );
}

#analyzeButton:hover {
    transform: translateY(-2px);
}
/* ===============================
   ANALYSIS DASHBOARD
================================ */

.score-card {
    transition: 0.35s ease;
}

.score-card:hover {
    transform: translateY(-6px);
}

.score-icon {
    width: 65px;
    height: 65px;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    font-size: 1.8rem;
    color: #818cf8;
    background: rgba(99, 102, 241, 0.12);
}

.success-icon {
    color: #34d399;
    background: rgba(52, 211, 153, 0.12);
}

.resume-progress {
    height: 14px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.08);
}

.resume-progress .progress-bar {
    width: 0;
    border-radius: 20px;
    background: linear-gradient(
        90deg,
        #6366f1,
        #34d399
    );
    transition: width 1.5s ease;
}

.skill-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.skill-badge {
    padding: 9px 15px;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 600;
}

.matched-skill {
    color: #6ee7b7;
    background: rgba(52, 211, 153, 0.12);
    border: 1px solid rgba(52, 211, 153, 0.25);
}

.missing-skill {
    color: #fda4af;
    background: rgba(251, 113, 133, 0.12);
    border: 1px solid rgba(251, 113, 133, 0.25);
}

.chart-container {
    position: relative;
    height: 300px;
}

.suggestion-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.suggestion-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 16px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
}

.suggestion-number {
    min-width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    color: #fbbf24;
    font-weight: 700;
    background: rgba(251, 191, 36, 0.12);
}

.resume-text {
    line-height: 1.7;
}

.report-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 40px;
}
/* ===============================
   RECRUITER DASHBOARD
================================ */

.recruiter-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.03);
}

.recruiter-avatar,
.candidate-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: white;
    background: linear-gradient(
        135deg,
        var(--primary),
        var(--secondary)
    );
}

.recruiter-avatar {
    width: 45px;
    height: 45px;
    border-radius: 12px;
}

.recruiter-stat-card {
    transition: 0.3s ease;
}

.recruiter-stat-card:hover {
    transform: translateY(-5px);
}

.stat-icon {
    width: 55px;
    height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
    font-size: 1.5rem;
}

.primary-stat {
    color: #818cf8;
    background: rgba(99, 102, 241, 0.12);
}

.success-stat {
    color: #34d399;
    background: rgba(52, 211, 153, 0.12);
}

.warning-stat {
    color: #fbbf24;
    background: rgba(251, 191, 36, 0.12);
}

.danger-stat {
    color: #fb7185;
    background: rgba(251, 113, 133, 0.12);
}

.recruiter-search-icon {
    color: #818cf8;
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid var(--border);
}

.candidate-table-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding: 25px;
    border-bottom: 1px solid var(--border);
}

.candidate-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.candidate-avatar {
    width: 42px;
    height: 42px;
    border-radius: 12px;
}

.score-pill {
    display: inline-block;
    min-width: 65px;
    padding: 7px 10px;
    text-align: center;
    border-radius: 9px;
    font-weight: 700;
}

.ats-pill {
    color: #34d399;
    background: rgba(52, 211, 153, 0.12);
}

.match-pill {
    color: #818cf8;
    background: rgba(99, 102, 241, 0.12);
}

.candidate-skills {
    max-width: 260px;
}

.mini-skill {
    display: inline-block;
    margin: 2px;
    padding: 5px 8px;
    border-radius: 7px;
    color: #c7d2fe;
    font-size: 0.75rem;
    background: rgba(99, 102, 241, 0.12);
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 10px;
    border-radius: 9px;
    font-size: 0.8rem;
    font-weight: 600;
}

.status-shortlisted {
    color: #6ee7b7;
    background: rgba(52, 211, 153, 0.12);
}

.status-rejected {
    color: #fda4af;
    background: rgba(251, 113, 133, 0.12);
}

.status-pending {
    color: #fde68a;
    background: rgba(251, 191, 36, 0.12);
}

.candidate-actions {
    display: flex;
    gap: 7px;
}

.action-btn {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    transition: 0.25s ease;
}

.view-action {
    color: #818cf8;
    background: rgba(99, 102, 241, 0.12);
}

.shortlist-action {
    color: #34d399;
    background: rgba(52, 211, 153, 0.12);
}

.reject-action {
    color: #fb7185;
    background: rgba(251, 113, 133, 0.12);
}

.action-btn:hover {
    color: white;
    transform: translateY(-2px);
}

.empty-candidates {
    padding: 70px 20px;
    text-align: center;
}

.empty-candidates i {
    font-size: 3rem;
    color: #64748b;
}

@media (max-width: 768px) {

    .candidate-table-header {
        align-items: flex-start;
        flex-direction: column;
    }

}
/* ===============================
   CANDIDATE DETAILS
================================ */

.candidate-profile-header {
    display: flex;
    align-items: center;
    gap: 18px;
}

.candidate-large-avatar {
    min-width: 75px;
    width: 75px;
    height: 75px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    color: white;
    font-size: 2rem;
    font-weight: 800;
    background: linear-gradient(
        135deg,
        var(--primary),
        var(--secondary)
    );
    box-shadow: 0 15px 35px rgba(99, 102, 241, 0.25);
}

.candidate-score-card {
    transition: 0.3s ease;
}

.candidate-score-card:hover {
    transform: translateY(-5px);
}

.ranking-icon {
    color: #fbbf24;
    background: rgba(251, 191, 36, 0.12);
}

.candidate-divider {
    margin: 25px 0;
    border-color: var(--border);
}

@media (max-width: 576px) {

    .candidate-profile-header {
        align-items: flex-start;
    }

    .candidate-large-avatar {
        min-width: 60px;
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }

}
/* ===============================
   RECRUITER LOGIN
================================ */

.login-section {
    min-height: calc(100vh - 170px);
    display: flex;
    align-items: center;
    padding: 70px 0;
}

.login-card {
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
}

.login-icon {
    width: 75px;
    height: 75px;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 22px;
    color: white;
    font-size: 2rem;
    background: linear-gradient(
        135deg,
        var(--primary),
        var(--secondary)
    );
    box-shadow: 0 15px 40px rgba(99, 102, 241, 0.3);
}

.login-input-icon {
    color: #818cf8;
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid var(--border);
    border-right: none;
}

.password-toggle {
    color: #94a3b8;
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid var(--border);
    border-left: none;
}

.password-toggle:hover {
    color: white;
    background: rgba(99, 102, 241, 0.15);
}

.login-button {
    padding: 14px;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    background: linear-gradient(
        135deg,
        var(--primary),
        var(--secondary)
    );
}

.login-error {
    color: #fda4af;
    background: rgba(251, 113, 133, 0.1);
    border: 1px solid rgba(251, 113, 133, 0.25);
    border-radius: 12px;
}