.generator-main {
    background: var(--bg-light);
    min-height: calc(100vh - 200px);
}

.generator-container {
    display: grid;
    grid-template-columns: 450px 1fr;
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}

/* Form Panel */
.form-panel {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    height: fit-content;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
}

.form-panel h2 {
    margin-bottom: 2rem;
    color: var(--primary-color);
}

.form-section {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}

.form-section:last-of-type {
    border-bottom: none;
}

.form-section h3 {
    font-size: 1.125rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    font-size: 0.875rem;
    color: var(--text-dark);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-family: inherit;
    font-size: 0.9rem;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.experience-item,
.education-item,
.project-item {
    background: var(--bg-light);
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.btn-add {
    background: transparent;
    color: var(--primary-color);
    border: 2px dashed var(--primary-color);
    padding: 0.625rem 1.25rem;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    width: 100%;
    transition: background 0.3s;
}

.btn-add:hover {
    background: rgba(37, 99, 235, 0.05);
}

.template-selector {
    display: flex;
    gap: 1rem;
}

.template-option {
    flex: 1;
    text-align: center;
    padding: 1rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
}

.template-option:hover {
    border-color: var(--primary-color);
}

.template-option input {
    display: none;
}

.template-option input:checked + span {
    color: var(--primary-color);
    font-weight: 600;
}

.template-option:has(input:checked) {
    border-color: var(--primary-color);
    background: rgba(37, 99, 235, 0.05);
}

#generateBtn {
    width: 100%;
    margin-top: 1rem;
    padding: 1rem;
    font-size: 1rem;
}

/* Preview Panel */
.preview-panel {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    height: fit-content;
    position: sticky;
    top: 100px;
}

.preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.preview-header h3 {
    font-size: 1.25rem;
}

.btn-download {
    background: var(--success-color);
    color: white;
    border: none;
    padding: 0.625rem 1.5rem;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: transform 0.2s;
}

.btn-download:hover {
    transform: translateY(-2px);
}

.resume-preview {
    padding: 2rem;
    min-height: 500px;
}

.preview-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 500px;
    color: var(--text-light);
    font-style: italic;
}

/* Responsive */
@media (max-width: 1024px) {
    .generator-container {
        grid-template-columns: 1fr;
    }
    
    .preview-panel {
        position: relative;
        top: 0;
    }
    
    .form-panel {
        max-height: none;
    }
}
