/* ========================================
   계산기 모음 전용 스타일
   ======================================== */

/* 페이지 헤더 */
.page-header {
    text-align: center;
}

.page-header .lead {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    opacity: 0.9;
}

/* 탭 네비게이션 */
.nav-tabs {
    border-bottom: 2px solid #e0e0e0;
    flex-wrap: wrap;
}

.nav-tabs .nav-link {
    color: #495057;
    border: none;
    padding: 1rem 1.5rem;
    transition: all 0.3s;
    white-space: nowrap;
}

.nav-tabs .nav-link:hover {
    color: #667eea;
    background: #f8f9fa;
}

.nav-tabs .nav-link.active {
    color: #667eea;
    border-bottom: 3px solid #667eea;
    font-weight: 600;
    background: transparent;
}

.nav-tabs .nav-link i {
    margin-right: 0.5rem;
}

/* 계산기 카드 */
.calculator-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    margin-bottom: 1.5rem;
    transition: transform 0.3s;
}

.calculator-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.calculator-card h4 {
    color: #333;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.calculator-card h4 i {
    color: #667eea;
    margin-right: 0.5rem;
}

/* 결과 카드 */
.result-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.3);
    margin-bottom: 1.5rem;
}

.result-card h4 {
    color: white;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

/* BMI 결과 */
.bmi-value {
    text-align: center;
    margin: 2rem 0;
}

.bmi-number {
    font-size: 4rem;
    font-weight: 700;
    color: white;
}

.bmi-status {
    text-align: center;
    margin: 1.5rem 0;
}

.status-badge {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-size: 1.5rem;
    font-weight: 600;
}

.status-badge.underweight {
    background: #4299e1;
}

.status-badge.normal {
    background: #48bb78;
}

.status-badge.overweight {
    background: #ed8936;
}

.status-badge.obese {
    background: #f56565;
}

.status-badge.severe {
    background: #c53030;
}

/* 정보 박스 */
.info-box {
    background: rgba(255, 255, 255, 0.2);
    padding: 1rem;
    border-radius: 10px;
    backdrop-filter: blur(10px);
}

.info-box h6 {
    color: white;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.info-box p, .info-box ul {
    color: white;
    margin-bottom: 0;
}

.info-box ul {
    padding-left: 1.2rem;
}

.info-box ul li {
    margin-bottom: 0.3rem;
}

.info-box table {
    color: white;
    margin-top: 0.5rem;
}

.info-box table td {
    padding: 0.3rem 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.info-box table tr:last-child td {
    border-bottom: none;
}

/* 할인 결과 */
.result-item {
    display: flex;
    justify-content: space-between;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

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

.result-label {
    font-size: 1rem;
    opacity: 0.9;
}

.result-value {
    font-size: 1.2rem;
    font-weight: 600;
}

.result-item.highlight {
    background: rgba(255, 255, 255, 0.1);
    padding: 1rem;
    border-radius: 10px;
    margin: 0.5rem 0;
}

.result-item.total {
    font-size: 1.2rem;
    margin-top: 1rem;
    padding-top: 1.5rem;
    border-top: 2px solid rgba(255, 255, 255, 0.3);
}

/* 환율 표시 */
.exchange-display {
    text-align: center;
    padding: 2rem 0;
}

.from-amount, .to-amount {
    padding: 1rem;
}

.from-amount .amount, .to-amount .amount {
    font-size: 2.5rem;
    font-weight: 700;
    display: block;
}

.from-amount .currency, .to-amount .currency {
    font-size: 1.2rem;
    opacity: 0.9;
    display: block;
    margin-top: 0.5rem;
}

.exchange-icon {
    font-size: 2rem;
    margin: 1rem 0;
    opacity: 0.7;
}

.exchange-rates {
    background: rgba(255, 255, 255, 0.1);
    padding: 1rem;
    border-radius: 10px;
    backdrop-filter: blur(10px);
}

.exchange-rates h6 {
    color: white;
    font-weight: 600;
    margin-bottom: 0.8rem;
}

.exchange-rates table {
    color: white;
    margin-bottom: 0;
}

.exchange-rates table td {
    border-color: rgba(255, 255, 255, 0.2);
    padding: 0.4rem 0.5rem;
}

/* 퍼센트 계산 결과 */
.result-box {
    background: #e7e9fc;
    padding: 1.5rem;
    border-radius: 10px;
    border-left: 4px solid #667eea;
}

.result-box h5 {
    color: #667eea;
    font-weight: 600;
    margin-bottom: 1rem;
}

.result-text {
    font-size: 1.1rem;
    color: #333;
    line-height: 1.8;
}

/* 정보 카드 */
.info-card {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 1.5rem;
    height: 100%;
}

.info-card h4 {
    color: #667eea;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.info-card h4 i {
    margin-right: 0.5rem;
}

.info-card h6 {
    color: #333;
    font-weight: 600;
    margin-bottom: 0.8rem;
}

.info-card ul {
    margin-bottom: 0.8rem;
}

/* 버튼 스타일 */
.btn-lg {
    padding: 0.75rem 2rem;
    font-size: 1.1rem;
}

/* 반응형 */
@media (max-width: 768px) {
    .nav-tabs .nav-link {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }

    .calculator-card,
    .result-card {
        padding: 1.5rem;
    }

    .bmi-number {
        font-size: 3rem;
    }

    .status-badge {
        font-size: 1.2rem;
        padding: 0.75rem 1.5rem;
    }

    .from-amount .amount, .to-amount .amount {
        font-size: 2rem;
    }
}
