/* Resume Generator Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #2d3748;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

/* Header */
.header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 40px;
    text-align: center;
}

.header-content {
    max-width: 800px;
    margin: 0 auto;
}

.back-link {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 14px;
    display: inline-block;
    margin-bottom: 20px;
    transition: opacity 0.3s;
}

.back-link:hover {
    opacity: 0.7;
}

.header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.header p {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Progress Bar */
.progress-container {
    padding: 30px 40px;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.progress-bar {
    height: 6px;
    background: #e2e8f0;
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 30px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 3px;
    width: 25%;
    transition: width 0.5s ease;
}

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

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    opacity: 0.5;
    transition: opacity 0.3s;
}

.step.active {
    opacity: 1;
}

.step-number {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #e2e8f0;
    color: #718096;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    transition: all 0.3s;
}

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

.step-label {
    font-size: 0.9rem;
    color: #4a5568;
    font-weight: 500;
}

/* Main Content */
.main-content {
    padding: 40px;
}

.form-section {
    display: none;
    animation: fadeIn 0.5s ease;
}

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

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

.form-section h2 {
    font-size: 1.8rem;
    color: #1a202c;
    margin-bottom: 10px;
}

.section-description {
    color: #718096;
    margin-bottom: 30px;
}

/* Form Elements */
.form-group {
    margin-bottom: 25px;
}

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

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s;
    font-family: inherit;
}

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

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

/* Experience Selector */
.experience-selector {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.experience-card {
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
}

.experience-card:hover {
    border-color: #667eea;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.1);
}

.experience-card.selected {
    border-color: #667eea;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05), rgba(118, 75, 162, 0.05));
}

.exp-checkbox {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    transition: all 0.3s;
}

.experience-card.selected .exp-checkbox {
    background: linear-gradient(135deg, #667eea, #764ba2);
}

.experience-card h3 {
    font-size: 1.1rem;
    color: #2d3748;
    margin-bottom: 5px;
}

.exp-period {
    color: #718096;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.exp-highlights {
    list-style: none;
    font-size: 0.9rem;
    color: #4a5568;
}

.exp-highlights li {
    padding-left: 20px;
    position: relative;
    margin-bottom: 5px;
}

.exp-highlights li:before {
    content: "•";
    position: absolute;
    left: 0;
    color: #667eea;
}

/* Skills Selector */
.skills-selector {
    margin-bottom: 30px;
}

.skills-selector h3 {
    font-size: 1.2rem;
    color: #2d3748;
    margin-bottom: 15px;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.skill-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: #f8f9fa;
    border: 2px solid #e2e8f0;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.95rem;
}

.skill-tag:hover {
    border-color: #667eea;
}

.skill-tag input {
    width: auto;
    margin: 0;
}

.skill-tag input:checked+* {
    color: #667eea;
}

/* Customization Options */
.customization-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

/* Summary Card */
.summary-card {
    background: #f8f9fa;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 30px;
}

.summary-card h3 {
    font-size: 1.2rem;
    color: #2d3748;
    margin-bottom: 20px;
}

#summaryContent {
    color: #4a5568;
    line-height: 1.8;
}

.summary-item {
    margin-bottom: 12px;
    padding-left: 20px;
    position: relative;
}

.summary-item:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #667eea;
    font-weight: bold;
}

/* AI Status */
.ai-status {
    text-align: center;
    padding: 30px;
    margin-bottom: 30px;
}

.status-icon {
    font-size: 3rem;
    margin-bottom: 15px;
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

.ai-status p {
    font-size: 1.1rem;
    color: #4a5568;
}

/* Buttons */
.button-group {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
}

.btn {
    padding: 14px 28px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

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

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

.btn-secondary {
    background: white;
    color: #667eea;
    border: 2px solid #667eea;
}

.btn-secondary:hover {
    background: #f8f9fa;
}

.btn-generate {
    font-size: 1.1rem;
    padding: 16px 32px;
}

.loading-spinner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* Resume Output */
.output-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 20px;
}

.output-actions {
    display: flex;
    gap: 10px;
}

.resume-preview {
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 40px;
    min-height: 600px;
    margin-bottom: 30px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.regenerate-section {
    text-align: center;
    padding: 30px;
    background: #f8f9fa;
    border-radius: 12px;
}

.regenerate-section p {
    color: #718096;
    margin-bottom: 20px;
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loading-overlay.active {
    display: flex;
}

.loading-content {
    background: white;
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    max-width: 400px;
}

.ai-animation {
    font-size: 4rem;
    margin-bottom: 20px;
    animation: bounce 1s infinite;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

.loading-content h3 {
    font-size: 1.4rem;
    color: #2d3748;
    margin-bottom: 10px;
}

#loadingMessage {
    color: #718096;
    margin-bottom: 20px;
}

.progress-loader {
    height: 6px;
    background: #e2e8f0;
    border-radius: 3px;
    overflow: hidden;
}

.progress-loader-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea, #764ba2);
    width: 0;
    animation: load 3s ease-in-out infinite;
}

@keyframes load {
    0% {
        width: 0;
    }

    50% {
        width: 70%;
    }

    100% {
        width: 100%;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        border-radius: 0;
    }

    body {
        padding: 0;
    }

    .header h1 {
        font-size: 2rem;
    }

    .progress-steps {
        flex-wrap: wrap;
        gap: 15px;
    }

    .experience-selector {
        grid-template-columns: 1fr;
    }

    .customization-options {
        grid-template-columns: 1fr;
    }

    .button-group {
        flex-direction: column;
    }

    .output-header {
        flex-direction: column;
    }

    .output-actions {
        flex-wrap: wrap;
        width: 100%;
    }

    .output-actions .btn {
        flex: 1;
    }
}