/* ===== CSS Variables - Mc'Harv Techlabs Brand ===== */
:root {
    /* Brand Colors - Mc'Harv Techlabs */
    --primary-color: #D4A032;
    --primary-hover: #F0BE56;
    --primary-light: #FFF0CC;
    --secondary-color: #142848;
    --accent-color: #F0BE56;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --dark-color: #060D1A;
    --text-color: #B8C5D6;
    --text-light: #8A99B0;
    --border-color: #203554;
    --bg-color: #0C1E35;
    --white: #F4F1EA;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -1px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.4), 0 4px 6px -2px rgba(0, 0, 0, 0.2);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.4), 0 10px 10px -5px rgba(0, 0, 0, 0.2);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Mc'Harv Techlabs Glossy Effects */
    --glass-bg: rgba(20, 40, 72, 0.9);
    --glass-border: rgba(212, 160, 50, 0.3);
    --glossy-gradient: linear-gradient(135deg, #D4A032 0%, #F0BE56 50%, #D4A032 100%);
    --icon-gradient: linear-gradient(135deg, #D4A032 0%, #F0BE56 100%);
    --brand-gradient: linear-gradient(135deg, #060D1A 0%, #142848 50%, #D4A032 100%);
}

/* ===== Reset & Base Styles ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Barlow', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #060D1A 0%, #0C1E35 30%, #142848 70%, #1A3258 100%);
    background-attachment: fixed;
    color: var(--text-color);
    line-height: 1.6;
    min-height: 100vh;
}

/* ===== App Container ===== */
.app-container {
    max-width: 100%;
    margin: 0 auto;
    padding: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* ===== Header with Glossy Effect ===== */
.header {
    text-align: center;
    padding: 45px 25px;
    background: linear-gradient(135deg, rgba(20, 40, 72, 0.95) 0%, rgba(26, 50, 88, 0.95) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: var(--radius-lg);
    color: var(--white);
    margin-bottom: 30px;
    box-shadow: 
        0 8px 32px rgba(212, 160, 50, 0.2),
        inset 0 1px 0 rgba(212, 160, 50, 0.2);
    border: 1px solid rgba(212, 160, 50, 0.3);
    position: relative;
    overflow: hidden;
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(180deg, rgba(255,255,255,0.15) 0%, rgba(255,255,255,0) 100%);
    pointer-events: none;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 12px;
    position: relative;
    z-index: 1;
    flex-wrap: wrap;
}

/* Mc'Harv Techlabs Brand Logo */
.brand-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1;
    margin-right: 15px;
}

.brand-mc {
    font-size: 1.6rem;
    font-weight: 800;
    color: #00d4ff;
    text-shadow: 0 0 20px rgba(0, 212, 255, 0.6);
    letter-spacing: 2px;
}

.brand-tech {
    font-size: 0.9rem;
    font-weight: 600;
    color: #ffffff;
    letter-spacing: 4px;
    text-transform: uppercase;
    opacity: 0.9;
}

.logo i {
    font-size: 2.8rem;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
    animation: float 3s ease-in-out infinite;
}

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

.logo h1 {
    font-size: 2rem;
    font-weight: 700;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    letter-spacing: -0.5px;
    border-left: 2px solid rgba(255,255,255,0.3);
    padding-left: 15px;
}

.tagline {
    font-size: 1.2rem;
    opacity: 0.95;
    position: relative;
    z-index: 1;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    font-weight: 500;
}

.sub-tagline {
    font-size: 0.95rem;
    opacity: 0.8;
    margin-top: 5px;
    position: relative;
    z-index: 1;
}

/* ===== Progress Steps with Glossy Effect ===== */
.progress-container {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px 25px;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: var(--radius-lg);
    margin-bottom: 30px;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    border: 1px solid var(--glass-border);
    flex-wrap: wrap;
    gap: 10px;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: var(--transition);
}

.progress-step:hover {
    transform: translateY(-2px);
}

.step-number {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: linear-gradient(145deg, #e6e9ef, #f8fafc);
    color: var(--text-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
    box-shadow: 
        4px 4px 10px rgba(0, 0, 0, 0.1),
        -2px -2px 8px rgba(255, 255, 255, 0.8),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
    border: 2px solid transparent;
}

.progress-step.active .step-number,
.progress-step.completed .step-number {
    background: linear-gradient(135deg, var(--primary-color) 0%, #7c3aed 100%);
    color: var(--white);
    box-shadow: 
        0 4px 15px rgba(79, 70, 229, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.progress-step.completed .step-number {
    background: linear-gradient(135deg, var(--success-color) 0%, #059669 100%);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
}

.progress-step span {
    font-size: 0.85rem;
    color: var(--text-light);
    font-weight: 500;
    transition: var(--transition);
}

.progress-step.active span {
    color: var(--primary-color);
    font-weight: 600;
}

.progress-line {
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--border-color) 0%, #d1d5db 100%);
    border-radius: 2px;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* ===== Main Content with Glassmorphism ===== */
.main-content {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: var(--radius-lg);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    border: 1px solid var(--glass-border);
    padding: 40px;
    min-height: 500px;
}

/* ===== Section Styles ===== */
.step-section {
    display: none;
    animation: fadeIn 0.4s ease;
}

.step-section.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section-header {
    text-align: center;
    margin-bottom: 35px;
}

.section-header h2 {
    font-size: 1.8rem;
    color: var(--dark-color);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.section-header h2 i {
    background: linear-gradient(135deg, var(--primary-color) 0%, #7c3aed 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.6rem;
    filter: drop-shadow(0 2px 4px rgba(79, 70, 229, 0.3));
}

.section-header p {
    color: var(--text-light);
}

/* ===== Input Groups with Glossy Effect ===== */
.input-group {
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--dark-color);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.input-group input,
.input-group textarea,
.input-group select {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition);
    background: linear-gradient(145deg, #ffffff, #f8fafc);
    box-shadow: 
        inset 2px 2px 5px rgba(0, 0, 0, 0.05),
        inset -2px -2px 5px rgba(255, 255, 255, 0.8);
}

.input-group input:focus,
.input-group textarea:focus,
.input-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 
        0 0 0 4px rgba(79, 70, 229, 0.15),
        inset 2px 2px 5px rgba(0, 0, 0, 0.05);
    background: #ffffff;
}

.input-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* ===== File Upload Area with Glossy Effect ===== */
.file-upload-area {
    border: 2px dashed var(--border-color);
    border-radius: var(--radius-lg);
    padding: 35px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 20px;
    background: linear-gradient(145deg, rgba(255,255,255,0.9), rgba(248,250,252,0.9));
    position: relative;
    overflow: hidden;
}

.file-upload-area::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(180deg, rgba(255,255,255,0.5) 0%, rgba(255,255,255,0) 100%);
    pointer-events: none;
}

.file-upload-area:hover,
.file-upload-area.dragover {
    border-color: var(--primary-color);
    background: linear-gradient(145deg, rgba(238,242,255,0.95), rgba(224,231,255,0.95));
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(79, 70, 229, 0.15);
}

.file-upload-area i {
    font-size: 3rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, #7c3aed 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 15px;
    filter: drop-shadow(0 4px 8px rgba(79, 70, 229, 0.3));
    position: relative;
    z-index: 1;
}

.file-upload-area.large {
    padding: 70px 35px;
}

.file-upload-area.large i {
    font-size: 4rem;
}

.file-upload-area h3 {
    margin: 10px 0;
    color: var(--dark-color);
}

.file-upload-area p {
    color: var(--text-light);
    margin-bottom: 5px;
}

.file-upload-area span {
    font-size: 0.85rem;
    color: var(--text-light);
}

/* ===== Tabs ===== */
.tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 10px;
}

.tab-btn {
    padding: 12px 24px;
    border: none;
    background: linear-gradient(145deg, #ffffff, #f8fafc);
    color: var(--text-light);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    border-radius: var(--radius-md);
    transition: var(--transition);
    box-shadow: 
        2px 2px 5px rgba(0, 0, 0, 0.05),
        -1px -1px 3px rgba(255, 255, 255, 0.8);
}

.tab-btn:hover {
    color: var(--primary-color);
    background: linear-gradient(145deg, var(--primary-light), #e0e7ff);
    transform: translateY(-1px);
}

.tab-btn.active {
    color: var(--white);
    background: linear-gradient(135deg, var(--primary-color) 0%, #7c3aed 100%);
    box-shadow: 
        0 4px 15px rgba(79, 70, 229, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

/* ===== Form Sections with Glossy Effect ===== */
.form-section {
    background: linear-gradient(145deg, rgba(255,255,255,0.95), rgba(248,250,252,0.95));
    padding: 28px;
    border-radius: var(--radius-lg);
    margin-bottom: 25px;
    box-shadow: 
        0 4px 20px rgba(0, 0, 0, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.5);
    position: relative;
    overflow: hidden;
}

.form-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color) 0%, #7c3aed 50%, #f093fb 100%);
}

.form-section h3 {
    color: var(--dark-color);
    margin-bottom: 22px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.1rem;
}

.form-section h3 i {
    background: linear-gradient(135deg, var(--primary-color) 0%, #7c3aed 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.3rem;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

/* ===== Experience & Education Entries with Glossy Effect ===== */
.experience-entry,
.education-entry {
    background: linear-gradient(145deg, #ffffff, #f8fafc);
    padding: 22px;
    border-radius: var(--radius-md);
    margin-bottom: 15px;
    border: 1px solid var(--border-color);
    box-shadow: 
        0 2px 10px rgba(0, 0, 0, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    transition: var(--transition);
}

.experience-entry:hover,
.education-entry:hover {
    box-shadow: 
        0 4px 20px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    transform: translateY(-2px);
}

/* ===== Checkbox Label ===== */
.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    color: var(--text-color);
    cursor: pointer;
    margin-top: 10px;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.checkbox-label:hover {
    background: var(--primary-light);
}

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

.checkbox-label i {
    color: var(--primary-color);
}

/* ===== Buttons with Glossy Effect ===== */
.btn {
    padding: 14px 30px;
    border: none;
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(180deg, rgba(255,255,255,0.25) 0%, rgba(255,255,255,0) 100%);
    pointer-events: none;
}

.btn i {
    font-size: 1.1rem;
    transition: var(--transition);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, #7c3aed 100%);
    color: var(--white);
    box-shadow: 
        0 4px 15px rgba(79, 70, 229, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-hover) 0%, #6d28d9 100%);
    transform: translateY(-3px);
    box-shadow: 
        0 8px 25px rgba(79, 70, 229, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn-primary:hover i {
    transform: translateX(3px);
}

.btn-secondary {
    background: linear-gradient(145deg, #ffffff, #f1f5f9);
    color: var(--text-color);
    border: 2px solid var(--border-color);
    box-shadow: 
        0 2px 8px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.btn-secondary:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 
        0 4px 15px rgba(79, 70, 229, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.btn-outline {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    box-shadow: inset 0 0 0 0 var(--primary-color);
}

.btn-outline::before {
    display: none;
}

.btn-outline:hover {
    background: linear-gradient(135deg, var(--primary-color) 0%, #7c3aed 100%);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.3);
}

.btn-sm {
    padding: 10px 20px;
    font-size: 0.9rem;
}

.btn-large {
    padding: 18px 36px;
    font-size: 1.1rem;
}

.button-group {
    display: flex;
    gap: 15px;
    margin-top: 30px;
    justify-content: flex-end;
}

.button-group.center {
    justify-content: center;
}

/* ===== Supporting Docs Grid ===== */
.supporting-docs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.doc-card {
    background: linear-gradient(145deg, rgba(255,255,255,0.95), rgba(248,250,252,0.9));
    padding: 22px;
    border-radius: var(--radius-md);
    border: 2px solid var(--border-color);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.doc-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--glossy-gradient);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.doc-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(79, 70, 229, 0.15);
}

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

.doc-icon {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    background: var(--icon-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.3),
                inset 0 2px 4px rgba(255,255,255,0.4);
    position: relative;
}

.doc-icon::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 10%;
    width: 80%;
    height: 40%;
    background: linear-gradient(to bottom, rgba(255,255,255,0.5), transparent);
    border-radius: 50%;
}

.doc-icon i {
    font-size: 1.5rem;
    color: var(--white);
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.doc-card h4 {
    margin-bottom: 10px;
    color: var(--dark-color);
    font-weight: 600;
}

.doc-card textarea {
    width: 100%;
    padding: 14px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 0.95rem;
    resize: vertical;
    background: linear-gradient(to bottom, rgba(255,255,255,0.9), rgba(248,250,252,0.8));
    transition: all 0.3s ease;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.03);
}

.doc-card textarea:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1),
                inset 0 2px 4px rgba(0,0,0,0.03);
}

/* ===== Review Panel ===== */
.review-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    padding: 25px;
    border-radius: var(--radius-md);
    margin-bottom: 25px;
    border: 1px solid rgba(255,255,255,0.3);
    box-shadow: 0 8px 32px rgba(0,0,0,0.08);
}

.review-panel h3 {
    margin-bottom: 20px;
    color: var(--dark-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.review-panel h3::before {
    content: '📋';
    font-size: 1.2rem;
}

.review-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.review-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 18px;
    background: linear-gradient(145deg, rgba(255,255,255,0.95), rgba(248,250,252,0.9));
    border-radius: var(--radius-sm);
    border: 1px solid rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.review-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
}

.review-item i {
    font-size: 1.25rem;
    background: var(--icon-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-top: 2px;
}

.review-item strong {
    display: block;
    color: var(--dark-color);
    margin-bottom: 4px;
}

.review-item span {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* ===== Options Panel ===== */
.options-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    padding: 25px;
    border-radius: var(--radius-md);
    margin-bottom: 25px;
    border: 1px solid rgba(255,255,255,0.3);
    box-shadow: 0 8px 32px rgba(0,0,0,0.08);
}

.options-panel h3 {
    margin-bottom: 20px;
    color: var(--dark-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.options-panel h3::before {
    content: '⚙️';
    font-size: 1.2rem;
}

.options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.option-item label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--dark-color);
}

.option-item select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    background: linear-gradient(to bottom, rgba(255,255,255,0.95), rgba(248,250,252,0.9));
    cursor: pointer;
    transition: all 0.3s ease;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%234f46e5' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.03);
}

.option-item select:hover {
    border-color: var(--primary-color);
}

.option-item select:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1);
}

.checkbox-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* ===== Result Container ===== */
.result-container {
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    background: linear-gradient(145deg, #ffffff, #f8fafc);
}

.result-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 24px;
    background: linear-gradient(145deg, rgba(248,250,252,0.95), rgba(241,245,249,0.9));
    border-bottom: 2px solid var(--border-color);
    flex-wrap: wrap;
    gap: 10px;
    backdrop-filter: blur(10px);
}

.toolbar-left,
.toolbar-right {
    display: flex;
    gap: 10px;
}

.toolbar-btn {
    padding: 10px 18px;
    border: 2px solid var(--border-color);
    background: linear-gradient(145deg, #ffffff, #f8fafc);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    position: relative;
    overflow: hidden;
}

.toolbar-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: left 0.5s ease;
}

.toolbar-btn:hover::before {
    left: 100%;
}

.toolbar-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(79, 70, 229, 0.15);
}

.toolbar-btn i {
    transition: transform 0.3s ease;
}

.toolbar-btn:hover i {
    transform: scale(1.1);
}

.toolbar-btn.primary {
    background: var(--glossy-gradient);
    color: var(--white);
    border-color: transparent;
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.4);
}

.toolbar-btn.primary::before {
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
}

.toolbar-btn.primary:hover {
    background: linear-gradient(135deg, #5b54f0 0%, #7c3aed 50%, #a855f7 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(79, 70, 229, 0.5);
}

/* ===== Resume Preview ===== */
.resume-preview {
    padding: 40px;
    background: linear-gradient(180deg, #ffffff 0%, #fafafa 100%);
    min-height: 600px;
    font-size: 0.95rem;
    position: relative;
}

.resume-preview::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: var(--glossy-gradient);
}

.resume-preview h1 {
    font-size: 1.8rem;
    color: var(--dark-color);
    margin-bottom: 5px;
}

.resume-preview .contact-info {
    color: var(--text-light);
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.resume-preview .contact-info a {
    color: var(--primary-color);
    text-decoration: none;
}

.resume-preview h2 {
    font-size: 1.1rem;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 5px;
    margin: 25px 0 15px;
}

.resume-preview h3 {
    font-size: 1rem;
    color: var(--dark-color);
    margin-bottom: 5px;
}

.resume-preview .job-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    flex-wrap: wrap;
}

.resume-preview .company {
    color: var(--text-color);
    font-weight: 500;
}

.resume-preview .date {
    color: var(--text-light);
    font-size: 0.9rem;
}

.resume-preview ul {
    margin: 10px 0;
    padding-left: 20px;
}

.resume-preview li {
    margin-bottom: 8px;
    color: var(--text-color);
}

.resume-preview .skills-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
    padding: 0;
}

.resume-preview .skill-tag {
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.1) 0%, rgba(147, 51, 234, 0.1) 100%);
    color: var(--primary-color);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    border: 1px solid rgba(79, 70, 229, 0.2);
    transition: all 0.3s ease;
}

.resume-preview .skill-tag:hover {
    background: var(--glossy-gradient);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

/* ===== Keyword Analysis ===== */
.keyword-analysis {
    padding: 28px;
    background: linear-gradient(145deg, rgba(248,250,252,0.95), rgba(241,245,249,0.9));
    border-top: 3px solid transparent;
    border-image: var(--glossy-gradient) 1;
    position: relative;
}

.keyword-analysis::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at top right, rgba(79, 70, 229, 0.05), transparent 50%);
    pointer-events: none;
}

.keyword-analysis h4 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    color: var(--dark-color);
    font-weight: 600;
}

.keyword-analysis h4 i {
    background: var(--icon-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.analysis-subtitle {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.keyword-stats {
    display: flex;
    gap: 30px;
    margin-bottom: 20px;
}

.stat {
    text-align: center;
    padding: 15px 20px;
    background: var(--white);
    border-radius: var(--radius-sm);
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.stat:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    background: var(--glossy-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-light);
    font-weight: 500;
}

.keyword-legend {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
    font-size: 0.85rem;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-light);
}

.keywords-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.keyword-tag {
    padding: 8px 14px;
    border-radius: 25px;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: default;
}

.keyword-tag:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.keyword-tag i {
    font-size: 0.7rem;
}

.keyword-tag.matched {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    color: #065f46;
    border: 1px solid rgba(6, 95, 70, 0.2);
}

.keyword-tag.missing {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: #92400e;
    border: 1px solid rgba(146, 64, 14, 0.2);
}

/* ===== Loading Overlay ===== */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.98));
    backdrop-filter: blur(10px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.loading-overlay.active {
    display: flex;
}

.loading-content {
    text-align: center;
    padding: 40px;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: 0 25px 80px rgba(0,0,0,0.15);
    position: relative;
    overflow: hidden;
}

.loading-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--glossy-gradient);
    animation: loadingBar 2s ease-in-out infinite;
}

@keyframes loadingBar {
    0%, 100% { transform: scaleX(0.3); transform-origin: left; }
    50% { transform: scaleX(1); transform-origin: left; }
}

.spinner {
    width: 70px;
    height: 70px;
    border: 4px solid rgba(79, 70, 229, 0.1);
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
    position: relative;
    background: conic-gradient(from 0deg, transparent, var(--primary-color));
    -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 4px), black calc(100% - 4px));
    mask: radial-gradient(farthest-side, transparent calc(100% - 4px), black calc(100% - 4px));
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.loading-content h3 {
    color: var(--dark-color);
    margin-bottom: 10px;
    font-weight: 600;
}

.loading-content p {
    color: var(--text-light);
}

/* ===== Footer - Mc'Harv Techlabs Branded ===== */
.footer {
    text-align: center;
    padding: 40px 30px;
    color: var(--white);
    margin-top: 30px;
    background: linear-gradient(180deg, transparent, rgba(15, 15, 35, 0.95));
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 150px;
    height: 3px;
    background: var(--glossy-gradient);
    border-radius: 3px;
}

.footer-brand {
    margin-bottom: 15px;
}

.footer-mc {
    font-size: 1.5rem;
    font-weight: 800;
    color: #00d4ff;
    text-shadow: 0 0 15px rgba(0, 212, 255, 0.5);
}

.footer-tech {
    font-size: 0.9rem;
    font-weight: 600;
    color: #ffffff;
    letter-spacing: 3px;
    text-transform: uppercase;
    opacity: 0.9;
}

.footer p {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 500;
    color: rgba(255,255,255,0.85);
    margin-bottom: 15px;
}

.footer i {
    color: var(--danger-color);
    animation: heartbeat 1.5s ease-in-out infinite;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin: 20px 0;
    flex-wrap: wrap;
}

.footer-links a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
    padding: 8px 15px;
    border-radius: 20px;
    background: rgba(255,255,255,0.1);
}

.footer-links a:hover {
    color: #00d4ff;
    background: rgba(0, 212, 255, 0.15);
    transform: translateY(-2px);
}

.footer-links a i {
    color: inherit;
    animation: none;
}

.footer-tagline {
    font-style: italic;
    opacity: 0.7;
    font-size: 0.85rem;
    margin-top: 15px;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

/* ===== Uploaded File Info ===== */
.uploaded-file-info {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 18px;
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    border-radius: var(--radius-sm);
    margin-top: 15px;
    border: 1px solid rgba(6, 95, 70, 0.15);
    box-shadow: 0 4px 15px rgba(6, 95, 70, 0.1);
    transition: all 0.3s ease;
}

.uploaded-file-info:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(6, 95, 70, 0.15);
}

.uploaded-file-info i {
    color: var(--success-color);
    font-size: 1.35rem;
}

.uploaded-file-info span {
    flex: 1;
    color: #065f46;
    font-weight: 600;
}

.file-format-badge {
    flex: 0 !important;
    background: var(--glossy-gradient);
    color: white !important;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(79, 70, 229, 0.3);
}

.upload-note {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 15px;
    background: #dbeafe;
    border-radius: var(--radius-sm);
    margin-top: 15px;
    border-left: 4px solid #3b82f6;
}

.upload-note i {
    color: #3b82f6;
    margin-top: 2px;
}

.upload-note p {
    font-size: 0.9rem;
    color: #1e40af;
    margin: 0;
}

.remove-btn {
    background: transparent;
    border: none;
    color: #065f46;
    cursor: pointer;
    padding: 5px;
    transition: all 0.3s ease;
    border-radius: 50%;
}

.remove-btn:hover {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger-color);
    transform: rotate(90deg);
}

/* ===== Files List ===== */
.files-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

.file-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: linear-gradient(145deg, rgba(248,250,252,0.95), rgba(241,245,249,0.9));
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.file-item:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(79, 70, 229, 0.1);
}

.file-item i {
    background: var(--icon-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.file-item .remove-file {
    background: none;
    border: none;
    color: var(--danger-color);
    cursor: pointer;
    padding: 2px;
    transition: all 0.3s ease;
}

.file-item .remove-file:hover {
    transform: scale(1.2);
}

/* ===== Responsive Design ===== */
@media (max-width: 768px) {
    .app-container {
        padding: 10px;
    }

    .header {
        padding: 30px 15px;
    }

    .logo h1 {
        font-size: 1.5rem;
    }

    .main-content {
        padding: 20px;
    }

    .progress-container {
        padding: 15px;
    }

    .progress-step span {
        display: none;
    }

    .progress-line {
        width: 30px;
    }

    .button-group {
        flex-direction: column;
    }

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

    .result-toolbar {
        flex-direction: column;
    }

    .toolbar-left,
    .toolbar-right {
        width: 100%;
        justify-content: center;
    }

    .resume-preview {
        padding: 20px;
    }
}

/* ===== Print Styles ===== */
@media print {
    .header,
    .progress-container,
    .button-group,
    .result-toolbar,
    .keyword-analysis,
    .footer {
        display: none !important;
    }

    .main-content {
        box-shadow: none;
        padding: 0;
    }

    .resume-preview {
        padding: 0;
    }
}

/* ===== AI Configuration Styles ===== */
.ai-badge {
    background: linear-gradient(135deg, #8b5cf6 0%, #6366f1 100%);
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-left: 15px;
    animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 5px rgba(139, 92, 246, 0.5); }
    50% { box-shadow: 0 0 20px rgba(139, 92, 246, 0.8); }
}

.ai-config-bar {
    background: linear-gradient(145deg, rgba(255,255,255,0.98), rgba(248,250,252,0.95));
    border-radius: var(--radius-lg);
    margin-bottom: 20px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.08);
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.5);
    position: relative;
}

.ai-config-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #0d6efd, #00d4ff, #0d6efd, #00d4ff);
    background-size: 300% 100%;
    animation: aiGradient 3s ease infinite;
}

@keyframes aiGradient {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.ai-config-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
}

.ai-status {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
}

.ai-status i {
    font-size: 10px;
    animation: statusPulse 2s ease-in-out infinite;
}

@keyframes statusPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.ai-status.disconnected i {
    color: #ef4444;
}

.ai-status.connected i {
    color: #10b981;
    animation: connectedGlow 2s ease-in-out infinite;
}

@keyframes connectedGlow {
    0%, 100% { 
        text-shadow: 0 0 5px rgba(16, 185, 129, 0.5);
    }
    50% { 
        text-shadow: 0 0 15px rgba(16, 185, 129, 0.8);
    }
}

.ai-config-btn {
    background: linear-gradient(135deg, rgba(13, 110, 253, 0.1) 0%, rgba(0, 212, 255, 0.15) 100%);
    color: #0d6efd;
    border: 2px solid rgba(13, 110, 253, 0.3);
    padding: 10px 22px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
    overflow: hidden;
}

.ai-config-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: left 0.5s ease;
}

.ai-config-btn:hover::before {
    left: 100%;
}

.ai-config-btn:hover {
    background: linear-gradient(135deg, #0d6efd 0%, #00d4ff 100%);
    color: white;
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(13, 110, 253, 0.4);
}

.ai-config-btn i {
    transition: transform 0.3s ease;
}

.ai-config-btn:hover i {
    transform: rotate(180deg);
}

.ai-settings-panel {
    border-top: 2px solid var(--border-color);
    padding: 25px;
    background: linear-gradient(180deg, rgba(248,250,252,0.95), rgba(241,245,249,0.9));
}

.ai-settings-content h4 {
    color: var(--dark-color);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
}

.ai-settings-content h4 i {
    background: linear-gradient(135deg, #0d6efd 0%, #00d4ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.ai-settings-note {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.api-key-input-group {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.api-key-input-group input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-family: monospace;
}

.api-key-input-group input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.toggle-visibility-btn {
    background: var(--bg-color);
    border: 2px solid var(--border-color);
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    color: var(--text-light);
    transition: var(--transition);
}

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

.ai-model-select {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.ai-model-select label {
    font-weight: 500;
    color: var(--dark-color);
}

.ai-model-select select {
    padding: 10px 15px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    background: white;
}

.ai-settings-actions {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.api-test-result {
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
    display: none;
}

.api-test-result.success {
    display: block;
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #10b981;
}

.api-test-result.error {
    display: block;
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #ef4444;
}

.ai-features-list {
    background: white;
    padding: 20px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
}

.ai-features-list h5 {
    color: var(--dark-color);
    margin-bottom: 15px;
    font-size: 0.95rem;
}

.ai-features-list ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
}

.ai-features-list li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--text-color);
}

.ai-features-list li i {
    color: var(--success-color);
}

.ai-notice {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px;
    background: #fef3c7;
    border-radius: var(--radius-sm);
    margin-top: 15px;
    color: #92400e;
    font-size: 0.9rem;
}

.ai-notice.connected {
    background: #d1fae5;
    color: #065f46;
}

.ai-notice i {
    font-size: 1.2rem;
}

/* AI Progress Bar */
.ai-progress {
    margin-top: 25px;
    width: 100%;
    max-width: 400px;
}

.ai-progress-bar {
    height: 8px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 15px;
}

.ai-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #8b5cf6, #6366f1, #8b5cf6);
    background-size: 200% 100%;
    animation: progress-shimmer 1.5s ease-in-out infinite;
    width: 0%;
    transition: width 0.5s ease;
}

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

.ai-progress-steps {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ai-step {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
}

.ai-step.active {
    color: white;
}

.ai-step.completed {
    color: #10b981;
}

.ai-step i {
    width: 16px;
}

/* ===== Photo Upload Section ===== */
.photo-upload-section {
    background: linear-gradient(145deg, rgba(255,255,255,0.98), rgba(248,250,252,0.95));
    border: 2px dashed var(--border-color);
    border-radius: var(--radius-md);
    padding: 22px;
    margin: 20px 0;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.photo-upload-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--glossy-gradient);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.photo-upload-section:hover {
    border-color: var(--primary-color);
    box-shadow: 0 8px 30px rgba(79, 70, 229, 0.1);
}

.photo-upload-section:hover::before {
    opacity: 1;
}

.photo-upload-section h4 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    color: var(--dark-color);
    font-size: 1rem;
    font-weight: 600;
}

.photo-upload-section h4 i {
    background: var(--icon-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.2rem;
}

.photo-upload-container {
    display: flex;
    align-items: center;
    gap: 22px;
    flex-wrap: wrap;
}

.photo-preview {
    width: 130px;
    height: 160px;
    background: linear-gradient(145deg, rgba(248,250,252,0.9), rgba(241,245,249,0.8));
    border: 3px solid var(--border-color);
    border-radius: var(--radius-md);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05),
                inset 0 2px 4px rgba(255,255,255,0.5);
}

.photo-preview:hover {
    border-color: var(--primary-color);
    box-shadow: 0 8px 25px rgba(79, 70, 229, 0.15);
}

.photo-preview i {
    font-size: 3.5rem;
    background: linear-gradient(135deg, #cbd5e1 0%, #94a3b8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.photo-preview span {
    font-size: 0.75rem;
    color: var(--text-light);
    margin-top: 8px;
    font-weight: 500;
}

.photo-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.photo-preview:hover img {
    transform: scale(1.05);
}

.photo-upload-controls {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.photo-hint {
    font-size: 0.8rem;
    color: var(--text-light);
    margin: 0;
    padding: 8px 12px;
    background: rgba(79, 70, 229, 0.05);
    border-radius: var(--radius-sm);
    border-left: 3px solid var(--primary-color);
}

/* ===== Ultra Professional Two-Column Resume Format ===== */
.resume-two-column {
    font-family: 'Source Sans Pro', 'Calibri', 'Segoe UI', Arial, sans-serif;
    font-size: 10.5pt;
    line-height: 1.5;
    color: #2d3748;
    background: white;
}

.resume-header {
    background: linear-gradient(135deg, #1e3a5f 0%, #2c5282 50%, #1e3a5f 100%);
    padding: 28px 35px;
    margin: -20px -20px 0 -20px;
    position: relative;
    overflow: hidden;
}

.resume-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255,255,255,0.05) 50%, transparent 70%);
    pointer-events: none;
}

.resume-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #e53e3e, #ed8936, #ecc94b);
}

.resume-name {
    color: white;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 26pt;
    font-weight: 700;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 3px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
    position: relative;
    z-index: 1;
}

.resume-body {
    display: flex;
    gap: 0;
}

.resume-left-column {
    flex: 1.7;
    min-width: 0;
    padding: 25px 30px;
    background: white;
}

.resume-right-column {
    flex: 1;
    min-width: 220px;
    background: linear-gradient(180deg, #f7fafc 0%, #edf2f7 100%);
    padding: 25px 20px;
    border-left: 1px solid #e2e8f0;
}

/* Profile Photo in Resume */
.resume-photo {
    width: 140px;
    height: 175px;
    border: 4px solid #1e3a5f;
    border-radius: 8px;
    object-fit: cover;
    margin-bottom: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.resume-photo-container {
    text-align: center;
    margin-bottom: 20px;
}

.resume-section {
    margin-bottom: 22px;
}

.section-header-bar {
    background: linear-gradient(135deg, #1e3a5f 0%, #2c5282 100%);
    color: white;
    font-size: 9pt;
    font-weight: 700;
    padding: 8px 14px;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 15px;
    border-radius: 2px;
    position: relative;
}

.section-header-bar::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 14px;
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, #e53e3e, #ed8936);
    border-radius: 2px;
}

.section-content {
    padding: 0 5px;
}

.section-content p {
    margin: 0 0 12px 0;
    text-align: justify;
    color: #4a5568;
    font-size: 10pt;
    line-height: 1.6;
}

/* Experience Entries - Premium Styling */
.experience-entry {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e2e8f0;
}

.experience-entry:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.exp-title-line {
    font-size: 11pt;
    font-weight: 700;
    color: #1e3a5f;
    margin-bottom: 3px;
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    flex-wrap: wrap;
}

.exp-title-line strong {
    color: #1e3a5f;
}

.exp-company {
    color: #718096;
    font-weight: 600;
    font-size: 10pt;
    margin-bottom: 10px;
    font-style: normal;
}

.exp-subsection {
    margin: 12px 0 6px 0;
    font-weight: 700;
    color: #2d3748;
    font-size: 9.5pt;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.exp-bullets {
    margin: 8px 0 12px 0;
    padding-left: 18px;
}

.exp-bullets li {
    margin-bottom: 6px;
    text-align: justify;
    color: #4a5568;
    font-size: 9.5pt;
    line-height: 1.5;
}

.exp-bullets li::marker {
    color: #e53e3e;
}

/* Contact Section - Premium Styling */
.contact-section {
    font-size: 9.5pt;
}

.contact-item {
    margin-bottom: 12px;
    padding: 8px 10px;
    background: white;
    border-radius: 4px;
    border-left: 3px solid #e53e3e;
}

.contact-item strong {
    color: #1e3a5f;
    font-size: 8pt;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: block;
    margin-bottom: 3px;
}

.contact-item a {
    color: #2c5282;
    text-decoration: none;
    font-weight: 500;
    word-break: break-all;
}

/* Qualifications List - Premium */
.qualifications-list {
    padding-left: 16px;
    margin: 0;
}

.qualifications-list li {
    margin-bottom: 6px;
    font-size: 9.5pt;
    color: #4a5568;
    line-height: 1.4;
}

.qualifications-list li::marker {
    color: #e53e3e;
}

/* Styled Bullets - Premium */
.styled-bullets {
    padding-left: 16px;
    margin: 0;
}

.styled-bullets li {
    margin-bottom: 6px;
    font-size: 9.5pt;
    color: #4a5568;
    line-height: 1.4;
}

.styled-bullets li::marker {
    color: #e53e3e;
}

/* Education Entries - Premium */
.education-entry {
    margin-bottom: 14px;
    font-size: 9.5pt;
    padding: 10px;
    background: white;
    border-radius: 4px;
}

.education-entry strong {
    color: #1e3a5f;
    font-size: 10pt;
}

.edu-institution {
    color: #718096;
    font-weight: 500;
    margin-top: 2px;
}

.edu-gpa {
    color: #e53e3e;
    font-weight: 600;
    font-size: 9pt;
    margin-top: 3px;
}

.edu-details {
    color: #666;
    font-size: 9pt;
}

.edu-details {
    color: #666;
    font-size: 9pt;
    margin-top: 3px;
}

/* Languages Table - Premium */
.languages-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 9pt;
    background: white;
    border-radius: 4px;
    overflow: hidden;
}

.languages-table th,
.languages-table td {
    border: 1px solid #e2e8f0;
    padding: 6px 8px;
    text-align: center;
}

.languages-table th {
    background: linear-gradient(135deg, #1e3a5f 0%, #2c5282 100%);
    color: white;
    font-weight: 600;
}

.languages-table td:first-child {
    text-align: left;
    font-weight: 500;
}

/* Print Styles for Premium Two-Column */
@media print {
    .resume-two-column {
        font-size: 10pt;
    }
    
    .resume-header {
        margin: 0;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }
    
    .resume-header::after {
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }
    
    .section-header-bar {
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }
    
    .section-header-bar::after {
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }
    
    .resume-right-column {
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }
    
    .languages-table th {
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }
    
    .resume-body {
        gap: 0;
    }
}

/* Preview Container Adjustment for Two-Column */
.resume-preview .resume-two-column {
    padding: 20px;
}

.resume-preview .resume-header {
    margin: -20px -20px 0 -20px;
}

/* ===== Additional Glossy Enhancements ===== */

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Custom scrollbar for webkit browsers */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: linear-gradient(180deg, #f1f5f9, #e2e8f0);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb {
    background: var(--glossy-gradient);
    border-radius: 5px;
    border: 2px solid #f1f5f9;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #5b54f0 0%, #7c3aed 50%, #a855f7 100%);
}

/* Selection styling */
::selection {
    background: rgba(79, 70, 229, 0.2);
    color: var(--dark-color);
}

/* Focus ring styling */
*:focus-visible {
    outline: 3px solid rgba(79, 70, 229, 0.4);
    outline-offset: 2px;
}

/* Tooltip styling for buttons */
[title] {
    position: relative;
}

/* Enhanced checkbox styling */
input[type="checkbox"] {
    appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-color);
    border-radius: 4px;
    background: var(--white);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

input[type="checkbox"]:checked {
    background: var(--glossy-gradient);
    border-color: transparent;
}

input[type="checkbox"]:checked::after {
    content: '✓';
    position: absolute;
    color: white;
    font-size: 14px;
    font-weight: bold;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

input[type="checkbox"]:hover {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1);
}

/* Text area placeholder styling */
textarea::placeholder,
input::placeholder {
    color: #94a3b8;
    opacity: 1;
}

/* Animated gradient text utility */
.gradient-text {
    background: var(--glossy-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Pulse animation for notifications */
@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.9;
    }
}

/* Shake animation for errors */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

.error-shake {
    animation: shake 0.5s ease-in-out;
}

/* Fade in animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.4s ease-out forwards;
}

/* Slide in from right */
@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Scale up animation */
@keyframes scaleUp {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Success state glow */
.success-glow {
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.4);
    border-color: #10b981 !important;
}

/* Warning state glow */
.warning-glow {
    box-shadow: 0 0 20px rgba(245, 158, 11, 0.4);
    border-color: #f59e0b !important;
}

/* Error state glow */
.error-glow {
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.4);
    border-color: #ef4444 !important;
}

/* Enhanced disabled state */
button:disabled,
input:disabled,
select:disabled,
textarea:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    filter: grayscale(30%);
}

/* Card lift effect on focus-within */
.form-section:focus-within,
.doc-card:focus-within {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(79, 70, 229, 0.12);
}

/* ===== Cover Letter Styles ===== */
.cover-letter-section {
    background: white;
    border-radius: var(--radius-md);
    padding: 30px;
    margin-top: 30px;
    box-shadow: var(--shadow-lg);
    animation: slideInUp 0.4s ease;
}

.cover-letter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 15px;
}

.cover-letter-header h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin: 0;
}

.close-cover-letter {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-light);
    cursor: pointer;
    padding: 0 10px;
    transition: color 0.3s;
}

.close-cover-letter:hover {
    color: var(--danger-color);
}

.cover-letter-toolbar {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.cover-letter-preview {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 40px;
    margin: 20px 0;
    line-height: 1.8;
    font-family: 'Calibri', 'Segoe UI', Arial, sans-serif;
    font-size: 11pt;
    color: #333;
    min-height: 600px;
}

.cover-letter-content {
    max-width: 100%;
}

.cover-letter-content.editable {
    outline: 2px dashed var(--primary-color);
    outline-offset: 8px;
    border-radius: var(--radius-sm);
    padding: 10px;
}

.cover-letter-section-header {
    margin-bottom: 20px;
    line-height: 1.5;
}

.cover-letter-section-header p {
    margin: 3px 0;
}

.cover-letter-date {
    margin-bottom: 25px;
    text-align: left;
}

.cover-letter-date p {
    margin: 0;
}

.cover-letter-recipient {
    margin-bottom: 25px;
    line-height: 1.6;
}

.cover-letter-recipient p {
    margin: 3px 0;
}

.cover-letter-greeting {
    margin: 30px 0 20px 0;
}

.cover-letter-greeting p {
    margin: 0;
}

.cover-letter-body {
    margin: 20px 0;
}

.cover-letter-paragraph {
    margin-bottom: 15px;
    text-align: justify;
    line-height: 1.8;
}

.cover-letter-paragraph p {
    margin: 0 0 12px 0;
}

.cover-letter-closing {
    margin-top: 30px;
    line-height: 1.6;
}

.cover-letter-closing p {
    margin: 5px 0;
}

.applied-notice {
    margin-top: 40px !important;
    font-size: 10pt;
    color: #666;
    font-style: italic;
    padding: 10px;
    background: #f0f4f8;
    border-left: 3px solid var(--info-color, #0d6efd);
    border-radius: 4px;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}