:root {
    --builder-bg: #f8fafc;
    --builder-card: #ffffff;
    --primary: #4f46e5;
    --primary-light: #e0e7ff;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --border: #e2e8f0;
}

.cv-builder-container {
    min-height: calc(100vh - 80px);
    background: var(--builder-bg);
    padding: 60px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.builder-header {
    width: 600px;
    margin-bottom: 40px;
}

.progress-steps {
    display: flex;
    justify-content: space-between;
    position: relative;
    padding: 0 10px;
}

.progress-steps::before {
    content: '';
    position: absolute;
    top: 15px;
    left: 20px;
    right: 20px;
    height: 2px;
    background: var(--border);
    z-index: 1;
}

.step {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    color: var(--text-muted);
    font-weight: 700;
    font-size: 0.85rem;
}

.step span {
    width: 32px;
    height: 32px;
    background: white;
    border: 2px solid var(--border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    transition: all 0.3s ease;
}

.step.active { color: var(--primary); }
.step.active span {
    border-color: var(--primary);
    background: var(--primary);
    color: white;
    box-shadow: 0 0 0 4px var(--primary-light);
}

.builder-card {
    background: var(--builder-card);
    width: 100%;
    max-width: 800px;
    padding: 60px;
    border-radius: 32px;
    box-shadow: 0 20px 50px -10px rgba(0,0,0,0.05);
    border: 1px solid var(--border);
}

.section-title { margin-bottom: 40px; text-align: center; }
.section-title h2 { font-size: 2rem; font-weight: 800; color: var(--text-main); margin-bottom: 8px; }
.section-title p { color: var(--text-muted); font-size: 1.1rem; }

.input-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.form-group.full { grid-column: span 2; }
.form-group label { display: block; font-weight: 700; color: var(--text-main); margin-bottom: 10px; font-size: 0.95rem; }
.form-group input, .form-group textarea {
    width: 100%;
    padding: 14px 20px;
    border-radius: 12px;
    border: 1.5px solid var(--border);
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.2s;
}
.form-group input:focus, .form-group textarea:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 4px var(--primary-light);
}

.step-content { display: none; }
.step-content.active { display: block; animation: fadeIn 0.4s ease-out; }

.add-more-btn {
    background: none;
    border: 2px dashed var(--border);
    width: 100%;
    padding: 20px;
    border-radius: 16px;
    color: var(--primary);
    font-weight: 700;
    cursor: pointer;
    margin-top: 20px;
    transition: 0.3s;
}
.add-more-btn:hover { background: var(--builder-bg); border-color: var(--primary); }

.item-card {
    padding: 24px;
    background: #f8fafc;
    border-radius: 16px;
    border: 1px solid var(--border);
    margin-bottom: 20px;
    position: relative;
}
.remove-item { position: absolute; top: 15px; right: 15px; border: none; background: none; color: #ef4444; font-size: 1.2rem; cursor: pointer; opacity: 0.5; }
.remove-item:hover { opacity: 1; }

.actions { display: flex; justify-content: space-between; margin-top: 50px; }

/* AI Box Style */
.ai-box {
    background: #f5f3ff;
    border: 1px solid #ddd6fe;
    padding: 24px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 32px;
}
.ai-icon { font-size: 2rem; color: var(--primary); }
.ai-text h4 { margin: 0; font-size: 1.1rem; }
.ai-text p { margin: 4px 0 0 0; font-size: 0.85rem; color: #6d28d9; font-weight: 500; }

/* Switch Style */
.switch { position: relative; display: inline-block; width: 50px; height: 26px; }
.switch input { opacity: 0; width: 0; height: 0; }
.slider { position: absolute; cursor: pointer; inset: 0; background-color: #ccc; transition: .4s; border-radius: 34px; }
.slider:before { position: absolute; content: ""; height: 18px; width: 18px; left: 4px; bottom: 4px; background-color: white; transition: .4s; border-radius: 50%; }
input:checked + .slider { background-color: var(--primary); }
input:checked + .slider:before { transform: translateX(24px); }

/* Loading State */
.loader-content { text-align: center; }
.rocket-animation { font-size: 4rem; color: var(--primary); margin-bottom: 32px; animation: bounce 1s infinite alternate; }
.loading-steps { display: flex; flex-direction: column; gap: 16px; margin: 32px 0; }
.load-step { color: var(--text-muted); font-weight: 600; font-size: 1.1rem; display: flex; align-items: center; justify-content: center; gap: 12px; opacity: 0.5; transition: 0.5s; }
.load-step.active { color: var(--primary); opacity: 1; transform: scale(1.05); }
.progress-bar-wrap { width: 100%; height: 8px; background: #f1f5f9; border-radius: 4px; overflow: hidden; margin-top: 40px; }
#main-progress-bar { height: 100%; background: var(--primary); width: 0; transition: width 0.3s; }

/* Preview State */
.preview-actions { display: flex; justify-content: center; gap: 16px; margin-bottom: 40px; }
#cv-preview-container {
    background: white;
    padding: 50px;
    box-shadow: 0 40px 80px -20px rgba(0,0,0,0.1);
    border-radius: 4px;
    width: 210mm;
    margin: 0 auto;
    min-height: 297mm;
}

@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes bounce { from { transform: translateY(0); } to { transform: translateY(-15px); } }

/* CV Template (2026 Modern) */
.cv-template { font-family: 'Inter', sans-serif; color: #1e293b; }
.cv-header { text-align: center; border-bottom: 2px solid #1e293b; padding-bottom: 30px; margin-bottom: 30px; }
.cv-header h1 { font-size: 2.8rem; font-weight: 900; text-transform: uppercase; margin: 0; letter-spacing: -1px; }
.cv-contact { display: flex; justify-content: center; gap: 20px; font-size: 0.9rem; color: #64748b; margin-top: 10px; }
.cv-section { margin-bottom: 30px; }
.cv-section h3 { font-size: 1.3rem; font-weight: 800; text-transform: uppercase; border-bottom: 1px solid #e2e8f0; padding-bottom: 8px; margin-bottom: 16px; color: #1e293b; letter-spacing: 1px; }
.cv-item { margin-bottom: 20px; }
.cv-item-header { display: flex; justify-content: space-between; align-items: baseline; }
.cv-item-title { font-weight: 800; font-size: 1.1rem; }
.cv-item-date { font-size: 0.9rem; color: #64748b; font-weight: 700; }
.cv-item-company { color: var(--primary); font-weight: 700; margin-bottom: 6px; }
.cv-skills { display: flex; flex-wrap: wrap; gap: 8px; }
.cv-skill-tag { background: #f1f5f9; padding: 6px 14px; border-radius: 6px; font-weight: 700; font-size: 0.85rem; border: 1px solid #e2e8f0; }
