:root {
    --primary-color: #00bf96;
    /* Vivid Mint/Teal */
    --primary-dark: #00b08a;
    --bg-color: #F8F9FA;
    --card-bg: #FFFFFF;
    --text-main: #1A1A1A;
    --text-sub: #8B95A1;
    --shadow-soft: 0 8px 24px rgba(0, 0, 0, 0.04);
    --radius-l: 24px;
    --radius-m: 16px;
}

html {
    scroll-padding-top: 80px;
    /* 고정 헤더(약 60px) + 여유 공간 */
    scroll-behavior: smooth;
}

/* Page Background */
body {
    background-color: var(--bg-color);
}

/* 
   App-Style Components 
   - Designed to fit inside the Bootstrap container 
*/

/* Main Dashboard Card */
.dashboard-card {
    background: var(--primary-color);
    border-radius: var(--radius-l);
    padding: 32px 48px 20px;
    /* Slightly more padding for desktop view */
    color: white;
    box-shadow: 0 12px 30px rgba(0, 200, 150, 0.25);
    margin-bottom: 32px;
    position: relative;
    overflow: hidden;
    text-align: left;
}

.dash-bg-icon {
    position: absolute;
    right: 44px;
    bottom: 20px;
    width: 160px;
    height: 160px;
    opacity: .5;
    pointer-events: none;
    color: white;
    fill: white;
}

@media (max-width: 768px) {
    .dashboard-card {
        padding: 20px 16px 0;
    }

    .dash-bg-icon {
        width: 140px;
        /* Smaller icon on mobile */
        height: 140px;
        right: 0;
        bottom: 10px;
        opacity: .25;
    }
}

.dash-subtitle {
    font-size: 1rem;
    opacity: 0.9;
    margin-bottom: 12px;
    font-weight: 500;
}

.dash-title {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 32px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    color: #fff;
}

@media (max-width: 576px) {
    .dash-title {
        font-size: 2rem;
    }
}



/* Section Divider */
.section-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    padding: 0 4px;
}

.section-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    color: #2c3e50;
}

/* Menu Item Wrapper (각 카드 + 가이드 컨테이너) */
.menu-item-wrapper {
    margin-bottom: 20px;
}

.menu-item-wrapper:last-child {
    margin-bottom: 40px;
}

.menu-item {
    background-color: var(--card-bg);
    border-radius: var(--radius-m);
    padding: 32px 24px;
    text-align: center;
    box-shadow: var(--shadow-soft);
    text-decoration: none;
    color: var(--text-main);
    transition: box-shadow 0.2s, border-color 0.2s;
    border: 2px solid transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.menu-item:hover {
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
    border-color: var(--primary-color);
}

.menu-item.active {
    background-color: rgba(0, 200, 150, .1);
    border-color: var(--primary-color);
}

.menu-icon {
    /* font-size: 3rem; Removed for image icons */
    margin-bottom: 16px;
    transition: transform 0.2s;
    display: flex;
    justify-content: center;
    align-items: center;
}

.menu-icon img {
    width: 64px;
    height: 64px;
    object-fit: contain;
    transition: transform 0.2s;
}

@media (max-width: 576px) {
    .menu-icon img {
        width: 48px;
        /* Smaller visible size on mobile */
        height: 48px;
    }

    .menu-item {
        /* Revert to vertical column layout like desktop */
        flex-direction: column !important;
        justify-content: center;
        align-items: center;
        text-align: center;
        padding: 16px;
    }

    .menu-icon {
        margin-bottom: 16px;
        margin-right: 0;
    }

    .menu-text-group {
        text-align: center;
        width: 100%;
    }
}

.menu-item:hover .menu-icon {
    transform: scale(1.1);
}

.menu-text-group {
    display: block;
    width: 100%;
}

.menu-text {
    font-weight: 800;
    font-size: 1.2rem;
    display: block;
    margin-bottom: 4px;
}

.menu-sub {
    font-size: 0.9rem;
    color: var(--text-sub);
    display: block;
}

/* Info/Tips List */
.info-card {
    background-color: var(--card-bg);
    border-radius: var(--radius-l);
    padding: 0;
    box-shadow: var(--shadow-soft);
    overflow: hidden;
}

.info-item {
    display: flex;
    align-items: center;
    padding: 24px;
    border-bottom: 1px solid #F0F0F0;
    color: var(--text-main);
    text-decoration: none;
    transition: background-color 0.2s;
}

.info-item:last-child {
    border-bottom: none;
}

.info-item:hover {
    background-color: #FAFAFA;
}

.info-icon-box {
    width: 52px;
    height: 52px;
    background-color: #E0F2F1;
    /* Non-vivid Mint */
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    font-size: 1.5rem;
    color: var(--primary-dark);
}

.info-content {
    flex: 1;
}

.info-title {
    font-weight: 700;
    font-size: 1.05rem;
    margin-bottom: 4px;
    display: block;
}

.info-desc {
    font-size: 0.9rem;
    color: var(--text-sub);
}

/* Guide Section (펼쳐지는 영역) */
.guide-section {
    background-color: var(--card-bg);
    border-radius: var(--radius-l);
    padding: 32px;
    box-shadow: var(--shadow-soft);
    margin-bottom: 40px;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

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

@media (max-width: 576px) {
    .guide-section {
        padding: 24px 12px;
    }
}

.guide-header {
    margin-bottom: 32px;
    text-align: center;
}

.guide-header h3 {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 12px;
}

.guide-desc {
    font-size: 1rem;
    color: var(--text-sub);
    line-height: 1.6;
    margin: 0;
}

@media (max-width: 576px) {
    .guide-desc {
        font-size: 0.875rem;
    }
}

/* Question Group */
.question-group {
    margin-bottom: 32px;
}

.question-label {
    display: block;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 12px;
}

/* Button Group (라디오 버튼을 버튼처럼) */
.button-group {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.btn-radio {
    display: none;
}

.btn-option {
    flex: 1;
    min-width: 80px;
    padding: 14px 24px;
    background-color: #F8F9FA;
    border: 2px solid #E9ECEF;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-main);
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}

.btn-option:hover {
    background-color: #E9ECEF;
    border-color: var(--primary-color);
}

.btn-radio:checked+.btn-option {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    font-weight: 700;
}

@media (max-width: 576px) {
    .button-group {
        gap: 8px;
    }

    .btn-option {
        padding: 12px 8px;
        font-size: 0.95rem;
    }
}

/* Result Area (항상 노출) */
.result-area {
    margin-top: 0;
}

.result-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

@media (max-width: 768px) {
    .result-cards {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}

.result-card {
    background-color: var(--card-bg);
    border: 2px solid #E9ECEF;
    border-radius: var(--radius-m);
    padding: 24px 20px;
    text-align: center;
    transition: all 0.2s ease;
}



/* 강조된 카드 (추천) */
.result-card.highlighted {
    background-color: rgba(0, 200, 150, 0.08);
    border-color: var(--primary-color);
    box-shadow: 0 4px 16px rgba(0, 200, 150, 0.15);
}

.result-card.highlighted .result-badge {
    background-color: var(--primary-color);
    color: white;
}

.recommend-badge {
    display: none;
    padding: 4px 12px;
    background-color: #f85272;
    color: white;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 20px;
    margin-bottom: 8px;
}

.result-card.highlighted .recommend-badge {
    display: inline-block;
}

.result-badge {
    display: inline-block;
    padding: 4px 12px;
    background-color: #F8F9FA;
    color: var(--text-sub);
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 20px;
    margin-bottom: 12px;
}

.result-amount {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 8px;
    line-height: 1.2;
}

.result-desc {
    font-size: 0.95rem;
    color: var(--text-sub);
    line-height: 1.5;
    /* 아주 미세한 fade-in 제거 - highlighted 클래스에서만 적용 */
}

.result-card.highlighted .result-desc {
    animation: subtleFadeIn 0.15s ease-out;
}

/* 아주 미세한 fade-in (사용자가 거의 인식 못할 정도) */
@keyframes subtleFadeIn {
    from {
        opacity: 0.9;
    }

    to {
        opacity: 1;
    }
}

/* Result Disclaimer (하단 안내 문구) */
.result-disclaimer {
    font-size: 0.85rem;
    color: #999;
    text-align: center;
    line-height: 1.6;
    padding: 16px;
    background-color: #FAFAFA;
    border-radius: 8px;
}

/* Policy Notice (단체 규정 안내) */
.policy-notice {
    font-size: 0.9rem;
    color: #555;
    text-align: center;
    line-height: 1.6;
    padding: 12px 16px;
    margin-bottom: 16px;
    background-color: #FFF9E6;
    border: 1px solid #FFE082;
    border-radius: 8px;
}