/* ======================================
            BASE STYLES
======================================= */
:root {
    --primary-color: #2E659D;
    --primary-hover: #1a4a7a;
    --text-color: #333745;
    --text-light: #6c757d;
    --white: #ffffff;
    --dark: #212529;
    --light-gray: #f8f9fa;
    --border-color: #dee2e6;
    --font-main: 'Nunito', sans-serif;
    --secondary-color: #4CAF50;
    --accent-color: #FF6B6B;
    --dark-color: #2C3E50;
    --light-color: #F8F9FA;
    --gradient: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
}

body {
    font-family: var(--font-main);
    color: var(--text-color);
    line-height: 1.6;
}

/* ======================================
            HEADER & NAVIGATION
======================================= */
.header-section {
    background-color: var(--primary-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1030;
    transition: all 0.3s ease;
}

.navbar {
    padding: 0.5rem 0;
}

.site-logo {
    display: flex;
    align-items: center;
    color: var(--white);
    font-weight: 700;
    font-size: 1.5rem;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.site-logo:hover {
    opacity: 0.9;
    color: var(--white);
}

.site-logo svg {
    height: 46px;
    width: auto;
}

.navbar-nav {
    align-items: center;
}

.nav-link {
    color: rgba(255, 255, 255, 0.85) !important;
    font-weight: 600;
    padding: 0.5rem 1rem !important;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover,
.nav-link:focus {
    color: var(--white) !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 1rem;
    right: 1rem;
    height: 2px;
    background-color: var(--white);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.nav-link:hover::after {
    transform: scaleX(1);
}

.navbar-toggler {
    border: none;
    padding: 0.5rem;
    font-size: 1.25rem;
    color: var(--white);
}

.navbar-toggler:focus {
    box-shadow: none;
    outline: none;
}

/* Dropdown menu styles */
.dropdown-menu {
    border: none;
    border-radius: 0.5rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    margin-top: 0.5rem;
    padding: 0.5rem 0;
    min-width: 200px;
}

.dropdown-item {
    padding: 0.5rem 1.5rem;
    color: var(--text-color);
    transition: all 0.2s ease;
}

.dropdown-item:hover,
.dropdown-item:focus {
    background-color: rgba(46, 101, 157, 0.1);
    color: var(--primary-color);
}

.dropdown-divider {
    margin: 0.25rem 0;
    border-color: var(--border-color);
}

/* User dropdown */
.navbar .dropdown-toggle::after {
    vertical-align: middle;
    margin-left: 0.5rem;
}

/* Impersonation banner */
.impersonation-banner {
    width: 100%;
}

.impersonation-banner .alert {
    border-radius: 0;
    margin-bottom: 0;
    padding: 0.5rem 1rem;
}

/* Mobile menu styles */
@media (max-width: 1199.98px) {
    .navbar-collapse {
        padding: 1rem 0;
        background-color: var(--primary-color);
        margin-top: 0.5rem;
        border-radius: 0.25rem;
    }

    .nav-item {
        margin: 0.25rem 0;
    }

    .dropdown-menu {
        box-shadow: none;
        background-color: rgba(0, 0, 0, 0.1);
        margin-left: 1rem;
    }

    .dropdown-item {
        color: rgba(255, 255, 255, 0.85);
        padding-left: 2rem;
    }

    .dropdown-item:hover {
        color: var(--white);
        background-color: rgba(255, 255, 255, 0.1);
    }
}

/* Custom CSS for Navbar Active Link in Dark Theme */
.navbar-dark .navbar-nav .nav-item .nav-link.active {
    background-color: var(--bs-primary); /* Or a specific color like #0d6efd (Bootstrap blue) */
    color: var(--bs-white); /* Ensures text is white on the primary background */
    border-radius: 0.25rem; /* Slightly rounded corners */
    padding-left: 1rem; /* Adjust padding as needed */
    padding-right: 1rem; /* Adjust padding as needed */
}

/* Optional: Adjust hover state for better visual feedback */
.navbar-dark .navbar-nav .nav-item .nav-link:hover:not(.active) {
    background-color: rgba(255, 255, 255, 0.1); /* Slightly visible hover on dark background */
    border-radius: 0.25rem;
}

/* Fix Bootstrap tabs in dark mode */
.nav-tabs .nav-link {
    background-color: transparent !important; /* <– Reset background */
    color: rgba(255, 255, 255, 0.85);
    border: 1px solid transparent;
    transition: background-color 0.3s ease;
}

.nav-tabs .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.05); /* Optional hover effect */
    color: #fff;
}

.nav-tabs .nav-link.active {
    background-color: #444 !important;
    color: #fff;
    border-color: #666 #666 #222;
}


/* ======================================
            FOOTER STYLES
======================================= */
.footer-section {
    background-color: var(--dark);
    color: var(--white);
    padding: 3rem 0;
}

.footer-links {
    list-style: none;
    padding-left: 0;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--white);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    color: var(--white);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

.copyright {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
    margin-top: 2rem;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.875rem;
}

/* ======================================
            UTILITY CLASSES
======================================= */
.text-primary {
    color: var(--primary-color) !important;
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* ======================================
            RESPONSIVE ADJUSTMENTS
======================================= */
@media (min-width: 1200px) {
    .navbar-expand-xl .navbar-nav .nav-link {
        padding-right: 1rem;
        padding-left: 1rem;
    }
}


/* HOMEPAGE */

.hero-section {
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('/images/homepage/dots-pattern.png') repeat;
    opacity: 0.1;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.cta-button {
    text-align: center;
    margin-top: 20px;
}

.cta-button a {
    font-size: 1.5em;
    padding: 15px 30px;
}

.hero-image {
    position: relative;
    z-index: 2;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
    100% {
        transform: translateY(0px);
    }
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 50px;
    height: 4px;
    background: var(--primary-color);
}

.feature-card {
    background: white;
    border-radius: 15px;
    padding: 2.5rem;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.feature-icon img {
    width: 100px;
    height: 100px;
}

.feature-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.how-it-works {
    background: url('/images/homepage/wave-bg.svg') no-repeat;
    background-size: cover;
    padding: 6rem 0;
}

.step-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    text-align: center;
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
}

.step-card:hover {
    transform: scale(1.05);
}

.step-number {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 1.5rem;
}

.step-image {
    max-width: 100%;
    height: auto;
    margin-bottom: 1.5rem;
    border-radius: 10px;
}

.testimonial-section {
    background: var(--light-color);
    padding: 6rem 0;
}

.testimonial-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.testimonial-text {
    font-size: 1.1rem;
    font-style: italic;
    margin-bottom: 1.5rem;
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.testimonial-author img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin-right: 1rem;
}

.author-name {
    font-weight: 700;
    margin-bottom: 0.2rem;
}

.author-title {
    color: #6c757d;
    font-size: 0.9rem;
}

.pricing-section {
    padding: 6rem 0;
}

.pricing-card {
    background: white;
    border-radius: 15px;
    padding: 2.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.pricing-card:hover {
    transform: translateY(-10px);
}

.pricing-card.featured {
    border: 2px solid var(--primary-color);
    position: relative;
}

.pricing-card.featured::before {
    content: 'Most Popular';
    position: absolute;
    top: -12px;
    right: 20px;
    background: var(--primary-color);
    color: white;
    padding: 0.3rem 1rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
}

.pricing-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.pricing-price {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.pricing-features {
    margin-bottom: 2rem;
}

.pricing-features li {
    margin-bottom: 0.8rem;
    position: relative;
    padding-left: 1.5rem;
}

.pricing-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--secondary-color);
    font-weight: 700;
}

.cta-section {
    background: var(--gradient);
    color: white;
    padding: 6rem 0;
    text-align: center;
}

.cta-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.cta-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

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

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


/* CV Tailoring Page */

.cta-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0) 70%);
    animation: pulse 8s infinite linear;
    z-index: 1;
}

.cta-button {
    background: white;
    color: #764ba2;
    font-weight: 600;
    border-radius: 50px;
    border: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    color: #5a3a8a;
}

@keyframes pulse {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.bg-primary-opacity-10 {
    background-color: rgba(var(--bs-primary-rgb), 0.1) !important;
}

.number-circle {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin: 0 auto 1rem;
}

.number-circle span {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.75rem;
}

/* CV Dashboard */
.border-dashed {
    border: 2px dashed #dee2e6;
}

.cv-preview {
    background-color: #f8f9fa;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
}

.card-header {
    font-weight: 600;
}

.list-group-item {
    border: none;
    padding: 1rem;
}

.list-group-item:hover {
    background-color: #f8f9fa;
}

/* Job Application Dashboard */
.job-details .fw-semibold {
    color: #495057;
    font-weight: 600;
}

.accordion-button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-weight: 600;
    border: none;
}

.accordion-button:not(.collapsed) {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: none;
}

.accordion-button:focus {
    box-shadow: none;
    border: none;
}

.assessment-result {
    border-left: 4px solid #28a745 !important;
}

.assessment-result h6 {
    font-weight: 600;
}

.job-description-content {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
}

.generate-button {
    transition: all 0.3s ease;
}

.generate-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Cover Letter Dashboard */
.cover-letter-preview {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-left: 4px solid #007bff;
}
.cover-letter-content {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.7;
}
