/* jobDNA - Personality Test Styles - UXP 7.0.0 Compatible */
* {
    margin: 0;
    padding: 0;
}

body {
    font-family: Arial, Helvetica;
    line-height: 1.6;
    color: #333;
    background: #f5f7fa;
    padding: 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    min-height: calc(100vh - 40px);
}

/* Header Styles */
.header {
    background: #4361ee;
    color: white;
    padding: 30px 20px;
    text-align: center;
}

.logo h1 {
    font-size: 36px;
    margin-bottom: 10px;
}

.logo .tagline {
    font-size: 18px;
    opacity: 0.9;
    margin-bottom: 25px;
}

.progress-container {
    max-width: 600px;
    margin: 0 auto;
}

.progress-bar {
    height: 10px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-fill {
    height: 100%;
    background: #2ecc71;
    width: 0%;
}

.progress-text {
    font-size: 14px;
    opacity: 0.9;
}

/* Main Content */
.quiz-container {
    padding: 40px 20px;
}

#quizContent {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}

/* Welcome Screen */
.welcome-card {
    background: white;
    padding: 40px;
    border-radius: 12px;
    text-align: center;
}

.welcome-card h2 {
    color: #4361ee;
    margin-bottom: 20px;
    font-size: 28px;
}

.welcome-card > p {
    color: #666;
    margin-bottom: 30px;
    font-size: 18px;
}

.test-info {
    margin: 30px 0;
}

.info-item {
    display: flex;
    align-items: flex-start;
    text-align: left;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
    margin-bottom: 15px;
}

.info-item i {
    font-size: 24px;
    color: #4361ee;
    margin-top: 5px;
    margin-right: 15px;
}

.info-item h3 {
    color: #333;
    margin-bottom: 5px;
}

.info-item p {
    color: #666;
    font-size: 14px;
}

.instructions {
    background: #f8f9ff;
    padding: 20px;
    border-radius: 12px;
    margin: 30px 0;
    text-align: left;
}

.instructions h3 {
    color: #4361ee;
    margin-bottom: 15px;
}

.instructions ul {
    padding-left: 0;
}

.instructions li {
    padding: 8px 0;
    padding-left: 30px;
    position: relative;
}

.instructions li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #4cc9f0;
    font-weight: bold;
}

/* Buttons */
.btn-start {
    background: #4361ee;
    color: white;
    border: none;
    padding: 15px 40px;
    font-size: 18px;
    border-radius: 50px;
    cursor: pointer;
    margin-top: 20px;
}

.btn-start:hover {
    background: #3a56d4;
}

/* Question Screen */
.question-card {
    background: white;
    padding: 30px;
    border-radius: 12px;
}

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

.question-number {
    color: #666;
    font-size: 14px;
}

.question-text {
    font-size: 22px;
    line-height: 1.5;
    margin-bottom: 30px;
    color: #333;
    min-height: 80px;
}

/* Answer Options */
.answer-options {
    margin: 30px 0;
}

.answer-option {
    padding: 20px;
    background: #f8f9fa;
    border: 2px solid transparent;
    border-radius: 12px;
    cursor: pointer;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.answer-option:hover {
    background: #e2e6ea;
}

.answer-option.selected {
    background: white;
    border-color: #4361ee;
}

.answer-option .option-label {
    width: 40px;
    height: 40px;
    background: #4361ee;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-right: 15px;
}

.answer-option .option-text {
    flex: 1;
    font-size: 18px;
}

.answer-option .option-value {
    color: #666;
    font-size: 14px;
    font-weight: 600;
}

/* Navigation Buttons */
.navigation-buttons {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 30px;
    padding-top: 30px;
    border-top: 2px solid #e9ecef;
}

.btn-nav {
    padding: 12px 30px;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    cursor: pointer;
}

.btn-prev {
    background: #f8f9fa;
    color: #333;
}

.btn-prev:hover:not(:disabled) {
    background: #e2e6ea;
}

.btn-next {
    background: #4361ee;
    color: white;
}

.btn-next:hover {
    background: #3a56d4;
}

.btn-complete {
    background: #f72585;
    color: white;
}

.btn-complete:hover {
    background: #e11576;
}

.btn-nav:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Time Info */
.time-info {
    text-align: center;
    margin-top: 20px;
    color: #666;
    font-size: 14px;
}

.time-info i {
    color: #4361ee;
    margin-right: 5px;
}

/* Results Screen */
.results-card {
    background: white;
    padding: 40px;
    border-radius: 12px;
    text-align: center;
}

.results-card h2 {
    color: #4361ee;
    margin-bottom: 20px;
    font-size: 28px;
}

.results-card > p {
    color: #666;
    margin-bottom: 30px;
    font-size: 18px;
}

.results-summary {
    margin: 30px 0;
}

.summary-item {
    display: flex;
    align-items: flex-start;
    text-align: left;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
    margin-bottom: 15px;
}

.summary-item i {
    font-size: 24px;
    color: #4cc9f0;
    margin-top: 5px;
    margin-right: 15px;
}

.summary-item h3 {
    color: #333;
    margin-bottom: 5px;
}

.summary-item p {
    color: #666;
    font-size: 14px;
}

.results-actions {
    margin: 30px 0;
}

.btn-action {
    padding: 15px 30px;
    background: #4361ee;
    color: white;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-size: 16px;
    margin: 0 10px 10px 10px;
}

.btn-action:hover {
    background: #3a56d4;
}

.btn-secondary {
    background: #666;
}

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

.privacy-notice {
    background: #f8f9ff;
    padding: 20px;
    border-radius: 12px;
    margin-top: 30px;
    text-align: left;
}

.privacy-notice p {
    color: #666;
}

.privacy-notice i {
    color: #4cc9f0;
    margin-right: 10px;
}

/* Footer */
.footer {
    background: #212529;
    color: white;
    padding: 20px;
    text-align: center;
}

.footer p {
    margin-bottom: 10px;
}

.footer-links {
    font-size: 14px;
}

.footer-links a {
    color: #e9ecef;
    text-decoration: none;
}

.footer-links a:hover {
    color: #4cc9f0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 10px;
        margin: 10px;
    }
    
    .header {
        padding: 20px 15px;
    }
    
    .logo h1 {
        font-size: 28px;
    }
    
    .quiz-container {
        padding: 20px 15px;
    }
    
    .welcome-card,
    .question-card,
    .results-card {
        padding: 20px;
    }
    
    .question-text {
        font-size: 20px;
    }
    
    .answer-option {
        padding: 15px;
    }
    
    .navigation-buttons {
        flex-direction: column;
    }
    
    .btn-nav {
        width: 100%;
        margin-bottom: 10px;
    }
    
    .results-actions {
        display: flex;
        flex-direction: column;
    }
    
    .btn-action {
        width: 100%;
        margin: 0 0 10px 0;
    }
}

@media (max-width: 480px) {
    .question-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .answer-option {
        flex-direction: column;
        text-align: center;
    }
    
    .answer-option .option-label {
        margin-right: 0;
        margin-bottom: 10px;
    }
    
    .answer-option .option-text {
        margin-bottom: 10px;
    }
}

/* Analysis Report Styles */
.analysis-report {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    max-width: 1000px;
    margin: 0 auto;
}

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

.report-header h2 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 28px;
}

.report-meta {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    font-size: 14px;
    color: #666;
}

.report-meta span {
    background: #f8f9fa;
    padding: 8px 15px;
    border-radius: 20px;
    border: 1px solid #e9ecef;
}

.report-meta strong {
    color: #2c3e50;
    font-weight: 600;
}

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

.report-section h3 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f0f0f0;
}

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

.score-item {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    border: 1px solid #e9ecef;
}

.score-category {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 10px;
    font-size: 16px;
}

.score-bar {
    height: 30px;
    background: #e9ecef;
    border-radius: 15px;
    margin-bottom: 10px;
    position: relative;
    overflow: hidden;
}

.score-fill {
    height: 100%;
    background: linear-gradient(90deg, #3498db, #2ecc71);
    border-radius: 15px;
    transition: width 0.5s ease;
}

.score-value {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.score-interpretation {
    font-size: 14px;
    color: #666;
    text-align: center;
}

.insights-list,
.recommendations-list,
.hesitation-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.insight-item,
.recommendation-item {
    background: #f8f9fa;
    padding: 15px 20px;
    border-radius: 8px;
    border-left: 4px solid #3498db;
    font-size: 15px;
    line-height: 1.5;
}

.recommendation-item {
    border-left-color: #2ecc71;
}

.hesitation-item {
    background: #fff8e1;
    padding: 15px 20px;
    border-radius: 8px;
    border-left: 4px solid #f39c12;
    font-size: 14px;
}

.hesitation-question {
    font-weight: 500;
    margin-bottom: 5px;
    color: #2c3e50;
}

.hesitation-time {
    color: #666;
    font-size: 13px;
}

.report-footer {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
    text-align: center;
    color: #999;
    font-size: 14px;
}

.analysis-error {
    background: #ffeaea;
    border: 1px solid #ffcccc;
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    margin: 20px 0;
}

.analysis-error h3 {
    color: #e74c3c;
    margin-bottom: 15px;
}

.analysis-error p {
    color: #666;
    margin-bottom: 10px;
}

/* Analysis Controls */
.analysis-controls {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
}

.analysis-btn {
    padding: 12px 25px;
    background: #3498db;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s ease;
}

.analysis-btn:hover {
    background: #2980b9;
}

.analysis-btn.secondary {
    background: #95a5a6;
}

.analysis-btn.secondary:hover {
    background: #7f8c8d;
}

/* Loading State */
.analysis-loading {
    text-align: center;
    padding: 40px;
}

.analysis-loading .spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive adjustments for analysis report */
@media (max-width: 768px) {
    .analysis-report {
        padding: 20px;
    }
    
    .report-meta {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
    
    .scores-grid {
        grid-template-columns: 1fr;
    }
    
    .analysis-controls {
        flex-direction: column;
    }
    
    .analysis-btn {
        width: 100%;
    }
}
