/* Resume Builder Styles */

.resume-builder-container {
    min-height: calc(100vh - 150px);
    background-color: #f8f9fa;
}

.form-panel {
    background-color: white;
    min-height: calc(100vh - 150px);
    overflow-y: auto;
    border-right: 1px solid #dee2e6;
}

.preview-panel {
    background-color: #e9ecef;
    min-height: calc(100vh - 150px);
    overflow-y: auto;
    position: sticky;
    top: 0;
}

.preview-header {
    background-color: white;
    padding: 1rem;
    border-bottom: 2px solid #dee2e6;
    position: sticky;
    top: 0;
    z-index: 10;
}

.preview-content {
    padding: 2rem;
    max-width: 850px;
    margin: 0 auto;
    background-color: white;
    min-height: calc(100vh - 200px);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

/* Progress Indicator */
.progress-indicator {
    padding: 1rem 0;
}

.progress-steps {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    position: relative;
    z-index: 1;
}

.step-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #e9ecef;
    border: 2px solid #dee2e6;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: #6c757d;
    margin-bottom: 0.5rem;
    transition: all 0.3s;
}

.progress-step.active .step-circle {
    background-color: #8B0000;
    border-color: #8B0000;
    color: white;
}

.step-label {
    font-size: 0.75rem;
    color: #6c757d;
    text-align: center;
}

.progress-step.active .step-label {
    color: #8B0000;
    font-weight: bold;
}

/* Form Steps */
.form-step {
    display: none;
}

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

/* Form Navigation */
.form-navigation {
    display: flex;
    justify-content: space-between;
    padding-top: 1rem;
    border-top: 1px solid #dee2e6;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

/* Experience/Education Cards */
.experience-card,
.education-card {
    background-color: #f8f9fa;
}

/* Skills */
.skills-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.skill-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: #8B0000;
    color: white;
    padding: 0.375rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
}

.skill-tag .btn-close {
    font-size: 0.5rem;
    opacity: 0.8;
}

.skill-tag .btn-close:hover {
    opacity: 1;
}

/* Resume Templates - Classic */
.resume-classic {
    font-family: 'Georgia', serif;
    color: #333;
    line-height: 1.6;
}

.resume-classic .resume-header {
    text-align: center;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid #333;
    margin-bottom: 1.5rem;
}

.resume-classic h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: #1a1a1a;
}

.resume-classic .headline {
    font-size: 1.25rem;
    color: #666;
    margin-bottom: 0.75rem;
}

.resume-classic .contact-info {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.resume-classic .contact-info span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.resume-classic .links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 0.5rem;
}

.resume-classic .links a {
    color: #8B0000;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.resume-classic .links a:hover {
    text-decoration: underline;
}

.resume-classic .resume-section {
    margin-bottom: 2rem;
}

.resume-classic .resume-section h2 {
    font-size: 1.5rem;
    color: #1a1a1a;
    border-bottom: 1px solid #333;
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}

.resume-classic .experience-item,
.resume-classic .education-item {
    margin-bottom: 1.5rem;
}

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

.resume-classic h3 {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
    color: #1a1a1a;
}

.resume-classic .company,
.resume-classic .school {
    font-style: italic;
    color: #666;
}

.resume-classic .date {
    color: #666;
    font-size: 0.9rem;
    white-space: nowrap;
}

.resume-classic ul {
    margin-left: 1.5rem;
    margin-top: 0.5rem;
}

.resume-classic li {
    margin-bottom: 0.25rem;
}

.resume-classic .skills-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.resume-classic .skill-item {
    background-color: #f0f0f0;
    padding: 0.375rem 0.75rem;
    border-radius: 4px;
    font-size: 0.9rem;
}

/* Resume Templates - Modern */
.resume-modern {
    display: grid;
    grid-template-columns: 280px 1fr;
    font-family: 'Roboto', sans-serif;
    min-height: 100%;
}

.resume-sidebar {
    background: linear-gradient(135deg, #8B0000 0%, #5a0000 100%);
    color: white;
    padding: 2rem 1.5rem;
}

.profile-section {
    text-align: center;
    margin-bottom: 2rem;
}

.profile-circle {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: bold;
    margin: 0 auto 1rem;
    border: 3px solid rgba(255, 255, 255, 0.3);
}

.resume-modern .profile-section h2 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.resume-modern .profile-section .title {
    font-size: 0.9rem;
    opacity: 0.9;
}

.sidebar-section {
    margin-bottom: 2rem;
}

.sidebar-section h3 {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.sidebar-section p {
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sidebar-section a {
    color: white;
    text-decoration: none;
}

.sidebar-section a:hover {
    text-decoration: underline;
}

.skills-modern {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.skill-modern {
    background-color: rgba(255, 255, 255, 0.2);
    padding: 0.375rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
    text-align: center;
}

.resume-main {
    padding: 2rem;
    background-color: white;
    color: #333;
}

.main-section {
    margin-bottom: 2rem;
}

.main-section h2 {
    font-size: 1.75rem;
    color: #8B0000;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #8B0000;
}

.modern-item {
    margin-bottom: 1.5rem;
}

.modern-item h3 {
    font-size: 1.2rem;
    color: #1a1a1a;
    margin-bottom: 0.25rem;
}

.modern-item .meta {
    font-weight: 500;
    color: #666;
    margin-bottom: 0.25rem;
}

.modern-item .date {
    color: #999;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.modern-item ul {
    margin-left: 1.5rem;
    margin-top: 0.5rem;
}

.modern-item li {
    margin-bottom: 0.25rem;
}

/* Responsive Design */
@media (max-width: 991px) {
    .form-panel,
    .preview-panel {
        min-height: auto;
    }
    
    .preview-panel {
        position: static;
        border-top: 2px solid #dee2e6;
        border-right: none;
    }
    
    .resume-modern {
        grid-template-columns: 1fr;
    }
    
    .progress-steps {
        overflow-x: auto;
    }
}

@media (max-width: 576px) {
    .step-label {
        font-size: 0.65rem;
    }
    
    .step-circle {
        width: 35px;
        height: 35px;
        font-size: 0.875rem;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .action-buttons button,
    .action-buttons select {
        width: 100%;
    }
    
    .resume-classic h1 {
        font-size: 1.75rem;
    }
    
    .resume-classic .headline {
        font-size: 1rem;
    }
    
    .resume-classic .contact-info {
        flex-direction: column;
        gap: 0.5rem;
    }
}

/* Print Styles */
@media print {
    body {
        background: white;
    }
    
    .utility-bar,
    .navbar,
    .form-panel,
    .preview-header,
    .action-buttons,
    .form-navigation {
        display: none !important;
    }
    
    .preview-panel {
        position: static;
        width: 100%;
        max-width: 100%;
        min-height: auto;
    }
    
    .preview-content {
        box-shadow: none;
        padding: 0;
        max-width: 100%;
    }
    
    .resume-modern,
    .resume-classic {
        page-break-inside: avoid;
    }
    
    .resume-section,
    .main-section {
        page-break-inside: avoid;
    }
    
    @page {
        margin: 0.5in;
    }
}
