/* Reset and Base Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: #FAFAFD;
    color: #14171a;
    font-family: "DMSans-Regular", Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
}

/* Outer Page Wrapper - Matches Project Theme .surveyPage */
.surveyPage {
    background-color: #FAFAFD;
    min-height: 100vh;
    padding: 32px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Compact Card Container - Matches Project Theme .surveyCard */
.result-container,
.surveyCard {
    background-color: #ffffff;
    border: 1px solid #EBEBEB;
    border-radius: 6px;
    padding: 28px 32px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    max-width: 660px;
    width: 100%;
    margin: 0 auto;
}

/* Header Section (Compact) */
.result-header {
    background: #F8F7FC;
    border: 1px solid #EAE8F2;
    border-radius: 6px;
    padding: 20px 24px;
    margin-bottom: 20px;
}

/* Theme Badge Pill */
.badge_text {
    background: rgba(114, 0, 203, 0.08);
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    margin-bottom: 12px;
    font-size: 12px;
    font-weight: 700;
    color: #7200CB;
    font-family: "DMSans-SemiBold", Arial, sans-serif;
}

.subtitle-tag {
    font-family: "DMSans-Regular", Arial, sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: #6c727e;
    margin-bottom: 12px;
}

.score-display {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 12px;
}

.score-value {
    font-size: 42px;
    font-weight: 700;
    color: #14171a;
    line-height: 1;
    letter-spacing: -1px;
    font-family: "DMSans-SemiBold", Arial, sans-serif;
}

.score-max {
    font-family: "DMSans-Regular", Arial, sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: #6c727e;
    background: #ffffff;
    border: 1px solid #E4E1EE;
    border-radius: 50px;
    padding: 2px 10px;
}

.level-title {
    font-family: "DMSans-SemiBold", Arial, sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: #14171a;
    margin-bottom: 8px;
    line-height: 1.25;
}

.level-description {
    font-size: 13.5px;
    line-height: 1.5;
    color: #4b5563;
    font-weight: 400;
    font-family: "DMSans-Regular", Arial, sans-serif;
}

/* Section Titles */
.section-subtitle {
    font-family: "DMSans-SemiBold", Arial, sans-serif;
    font-size: 12.5px;
    font-weight: 700;
    color: #6c727e;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 14px;
}

/* Score by Dimension Section (Compact) */
.dimension-section {
    margin-bottom: 24px;
    background: #ffffff;
    border: 1px solid #EBEBEB;
    border-radius: 6px;
    padding: 18px 20px;
}

.dimension-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.dimension-item {
    display: grid;
    grid-template-columns: 140px 1fr 45px 115px;
    align-items: center;
    gap: 12px;
    padding: 4px 0;
}

.dimension-name {
    font-weight: 700;
    font-size: 13.5px;
    color: #14171a;
    white-space: nowrap;
    font-family: "DMSans-Medium", Arial, sans-serif;
}

.progress-bar-wrapper {
    width: 100%;
}

.progress-bar-track {
    width: 100%;
    height: 8px;
    background-color: #E8E6F0;
    border-radius: 999px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background-color: #7200CB;
    border-radius: 999px;
    transition: width 0.3s ease;
}

.dimension-score {
    font-family: "DMSans-SemiBold", Arial, sans-serif;
    font-size: 13.5px;
    font-weight: 700;
    color: #2b3036;
    text-align: right;
}

.dimension-status {
    font-family: "DMSans-SemiBold", Arial, sans-serif;
    font-size: 11.5px;
    font-weight: 700;
    text-align: center;
    padding: 3px 10px;
    border-radius: 50px;
    display: inline-block;
    white-space: nowrap;
}

/* Status Color Pills */
.status-high,
.status-high-exposure {
    background: rgba(216, 0, 12, 0.08);
    border: 1px solid rgba(216, 0, 12, 0.2);
    color: #D8000C;
}

.status-well,
.status-well-governed {
    background: rgba(40, 167, 69, 0.08);
    border: 1px solid rgba(40, 167, 69, 0.2);
    color: #1e7e34;
}

.status-emerging,
.status-emerging-risk {
    background: rgba(217, 119, 6, 0.08);
    border: 1px solid rgba(217, 119, 6, 0.2);
    color: #b45309;
}

/* Progress Bar Fill Colors */
.progress-bar-fill.fill-high {
    background-color: #D8000C;
}

.progress-bar-fill.fill-well {
    background-color: #28a745;
}

.progress-bar-fill.fill-emerging {
    background-color: #FFC107;
}

/* Where to Focus First Section (Compact) */
.focus-section {
    background-color: #ffffff;
}

.focus-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.focus-item {
    background-color: #F8F7FC;
    border: 1px solid #EAE8F2;
    border-left: 3px solid #7200CB;
    border-radius: 6px;
    padding: 12px 16px;
}

.focus-header {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 2px;
}

.focus-bullet {
    width: 7px;
    height: 7px;
    background-color: #7200CB;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
}

.focus-title {
    font-size: 14px;
    font-weight: 700;
    color: #14171a;
    margin: 0;
    font-family: "DMSans-SemiBold", Arial, sans-serif;
}

.focus-tag {
    font-family: "DMSans-SemiBold", Arial, sans-serif;
    font-size: 11px;
    font-weight: 700;
    color: #7200CB;
    background-color: rgba(114, 0, 203, 0.08);
    border: 1px solid rgba(114, 0, 203, 0.15);
    border-radius: 50px;
    padding: 2px 10px;
    margin-left: 2px;
}

.focus-desc {
    font-size: 13px;
    color: #6b7280;
    margin-left: 15px;
    font-weight: 400;
    font-family: "DMSans-Regular", Arial, sans-serif;
}

/* Responsive Breakpoints */
@media (max-width: 640px) {
    .surveyPage {
        padding: 16px 10px;
    }

    .result-container,
    .surveyCard {
        padding: 20px 14px;
    }

    .result-header {
        padding: 16px;
    }

    .score-value {
        font-size: 34px;
    }

    .level-title {
        font-size: 19px;
    }

    .dimension-section {
        padding: 14px 12px;
    }

    .dimension-item {
        grid-template-columns: 120px 1fr 40px 105px;
        gap: 8px;
    }

    .dimension-name,
    .dimension-score {
        font-size: 12px;
    }

    .dimension-status {
        font-size: 10.5px;
        padding: 2px 8px;
    }
}

@media (max-width: 480px) {
    .dimension-item {
        grid-template-columns: 1fr auto;
        grid-template-rows: auto auto;
        gap: 6px 10px;
        padding-bottom: 8px;
        border-bottom: 1px solid #EAE8F2;
    }

    .dimension-item:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }

    .dimension-name {
        grid-column: 1;
        grid-row: 1;
    }

    .dimension-status {
        grid-column: 2;
        grid-row: 1;
        justify-self: end;
    }

    .progress-bar-wrapper {
        grid-column: 1;
        grid-row: 2;
    }

    .dimension-score {
        grid-column: 2;
        grid-row: 2;
        text-align: right;
    }
}
