/* assets/css/resume-builder.css */

/* --- Layout Layout --- */
.resume-builder-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    height: calc(100vh - 100px);
    /* Full height minus header */
    margin-top: 20px;
}

@media (max-width: 1024px) {
    .resume-builder-container {
        grid-template-columns: 1fr;
        height: auto;
    }
}

/* --- Editor Section (Left) --- */
.editor-panel {
    background: #112240;
    padding: 25px;
    border-radius: 8px;
    overflow-y: auto;
    border: 1px solid rgba(100, 255, 218, 0.1);
}

/* --- Wizard UI --- */
.wizard-progress {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 15px;
}

.step-indicator {
    color: var(--color-text-main);
    opacity: 0.5;
    font-size: 0.9rem;
    position: relative;
}

.step-indicator.active {
    opacity: 1;
    color: var(--color-secondary);
    font-weight: bold;
}

.wizard-step {
    display: none;
    animation: fadeIn 0.3s ease;
}

.wizard-step.active {
    display: block;
}

.wizard-nav {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-primary {
    background: var(--color-secondary);
    color: #0a192f;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(100, 255, 218, 0.3);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--color-secondary);
    color: var(--color-secondary);
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-outline:hover {
    background: rgba(100, 255, 218, 0.1);
    transform: translateY(-2px);
}

.step-btn {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 2px dashed rgba(100, 255, 218, 0.3);
    color: var(--color-secondary);
    padding: 15px;
    border-radius: 8px;
    cursor: pointer;
    margin-top: 15px;
    margin-bottom: 20px;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.step-btn:hover {
    background: rgba(100, 255, 218, 0.08);
    border-color: var(--color-secondary);
    transform: translateY(-2px);
}



.file-name-display {
    margin-top: 8px;
    font-size: 0.85rem;
    color: var(--color-text-muted);
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

text-overflow: ellipsis;
}

/* Toggle Switch */
.switch {
    position: relative;
    display: inline-block;
    width: 46px;
    height: 24px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.1);
    transition: .4s;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 2px;
    bottom: 2px;
    background-color: white;
    transition: .4s;
}

input:checked+.slider {
    background-color: var(--color-secondary);
    border-color: var(--color-secondary);
}

input:focus+.slider {
    box-shadow: 0 0 1px var(--color-secondary);
}

input:checked+.slider:before {
    transform: translateX(22px);
    background-color: #0a192f;
}

.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;
}

/* --- Form Elements --- */
.form-section-title {
    font-size: 1.1rem;
    color: var(--color-text-main);
    margin-top: 20px;
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ai-btn {
    background: linear-gradient(45deg, #64ffda, #00bcd4);
    border: none;
    color: #0a192f;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    box-shadow: 0 2px 5px rgba(100, 255, 218, 0.3);
    transition: transform 0.2s;
}

.ai-btn:hover {
    transform: scale(1.05);
}

.ai-btn i {
    font-size: 0.9em;
}

.repeater-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 15px;
    position: relative;
    border: 1px solid transparent;
}

.repeater-item:hover {
    border-color: rgba(100, 255, 218, 0.3);
}

.remove-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    color: #ff6b6b;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
}

/* --- Preview Section (Right) --- */
.preview-panel {
    background: #0a192f;
    /* Dark background behind paper */
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    border-radius: 8px;
    overflow-y: auto;
    border: 1px solid rgba(100, 255, 218, 0.1);
}

.preview-toolbar {
    width: 100%;
    margin-bottom: 20px;
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.toolbar-btn {
    background: #172a45;
    color: var(--color-text-main);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
}

.toolbar-btn:hover,
.toolbar-btn.active {
    background: rgba(100, 255, 218, 0.1);
    color: var(--color-secondary);
    border-color: var(--color-secondary);
}

.resume-paper {
    background: white;
    width: 210mm !important;
    min-width: 210mm !important;
    min-height: 297mm;
    padding: 0;
    /* Templates handle padding */
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    color: #333;
    /* Default text color for paper */
    overflow: hidden;
    position: relative;
    transform-origin: top center;
}

/* Scale down for smaller screens */
@media (max-width: 1200px) {
    .resume-paper {
        transform: scale(0.8);
        margin-bottom: -20%;
    }
}

@media (max-width: 768px) {
    .resume-paper {
        transform: scale(0.5);
        margin-bottom: -50%;
    }
}

/* --- Loading Overlay --- */
.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    z-index: 1000;
    border-radius: 8px;
}

.loading-overlay i {
    font-size: 3rem;
    color: var(--color-secondary);
    margin-bottom: 15px;
}