/* Global Overrides */
body {
    background-color: #f8faff;
    font-family: 'Inter', sans-serif;
    color: #4a5568;
    line-height: 1.6;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    color: #1a202c;
    letter-spacing: -0.02em;
}

/* Card Styling */
/* Card Styling */
.card {
    border: none;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 24px;
    background-color: #ffffff;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.card-title {
    color: #2d3748;
    border-bottom: 1px solid #edf2f7;
    padding-bottom: 15px;
    margin-bottom: 20px;
    font-weight: 600;
}

/* Sidebar Navigation */
.nav-pills .nav-link {
    border-radius: 8px;
    color: #495057;
    font-weight: 500;
    padding: 12px 20px;
    margin-bottom: 8px;
    transition: all 0.3s ease;
}

.nav-pills .nav-link i {
    width: 25px;
    /* Fixed width for icons alignment */
    text-align: center;
    margin-right: 10px;
    color: #adb5bd;
}

.nav-pills .nav-link:hover {
    background-color: #e9ecef;
    color: #212529;
    transform: translateX(5px);
}

.nav-pills .nav-link:hover i {
    color: #007bff;
}

.nav-pills .nav-link.active {
    background-color: #007bff;
    color: #fff;
    box-shadow: 0 4px 6px rgba(0, 123, 255, 0.3);
}

.nav-pills .nav-link.active i {
    color: #fff;
}

/* Forms */
.form-control {
    border-radius: 8px;
    border: 1px solid #ced4da;
    padding: 10px 15px;
    height: auto;
    /* Allow auto height for comfort */
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-control:focus {
    border-color: #80bdff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, .25);
}

/* Buttons */
.btn {
    border-radius: 10px;
    font-weight: 600;
    padding: 12px 24px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: capitalize;
    letter-spacing: 0.3px;
}

.btn-primary {
    background: linear-gradient(135deg, #4f46e5 0%, #3730a3 100%);
    border: none;
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.35);
}

.btn-primary:hover,
.btn-primary:focus {
    background: linear-gradient(135deg, #4338ca 0%, #312e81 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(79, 70, 229, 0.45);
}

.btn-danger {
    background: linear-gradient(135deg, #ef4444 0%, #b91c1c 100%);
    border: none;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.35);
}

.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(239, 68, 68, 0.45);
}

/* Profile Picture Section */
#profile-preview {
    border: 3px solid #fff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
}

#profile-preview:hover {
    transform: scale(1.05);
}

#remove-profile-pic {
    cursor: pointer;
    transition: all 0.2s;
}

#remove-profile-pic:hover {
    transform: scale(1.1) rotate(90deg);
}

/* Notifications */
#notification-area {
    width: 350px;
}

.alert {
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border: none;
}

/* Auth Pages */
.auth-wrapper {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.auth-card {
    width: 100%;
    max-width: 450px;
    border: none;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.auth-card .card-header {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
    text-align: center;
    padding: 25px 20px;
    border: none;
}

.auth-card .card-header h4 {
    color: white;
    font-weight: 700;
    letter-spacing: 1px;
}

.auth-card .card-body {
    padding: 40px 30px;
}

.auth-card .form-group label {
    font-weight: 600;
    color: #495057;
    margin-bottom: 8px;
}

.auth-card .form-control {
    padding: 12px 15px;
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
}

.auth-card .form-control:focus {
    background-color: #fff;
    border-color: #007bff;
}

.input-group-text {
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-left: none;
    cursor: pointer;
    color: #adb5bd;
}

.input-group-text:hover {
    color: #495057;
}

.auth-footer {
    text-align: center;
    margin-top: 20px;
    font-size: 0.95rem;
    color: #6c757d;
}

.auth-footer a {
    color: #007bff;
    font-weight: 600;
    text-decoration: none;
}


/* Navbar Customizations */
/* Navbar Customizations */
.navbar-custom {
    background: #ffffff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    padding: 15px 0;
    z-index: 1030;
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.95);
}

.navbar-custom .navbar-brand {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 1.6rem;
    letter-spacing: -0.5px;
    color: #1a202c !important;
    text-transform: none;
}

.navbar-custom .nav-link {
    font-weight: 500;
    color: #4a5568 !important;
    margin-left: 10px;
    transition: all 0.3s ease;
    border-radius: 8px;
    padding: 8px 18px !important;
}

.navbar-custom .nav-link:hover {
    color: #4f46e5 !important;
    background-color: rgba(79, 70, 229, 0.05);
    transform: translateY(-1px);
}

.navbar-custom .nav-item.active .nav-link {
    color: #4f46e5 !important;
    background-color: rgba(79, 70, 229, 0.1);
    font-weight: 600;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3e%3cpath stroke='rgba(0, 0, 0, 0.5)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

/* Footer Customizations */
.footer-custom {
    background-color: #1a1a2e;
    color: #b0b0c0;
    padding: 60px 0 30px;
    margin-top: 60px;
    font-size: 0.95rem;
}

.footer-custom h5 {
    color: #fff;
    font-weight: 700;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.footer-custom h5::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 3px;
    background-color: #007bff;
    border-radius: 2px;
}

.footer-custom ul li {
    margin-bottom: 12px;
}

.footer-custom a {
    color: #b0b0c0;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-custom a:hover {
    color: #fff;
}

.footer-custom ul a:hover {
    padding-left: 5px;
}

.footer-socials a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-radius: 50%;
    margin-right: 10px;
    transition: all 0.3s ease;
}

.footer-socials a:hover {
    background-color: #007bff;
    transform: translateY(-3px);
}


/* Landing Page Styles */

/* Hero Section */
.hero-section {
    background: radial-gradient(circle at 10% 20%, rgb(239, 246, 255) 0%, rgb(255, 255, 255) 90%);

    position: relative;
    overflow: hidden;
    margin-bottom: 80px;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(79, 70, 229, 0.05) 0%, rgba(255, 255, 255, 0) 70%);
    border-radius: 50%;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-content h1 {
    font-size: 4rem;
    font-weight: 800;
    color: #1a202c;
    margin-bottom: 24px;
    line-height: 1.1;
    letter-spacing: -0.03em;
}

.hero-content p {
    font-size: 1.35rem;
    color: #4a5568;
    margin-bottom: 40px;
    font-weight: 400;
    max-width: 90%;
}

.hero-btns .btn {
    padding: 16px 40px;
    font-size: 1.15rem;
    border-radius: 12px;
    margin-right: 20px;
    box-shadow: 0 10px 25px rgba(79, 70, 229, 0.2);
}

.hero-image {
    position: relative;
    z-index: 1;
}

.hero-image img {
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.1));
    animation: float 6s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }
}

/* Features Section */
.section-title {
    text-align: center;
    margin-bottom: 80px;
}

.section-title h2 {
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(135deg, #1a202c 0%, #4a5568 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 20px;
}

.section-title p {
    color: #718096;
    font-size: 1.25rem;
    max-width: 600px;
    margin: 0 auto;
}

.feature-box {
    background: #ffffff;
    padding: 48px 32px;
    border-radius: 24px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(226, 232, 240, 0.8);
    height: 100%;
    position: relative;
    overflow: hidden;
}

.feature-box:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    border-color: rgba(79, 70, 229, 0.1);
}

.feature-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #4f46e5, #818cf8);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.feature-box:hover::before {
    opacity: 1;
}

.feature-icon {
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, #e0e7ff 0%, #c7d2fe 100%);
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 32px;
    color: #4f46e5;
    font-size: 1.75rem;
    transition: transform 0.3s ease;
}

.feature-box:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
}

.feature-box h4 {
    font-weight: 700;
    margin-bottom: 16px;
    color: #2d3748;
    font-size: 1.5rem;
}

.feature-box p {
    color: #718096;
    line-height: 1.7;
    font-size: 1.05rem;
}

/* How It Works */
.step-card {
    position: relative;
    padding: 20px;
    text-align: center;
}

.step-number {
    width: 50px;
    height: 50px;
    background: #2c3e50;
    color: #fff;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 20px;
}

.step-card h4 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 10px;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, #4f46e5 0%, #312e81 100%);
    color: #fff;
    padding: 100px 0;
    border-radius: 30px;
    text-align: center;
    margin-top: 100px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(79, 70, 229, 0.25);
}

.cta-section::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0) 70%);
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.cta-section h2 {
    font-size: 2.75rem;
    font-weight: 800;
    margin-bottom: 24px;
    color: #ffffff;
}

.cta-section .lead {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    margin: 0 auto 40px;
}

.cta-section .btn {
    background: #fff;
    color: #4f46e5;
    padding: 18px 48px;
    font-weight: 700;
    font-size: 1.15rem;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.cta-section .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 35px rgba(0, 0, 0, 0.15);
    background: #ffffff;
}


/* Builder Page Styles */
/* Builder Page Styles */
.template-card-label {
    cursor: pointer;
    position: relative;
    display: block;
    /* Ensure label covers area */
}

.template-card {
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 20px 15px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    background: #fff;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.template-card:hover {
    border-color: #b3d7ff;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.template-radio:checked+.template-card {
    border-color: #007bff;
    background-color: #f0f7ff;
    box-shadow: 0 8px 20px rgba(0, 123, 255, 0.15);
    transform: translateY(-2px);
}

/* Checkmark Badge */
.template-radio:checked+.template-card::before {
    content: '\f00c';
    /* FontAwesome check */
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    top: 10px;
    right: 10px;
    background: #007bff;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    animation: popIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 10;
}

@keyframes popIn {
    0% {
        transform: scale(0);
    }

    100% {
        transform: scale(1);
    }
}

/* Hide Default Radio */
.template-radio {
    display: none;
}

.template-card .icon-box {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: #6c757d;
    transition: color 0.2s;
}

.template-radio:checked+.template-card .icon-box {
    color: #007bff;
}

.section-toggle-card {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 15px 20px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    transition: background 0.2s;
    position: relative;
    /* For centering the switch */
    min-height: 60px;
}

.section-toggle-card:hover {
    background: #f8f9fa;
}

.section-toggle-card span {
    font-weight: 700;
    color: #495057;
    margin-right: auto;
    /* Push content to start */
    z-index: 2;
}

.section-toggle-card .custom-switch {
    /* Center vertically */
    transform: translate(-50%, -50%);
    /* Adjust for both axes */
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Premium Toggle Switch */
.custom-switch-lg {
    padding-left: 3.25rem;
    min-height: 2rem;
}

.custom-switch-lg .custom-control-label::before {
    height: 2rem;
    width: 3.5rem;
    border-radius: 2rem;
    background: #e9ecef;
    border: 1px solid #dee2e6;
    top: 0;
    left: -3.25rem;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.custom-switch-lg .custom-control-input:checked~.custom-control-label::before {
    background-color: #007bff;
    border-color: #007bff;
}

.custom-switch-lg .custom-control-label::after {
    height: 1.6rem;
    width: 1.6rem;
    border-radius: 50%;
    top: 0.2rem;
    left: calc(-3.25rem + 0.2rem);
    background: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s cubic-bezier(0.5, 1.6, 0.4, 0.7);
    /* Pop effect */
}

.custom-switch-lg .custom-control-input:checked~.custom-control-label::after {
    transform: translateX(1.5rem);
}

.custom-switch-lg .custom-control-input:focus~.custom-control-label::before {
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}


/* Dashboard Styles */
.dashboard-banner {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 40px;
    border-radius: 15px;
    margin-bottom: 30px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.dashboard-banner h2 {
    font-weight: 700;
}

.stat-card {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border-left: 5px solid #007bff;
    height: 100%;
}

.stat-card h3 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 5px;
    color: #2c3e50;
}

.stat-card p {
    color: #7f8fa6;
    margin-bottom: 0;
    font-weight: 500;
}

.action-card {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    height: 100%;
}

.action-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.action-card .card-body {
    padding: 30px;
    text-align: center;
}

.action-card i {
    font-size: 3rem;
    margin-bottom: 20px;
    color: #007bff;
}

.action-card h5 {
    font-weight: 700;
    margin-bottom: 10px;
}


/* History Page Styles */
.resume-history-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
    position: relative;
    height: 100%;
}

.resume-history-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    border-color: #007bff;
}

.history-card-header {
    background: #f8f9fa;
    padding: 20px;
    text-align: center;
    border-bottom: 1px solid #e9ecef;
}

.history-card-header i {
    color: #6c757d;
    transition: color 0.3s;
}

.resume-history-card:hover .history-card-header i {
    color: #007bff;
}

.history-card-body {
    padding: 20px;
}

.history-date {
    font-size: 0.85rem;
    color: #aeaeae;
    margin-bottom: 15px;
    display: block;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.empty-state i {
    color: #dee2e6;
    margin-bottom: 20px;
}

/* Premium Logout Modal */
.modal-confirm .modal-content {
    border: none;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.modal-confirm .modal-header {
    border-bottom: none;
    position: relative;
    justify-content: center;
    padding-top: 30px;
}

.modal-confirm .icon-box {
    width: 80px;
    height: 80px;
    margin: 0 auto;
    border-radius: 50%;
    z-index: 9;
    text-align: center;
    border: 3px solid #f15e5e;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulse-red 2s infinite;
}

.modal-confirm .icon-box i {
    color: #f15e5e;
    font-size: 36px;
}

.modal-confirm .modal-body {
    text-align: center;
    padding-top: 10px;
}

.modal-confirm h4 {
    text-align: center;
    font-size: 26px;
    margin: 15px 0 10px;
    font-weight: 700;
    color: #333;
}

.modal-confirm .modal-body p {
    color: #666;
    font-size: 16px;
}

.modal-confirm .btn {
    border-radius: 50px;
    padding: 10px 30px;
    font-weight: 600;
    min-width: 120px;
}

.modal-confirm .btn-secondary {
    background: #e0e0e0;
    border: none;
    color: #333;
}

.modal-confirm .btn-secondary:hover {
    background: #d0d0d0;
}

.modal-confirm .btn-danger {
    background: #f15e5e;
    border: none;
    box-shadow: 0 4px 15px rgba(241, 94, 94, 0.4);
}

.modal-confirm .btn-danger:hover {
    background: #ee3e3e;
    box-shadow: 0 6px 20px rgba(241, 94, 94, 0.6);
    transform: translateY(-2px);
}

@keyframes pulse-red {
    0% {
        box-shadow: 0 0 0 0 rgba(241, 94, 94, 0.7);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(241, 94, 94, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(241, 94, 94, 0);
    }
}