/* Compound Interest Calculator Specific Styles */

.calc-result-highlight {
    margin-bottom: 24px;
}

/* 서브 탭 스타일 */
.result-sub-tabs {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 20px;
}

.result-sub-tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: #fff;
    color: #666;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.result-sub-tab:hover {
    border-color: #319C80;
    color: #319C80;
}

.result-sub-tab.active {
    background: #319C80;
    border-color: #319C80;
    color: #fff;
}

.result-sub-tab.active svg {
    stroke: #fff;
}

.result-sub-tab svg {
    stroke: currentColor;
}

.result-sub-content {
    display: none;
}

.result-sub-content.active {
    display: block;
}

/* 상세 내역 테이블 */
.yearly-details-table-wrapper {
    overflow-x: auto;
    margin-top: 8px;
}

.yearly-details-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.yearly-details-table th,
.yearly-details-table td {
    padding: 12px 8px;
    text-align: right;
    border-bottom: 1px solid #f0f0f0;
}

.yearly-details-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #333;
    white-space: nowrap;
}

.yearly-details-table th:first-child,
.yearly-details-table td:first-child {
    text-align: center;
    width: 60px;
}

.yearly-details-table tbody tr:hover {
    background: #f8fdfb;
}

.yearly-details-table tbody tr:last-child {
    font-weight: 600;
    background: #f0fdf4;
}

.yearly-details-table tbody tr:last-child td {
    border-bottom: none;
}

.yearly-details-table .profit-cell {
    color: #10B981;
}

.yearly-details-table .rate-cell {
    color: #319C80;
    font-weight: 500;
}

/* 반응형 */
@media (max-width: 600px) {
    .result-sub-tab {
        padding: 8px 14px;
        font-size: 13px;
    }

    .yearly-details-table {
        font-size: 12px;
    }

    .yearly-details-table th,
    .yearly-details-table td {
        padding: 10px 6px;
    }
}
