/* 파킹통장 이자 계산기 CSS - Simple & Clean */

/* 헤더 */
.header-section h1 {
    font-weight: 700;
    color: var(--bs-body-color);
}

/* 계산 입력 카드 */
.calculator-card {
    background: var(--bs-body-bg);
    border: 1px solid var(--bs-border-color);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.calculator-card .form-label {
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.calculator-card .form-control {
    border-radius: 8px;
    border: 1px solid var(--bs-border-color);
    padding: 0.75rem;
    font-size: 1rem;
}

.calculator-card .form-control:focus {
    border-color: var(--bs-primary);
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.1);
}

/* 금액 표시 */
.amount-display {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--bs-primary);
    min-height: 1.2rem;
}

/* 금액 버튼 */
.amount-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.amount-buttons .btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    min-width: auto;
}

/* 결과 섹션 */
.result-section {
    background: var(--bs-body-bg);
    border: 1px solid var(--bs-border-color);
    border-radius: 12px;
    padding: 2rem;
}

.summary-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.summary-item {
    text-align: center;
    padding: 1.5rem;
    background: var(--bs-secondary-bg);
    border-radius: 8px;
}

.summary-item .label {
    font-size: 0.95rem;
    color: var(--bs-secondary-color);
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.value-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.sub-value {
    font-size: 0.85rem;
    color: var(--bs-body-color);
}

.sub-value span {
    font-weight: 700;
    font-size: 1.1rem;
    margin-left: 0.25rem;
}

.sub-value.primary span {
    color: var(--bs-primary);
    font-size: 1.3rem;
}

/* 테이블 섹션 */
.table-section {
    background: var(--bs-body-bg);
    border: 1px solid var(--bs-border-color);
    border-radius: 12px;
    padding: 2rem;
}

.table-section h5 {
    font-weight: 600;
    margin-bottom: 1rem;
}

.table {
    margin-bottom: 0;
}

.table thead {
    background: var(--bs-secondary-bg);
}

.table thead th {
    font-weight: 600;
    font-size: 0.9rem;
    padding: 1rem;
    border: none;
}

.table tbody td {
    padding: 0.875rem 1rem;
    vertical-align: middle;
}

.table tbody tr {
    border-bottom: 1px solid var(--bs-border-color);
}

.table tbody tr:last-child {
    border-bottom: none;
}

.table tbody tr:hover {
    background: var(--bs-secondary-bg);
}

/* 탭 스타일 */
.nav-tabs .nav-link {
    color: var(--bs-body-color);
    border-radius: 8px 8px 0 0;
}

.nav-tabs .nav-link.active {
    font-weight: 600;
}

/* 버튼 */
.btn {
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.btn:hover {
    transform: translateY(-1px);
}

/* 반응형 */
@media (max-width: 768px) {
    .summary-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .calculator-card,
    .result-section,
    .table-section {
        padding: 1.5rem;
    }
    
    .summary-item {
        padding: 1rem;
    }
    
    .amount-buttons {
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .amount-buttons .btn-sm {
        flex: 1 1 calc(33.333% - 0.5rem);
        min-width: 0;
    }
}


