/* Resume Builder Styles */

.resume-builder-container {
    min-height: 100vh;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    padding-top: 80px;
}

/* Progress Bar */
.progress-container {
    background: white;
    padding: 20px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.progress-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.progress-bar::before {
    content: '';
    position: absolute;
    top: 25px;
    left: 10%;
    right: 10%;
    height: 2px;
    background: #e0e0e0;
    z-index: 1;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
    background: white;
    padding: 0 15px;
}

.step-number {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #e0e0e0;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.1rem;
    margin-bottom: 8px;
    transition: all 0.3s ease;
}

.step-label {
    font-size: 0.9rem;
    color: #666;
    font-weight: 500;
    text-align: center;
}

.progress-step.active .step-number {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
}

.progress-step.active .step-label {
    color: #333;
    font-weight: 600;
}

.progress-step.completed .step-number {
    background: #28a745;
    color: white;
}

/* Builder Content */
.builder-content {
    display: flex;
    max-width: 1400px;
    margin: 0 auto;
    gap: 30px;
    padding: 0 20px;
}

.form-section {
    flex: 1;
    max-width: 800px;
}

.preview-section {
    flex: 0 0 400px;
    position: sticky;
    top: 100px;
    height: fit-content;
}

/* Form Container */
.form-container {
    background: white;
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.form-step {
    display: none;
}

.form-step.active {
    display: block;
    animation: fadeInUp 0.5s ease;
}

.form-step h2 {
    color: #333;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1.8rem;
}

.form-step h2 i {
    color: #667eea;
}

/* Form Grid */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #fafafa;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
    background: white;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

/* Checkbox Group */
.checkbox-group {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
    margin: 0;
}

.checkbox-group label {
    margin: 0;
    font-weight: normal;
    cursor: pointer;
}

/* Experience/Education Items */
.experience-item,
.education-item,
.certification-item,
.language-item {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 20px;
    position: relative;
}

.item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.item-header h3 {
    color: #495057;
    font-size: 1.2rem;
    margin: 0;
}

.remove-item {
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.remove-item:hover {
    background: #c82333;
    transform: scale(1.1);
}

/* Add Item Button */
.add-item-btn {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    padding: 15px 25px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    margin-top: 20px;
}

.add-item-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

/* Skills Section */
.skills-section {
    margin-bottom: 30px;
}

.skills-section h3 {
    color: #495057;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.skills-input-container {
    margin-bottom: 20px;
}

.skills-input-container input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    margin-bottom: 15px;
}

.skills-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.skill-tag {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    animation: fadeInScale 0.3s ease;
}

.skill-tag .remove-skill {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 1.1rem;
    padding: 0;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.skill-tag .remove-skill:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Template Selection */
.template-selection {
    margin-bottom: 30px;
}

.template-selection h3 {
    color: #495057;
    margin-bottom: 20px;
    font-size: 1.3rem;
}

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

.template-option {
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.template-option:hover {
    transform: translateY(-5px);
}

.template-option.active .template-preview {
    border-color: #667eea;
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.3);
}

.template-preview {
    width: 100%;
    height: 200px;
    border: 3px solid #e0e0e0;
    border-radius: 10px;
    margin-bottom: 10px;
    position: relative;
    overflow: hidden;
    background: white;
    transition: all 0.3s ease;
}

.template-header {
    height: 40px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    margin-bottom: 15px;
}

.template-content {
    padding: 15px;
}

.template-line {
    height: 8px;
    background: #e0e0e0;
    border-radius: 4px;
    margin-bottom: 8px;
}

.template-line.short {
    width: 60%;
}

.template-preview.classic .template-header {
    background: #495057;
    height: 30px;
}

.template-preview.creative {
    display: flex;
}

.template-sidebar {
    width: 40%;
    background: #f8f9fa;
    border-right: 1px solid #e0e0e0;
}

.template-preview.creative .template-content {
    flex: 1;
}

.template-option span {
    font-weight: 600;
    color: #495057;
}

/* Preview Actions */
.preview-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
}

/* Form Navigation */
.form-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid #e9ecef;
}

.btn-primary,
.btn-secondary {
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #5a6268;
    transform: translateY(-2px);
}

/* Preview Section */
.preview-container {
    background: white;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    height: fit-content;
}

.preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e9ecef;
}

.preview-header h3 {
    color: #495057;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.preview-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.zoom-btn {
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    width: 35px;
    height: 35px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.zoom-btn:hover {
    background: #e9ecef;
}

.zoom-level {
    font-size: 0.9rem;
    font-weight: 600;
    color: #495057;
    min-width: 45px;
    text-align: center;
}

.resume-preview {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    min-height: 600px;
    background: white;
    overflow: auto;
    transform-origin: top left;
    transition: transform 0.3s ease;
}

.preview-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 600px;
    color: #6c757d;
    text-align: center;
}

.preview-placeholder i {
    font-size: 4rem;
    margin-bottom: 20px;
    opacity: 0.5;
}

.preview-placeholder p {
    font-size: 1.1rem;
    margin: 0;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.8);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Responsive Design */
@media (max-width: 1200px) {
    .builder-content {
        flex-direction: column;
    }

    .preview-section {
        position: static;
        flex: none;
        max-width: none;
    }
}

@media (max-width: 768px) {
    .form-grid {
        grid-template-columns: 1fr;
    }

    .form-container {
        padding: 20px;
    }

    .progress-bar {
        flex-wrap: wrap;
        gap: 10px;
    }

    .step-number {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .step-label {
        font-size: 0.8rem;
    }

    .template-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    }

    .template-preview {
        height: 150px;
    }

    .form-navigation {
        flex-direction: column;
        gap: 15px;
    }

    .btn-primary,
    .btn-secondary {
        justify-content: center;
    }
}

/* Resume Preview Styles */
.resume-content {
    padding: 40px;
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
}

.resume-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #667eea;
}

.resume-name {
    font-size: 2.5rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
}

.resume-contact {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    color: #666;
    font-size: 0.95rem;
}

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

.resume-section-title {
    font-size: 1.4rem;
    font-weight: bold;
    color: #667eea;
    margin-bottom: 15px;
    padding-bottom: 5px;
    border-bottom: 1px solid #e0e0e0;
}

.resume-item {
    margin-bottom: 20px;
}

.resume-item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 5px;
}

.resume-item-title {
    font-weight: bold;
    color: #333;
}

.resume-item-company {
    color: #667eea;
    font-weight: 600;
}

.resume-item-date {
    color: #666;
    font-size: 0.9rem;
}

.resume-item-description {
    color: #555;
    margin-top: 8px;
}

.resume-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.resume-skill {
    background: #f8f9fa;
    color: #495057;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.9rem;
    border: 1px solid #e9ecef;
}

.watermark {
    position: absolute;
    bottom: 20px;
    right: 20px;
    color: #ccc;
    font-size: 0.8rem;
    opacity: 0.7;
}