/**
 * DORA Dashboard (Assessment) — Page-specific styles
 */

.page-dashboard {
    font-family: 'Plus Jakarta Sans', -apple-system, sans-serif;
    color: #334155;
    background: #f8fafc;
}

/* Assessment container */
.assessment-container {
    max-width: 760px;
    margin: -40px auto 60px;
    padding: 0 24px;
    position: relative;
    z-index: 2;
}

/* Progress bar */
.progress-bar {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 20px 24px;
    margin-bottom: 24px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.progress-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}
.progress-text {
    font-size: 0.875rem;
    color: #475569;
    font-weight: 500;
}
.progress-percentage {
    font-family: 'Sora', sans-serif;
    font-size: 0.875rem;
    font-weight: 700;
    color: #2563eb;
}
.progress-track {
    height: 6px;
    background: #e2e8f0;
    border-radius: 3px;
    overflow: hidden;
}
.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #2563eb, #7c3aed);
    border-radius: 3px;
    width: 0%;
    transition: width 0.4s ease;
}

/* Question card */
.question-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 40px 36px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.06);
    animation: fadeIn 0.3s ease;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}
.question-number {
    font-size: 0.8125rem;
    color: #64748b;
    font-weight: 500;
    margin-bottom: 10px;
}
.question-text {
    font-family: 'Sora', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.4;
    margin: 0 0 28px;
}

/* Options */
.options-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.option-button {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.9375rem;
    color: #334155;
    text-align: left;
    width: 100%;
}
.option-button:hover {
    border-color: #2563eb;
    background: #f8fafc;
}
.option-button.selected {
    border-color: #2563eb;
    background: rgba(37,99,235,0.06);
    color: #1e293b;
    box-shadow: 0 0 0 3px rgba(37,99,235,0.12);
}
.option-icon {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid #cbd5e1;
    flex-shrink: 0;
    transition: all 0.2s ease;
}
.option-button.selected .option-icon {
    border-color: #2563eb;
    background: #2563eb;
    box-shadow: inset 0 0 0 3px white;
}

/* Navigation buttons */
.navigation-buttons {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 24px;
}
.btn-nav {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 10px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.9375rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
}
.btn-nav:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}
.btn-nav.btn-primary {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: white;
    box-shadow: 0 2px 8px rgba(37,99,235,0.25);
}
.btn-nav.btn-primary:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(37,99,235,0.35);
}
.btn-nav.btn-secondary {
    background: #ffffff;
    color: #334155;
    border: 1.5px solid #e2e8f0;
}
.btn-nav.btn-secondary:hover:not(:disabled) {
    background: #f8fafc;
    border-color: #cbd5e1;
}
.hidden {
    display: none !important;
}

/* Results */
.results-container {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 48px 36px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.06);
    text-align: center;
    animation: fadeIn 0.5s ease;
}
.results-container h2 {
    font-family: 'Sora', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    color: #0f172a !important;
    margin-bottom: 32px;
}
.score-circle {
    position: relative;
    margin: 0 auto 24px;
    width: 200px;
    height: 200px;
}
.score-value {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Sora', sans-serif;
    font-size: 3rem;
    font-weight: 800;
    color: #0f172a;
}
.score-label {
    font-size: 1.1rem;
    color: #475569;
    margin-bottom: 32px;
}
.recommendation-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 28px;
    text-align: left;
    margin-top: 28px;
}
.recommendation-card h3 {
    font-family: 'Sora', sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.recommendation-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.recommendation-card li {
    color: #334155;
    font-size: 0.9375rem;
    line-height: 1.7;
    padding: 6px 0 6px 24px;
    position: relative;
}
.recommendation-card li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 14px;
    width: 8px;
    height: 8px;
    background: #2563eb;
    border-radius: 50%;
}

/* Buttons in results */
.results-container .btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 10px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.9375rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    border: none;
}
.results-container .btn-primary {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: white;
    box-shadow: 0 2px 8px rgba(37,99,235,0.25);
}
.results-container .btn-secondary {
    background: #ffffff;
    color: #334155;
    border: 1.5px solid #e2e8f0;
}
.results-container .btn-lg {
    padding: 16px 32px;
    font-size: 1rem;
}

/* Responsive */
@media (max-width: 640px) {
    .assessment-container { margin-top: -20px; }
    .question-card { padding: 28px 20px; }
    .results-container { padding: 32px 20px; }
    .question-text { font-size: 1.05rem; }
    .navigation-buttons { flex-direction: column; }
    .score-circle { width: 160px; height: 160px; }
    .score-value { font-size: 2.5rem; }
}
