:root {
    --primary-color: #1B3A57;
    --secondary-color: #16A085;
    --accent-color: #FF6B6B;
    --text-dark: #1d1d1d;
    --text-light: #666;
    --bg-light: #FAFAFA;
    --border-color: #E0E0E0;
    --success-color: #16A085;
    --warning-color: #F39C12;
    --danger-color: #FF6B6B;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

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

/* Pages */
.page {
    display: none;
}

.page.active {
    display: block;
    animation: fadeIn 0.5s ease-in;
}

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

/* Header */
.hero {
    text-align: center;
    padding: 40px 20px;
    background: white;
    border-radius: 20px;
    margin-bottom: 30px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

.hero h1 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.hero h2 {
    font-size: 1.5rem;
    color: var(--secondary-color);
    margin-bottom: 15px;
    font-weight: 400;
}

.subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
}

/* Cards */
.card {
    background: white;
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.card h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 1.5rem;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.stat-item {
    text-align: center;
    padding: 20px;
    background: var(--bg-light);
    border-radius: 12px;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--secondary-color);
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-top: 5px;
}

/* Dimensions Preview */
.dimensions-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.dimension-chip {
    padding: 8px 16px;
    background: var(--bg-light);
    border-radius: 20px;
    font-size: 0.9rem;
    color: var(--text-dark);
    border: 2px solid var(--border-color);
}

/* Buttons */
.btn {
    padding: 12px 30px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background: var(--secondary-color);
    color: white;
}

.btn-primary:hover {
    background: #138f73;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(22, 160, 133, 0.4);
}

.btn-secondary {
    background: white;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: white;
}

.btn-large {
    padding: 16px 40px;
    font-size: 1.2rem;
}

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

/* CTA Section */
.cta-section {
    text-align: center;
    margin: 40px 0;
}

.cta-section .note {
    margin-top: 15px;
    color: white;
    font-size: 0.9rem;
}

/* Progress Bar */
.progress-header {
    background: white;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.progress-bar-container {
    width: 100%;
    height: 8px;
    background: var(--bg-light);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--secondary-color), var(--primary-color));
    border-radius: 10px;
    transition: width 0.3s ease;
}

.progress-text {
    text-align: center;
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Question Container */
.question-container {
    background: white;
    border-radius: 16px;
    padding: 40px;
    margin-bottom: 30px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    min-height: 400px;
}

.dimension-badge {
    display: inline-block;
    padding: 6px 12px;
    background: var(--secondary-color);
    color: white;
    border-radius: 20px;
    font-size: 0.85rem;
    margin-bottom: 15px;
}

.question-title {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 30px;
    line-height: 1.5;
}

.options-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.option-item {
    padding: 20px;
    background: var(--bg-light);
    border: 3px solid transparent;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.option-item:hover {
    border-color: var(--secondary-color);
    background: white;
    transform: translateX(5px);
}

.option-item.selected {
    border-color: var(--secondary-color);
    background: white;
    box-shadow: 0 4px 12px rgba(22, 160, 133, 0.2);
}

.option-level {
    display: inline-block;
    padding: 4px 12px;
    background: var(--secondary-color);
    color: white;
    border-radius: 12px;
    font-size: 0.75rem;
    margin-bottom: 8px;
}

.option-text {
    font-size: 1rem;
    color: var(--text-dark);
}

/* Navigation Buttons */
.navigation-buttons {
    display: flex;
    justify-content: space-between;
    gap: 15px;
}

.navigation-buttons .btn {
    flex: 1;
    max-width: 200px;
}

/* Results Page */
.results-header {
    text-align: center;
    padding: 40px 20px;
    background: white;
    border-radius: 20px;
    margin-bottom: 30px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

.results-header h1 {
    font-size: 2.2rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

/* Score Card */
.score-card {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    text-align: center;
}

.overall-score {
    padding: 30px;
}

.score-label {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 10px;
}

.score-value {
    font-size: 5rem;
    font-weight: 700;
    margin: 10px 0;
}

.score-level {
    font-size: 1.5rem;
    font-weight: 600;
    padding: 10px 20px;
    background: rgba(255,255,255,0.2);
    border-radius: 30px;
    display: inline-block;
}

.maturity-description {
    background: rgba(255,255,255,0.1);
    padding: 20px;
    border-radius: 12px;
    margin-top: 20px;
    text-align: left;
}

/* Dimensions Scores */
.dimensions-scores {
    display: grid;
    gap: 20px;
}

.dimension-score-card {
    background: white;
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

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

.dimension-name {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-color);
}

.dimension-score-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--secondary-color);
}

.dimension-bar {
    height: 12px;
    background: var(--bg-light);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 15px;
}

.dimension-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--secondary-color), var(--primary-color));
    border-radius: 10px;
    transition: width 0.5s ease;
}

.dimension-status {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.status-critical { background: #FFE8E8; color: #FF6B6B; }
.status-low { background: #FFF4E8; color: #F39C12; }
.status-medium { background: #E8F4FF; color: #3498DB; }
.status-good { background: #E8F5E8; color: #16A085; }
.status-excellent { background: #E8FFE8; color: #27AE60; }

.dimension-recommendations {
    margin-top: 15px;
    padding: 15px;
    background: var(--bg-light);
    border-radius: 8px;
}

.dimension-recommendations h4 {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 1rem;
}

.dimension-recommendations ul {
    margin-left: 20px;
}

.dimension-recommendations li {
    margin-bottom: 8px;
    color: var(--text-dark);
}

/* Action Plan */
#action-plan {
    display: grid;
    gap: 20px;
}

.priority-section {
    padding: 20px;
    border-radius: 12px;
    border-left: 5px solid;
}

.priority-high {
    background: #FFE8E8;
    border-color: var(--danger-color);
}

.priority-medium {
    background: #FFF4E8;
    border-color: var(--warning-color);
}

.priority-low {
    background: #E8F5E8;
    border-color: var(--success-color);
}

.priority-section h4 {
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.action-item {
    padding: 15px;
    background: white;
    border-radius: 8px;
    margin-bottom: 10px;
}

.action-item strong {
    color: var(--primary-color);
}

/* Radar Chart */
#radar-chart {
    max-width: 100%;
    height: auto !important;
}

/* Footer */
.footer {
    text-align: center;
    padding: 20px;
    color: white;
    margin-top: 40px;
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .hero h2 {
        font-size: 1.2rem;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .question-container {
        padding: 20px;
    }
    
    .question-title {
        font-size: 1.1rem;
    }
    
    .navigation-buttons {
        flex-direction: column;
    }
    
    .navigation-buttons .btn {
        max-width: 100%;
    }
    
    .score-value {
        font-size: 3.5rem;
    }
}

/* Print styles */
@media print {
    body {
        background: white;
        padding: 0;
    }
    
    .navigation-buttons,
    .cta-section,
    .progress-header {
        display: none;
    }
}

/* Model Page Styles */
.maturity-levels-grid {
    display: grid;
    gap: 15px;
    margin-top: 20px;
}

.maturity-level-card {
    padding: 20px;
    border-radius: 12px;
    border-left: 5px solid;
}

.maturity-level-card.level-0 {
    background: #FFE8E8;
    border-color: #E74C3C;
}

.maturity-level-card.level-1 {
    background: #FFF4E8;
    border-color: #E67E22;
}

.maturity-level-card.level-2 {
    background: #FFF9E8;
    border-color: #F39C12;
}

.maturity-level-card.level-3 {
    background: #E8F4FF;
    border-color: #3498DB;
}

.maturity-level-card.level-4 {
    background: #E8F5E8;
    border-color: #27AE60;
}

.level-badge {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(0,0,0,0.1);
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.maturity-level-card h4 {
    color: var(--text-dark);
    margin: 8px 0;
    font-size: 1.1rem;
}

.maturity-level-card p {
    margin: 5px 0;
    color: var(--text-dark);
    font-size: 0.9rem;
}

.maturity-level-card p:first-of-type {
    font-weight: 600;
    color: var(--primary-color);
}

/* Dimensions Explanation */
.dimensions-explanation {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 20px;
}

.dimension-explain-card {
    padding: 20px;
    border-radius: 12px;
    border-left: 5px solid;
}

.dimension-explain-card.priority-critical {
    background: #FFE8E8;
    border-color: #E74C3C;
}

.dimension-explain-card.priority-high {
    background: #FFF4E8;
    border-color: #E67E22;
}

.dimension-explain-card.priority-medium {
    background: #FFF9E8;
    border-color: #F39C12;
}

.dimension-explain-card.priority-low {
    background: #E8F4FF;
    border-color: #3498DB;
}

.dimension-explain-card.priority-philosophical {
    background: #F0E8FF;
    border-color: #9B59B6;
}

.dimension-explain-header {
    display: flex;
    gap: 15px;
    align-items: flex-start;
    margin-bottom: 15px;
}

.dimension-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.dimension-explain-card h4 {
    color: var(--primary-color);
    margin: 0 0 8px 0;
    font-size: 1.1rem;
}

.consensus-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.consensus-badge.high {
    background: #E74C3C;
    color: white;
}

.consensus-badge.medium {
    background: #E67E22;
    color: white;
}

.consensus-badge.low {
    background: #3498DB;
    color: white;
}

.consensus-badge.verylow {
    background: #9B59B6;
    color: white;
}

.dimension-explain-card p {
    margin: 10px 0;
    color: var(--text-dark);
    line-height: 1.6;
}

.dimension-explain-card p strong {
    color: var(--primary-color);
}

/* Responsive for model page */
@media (max-width: 768px) {
    .dimension-icon {
        font-size: 1.5rem;
    }
    
    .dimension-explain-header {
        gap: 10px;
    }
}
