.container {
    max-width: 800px;
    margin: 0 auto;
}

.calculator-wrapper {
    background: #f8f9fa;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    margin-top: 20px;
}

.calculator-wrapper h1 {
    text-align: center;
    color: #333;
    margin-bottom: 30px;
    font-size: 2.5em;
    font-weight: 700;
}

.welcome-message {
    text-align: center;
    margin-bottom: 40px;
    padding: 20px;
    background: linear-gradient(135deg, #e8ebec 0%, #cacad3 100%);
    border-radius: 10px;
    border-left: 4px solid #667eea;
}

.welcome-message p {
    font-size: 1.2em;
    color: #333;
    line-height: 1.6;
}

/* 계산 공식 안내 스타일 */
.calculation-info {
    margin-top: 20px;
    text-align: left;
}

.calculation-info details {
    background: white;
    border-radius: 8px;
    padding: 15px;
    border: 1px solid #e1e5e9;
}

.calculation-info summary {
    cursor: pointer;
    font-weight: 600;
    color: #667eea;
    padding: 5px 0;
    user-select: none;
}

.calculation-info summary:hover {
    color: #5a67d8;
}

.calculation-info summary::-webkit-details-marker {
    color: #667eea;
}

.formula-details {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e1e5e9;
}

.formula-details h4 {
    color: #333;
    margin-bottom: 10px;
    font-size: 1.1em;
}

.formula-details ul {
    list-style: none;
    padding: 0;
}

.formula-details li {
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
    font-size: 1em;
    color: #555;
    line-height: 1.4;
}

.formula-details li::before {
    content: '•';
    color: #667eea;
    font-weight: bold;
    position: absolute;
    left: 0;
}

/* 폼 스타일 */
.calorie-form {
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-size: 1em;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 15px;
    border: 2px solid #e1e5e9;
    border-radius: 10px;
    font-size: 1em;
    transition: all 0.3s ease;
    background: white;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* 라디오 버튼 스타일 */
.radio-group {
    display: flex;
    gap: 20px;
}

.radio-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-weight: 500;
    position: relative;
    line-height: 1;
}

.radio-label input[type="radio"] {
    display: none;
}

.radio-custom {
    width: 20px;
    height: 20px;
    border: 2px solid #e1e5e9;
    border-radius: 50%;
    margin-right: 8px;
    position: relative;
    transition: all 0.3s ease;
    display: inline-block;
    vertical-align: middle;
}

.radio-label input[type="radio"]:checked + .radio-custom {
    border-color: #667eea;
    background: #667eea;
}

.radio-label input[type="radio"]:checked + .radio-custom::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
    display: block;
}

/* 버튼 스타일 */
.calculate-btn {
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1.2em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 20px;
}

.calculate-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

.calculate-btn:active {
    transform: translateY(0);
}

/* 결과 스타일 */
.results {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 30px;
    margin-top: 30px;
    border-left: 4px solid #28a745;
}

.results h2 {
    color: #333;
    margin-bottom: 25px;
    text-align: center;
    font-size: 1.8em;
}

.result-item {
    margin-bottom: 25px;
}

.result-item h3 {
    color: #667eea;
    margin-bottom: 10px;
    font-size: 1.2em;
    font-weight: 600;
}

.result-value {
    font-size: 1.3em;
    font-weight: 700;
    color: #333;
    background: white;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    border: 2px solid #e1e5e9;
    margin-bottom: 8px;
}

.result-description {
    font-size: 0.85em;
    color: #666;
    text-align: center;
    font-style: italic;
    margin: 0;
}

/* 테이블 스타일 */
.calorie-table {
    overflow-x: auto;
}

.calorie-table table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.calorie-table th,
.calorie-table td {
    padding: 15px;
    text-align: center;
    border-bottom: 1px solid #e1e5e9;
}

.calorie-table th {
    background: #667eea;
    color: white;
    font-weight: 600;
}

.calorie-table tr:last-child td {
    border-bottom: none;
}

.calorie-table tr:hover {
    background: #f8f9fa;
}

/* 경고 메시지 */
.warning {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 8px;
    padding: 15px;
    margin: 20px 0;
}

.warning p {
    color: #856404;
    margin: 0;
    font-size: 0.95em;
    line-height: 1.5;
}

/* 리셋 버튼 */
.reset-btn {
    width: 100%;
    padding: 15px;
    background: #6c757d;
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 20px;
}

.reset-btn:hover {
    background: #5a6268;
    transform: translateY(-1px);
}

/* 반응형 디자인 */
@media (max-width: 768px) {
    .calculator-wrapper {
        padding: 20px;
        border-radius: 15px;
    }
    
    .calculator-wrapper h1 {
        font-size: 2em;
    }
    
    /* .radio-group {
        flex-direction: column;
        gap: 10px;
    } */
    
    .radio-label {
        align-items: flex-start;
        padding: 5px 0;
    }
    
    .form-group input,
    .form-group select {
        padding: 12px;
    }
    
    .calculate-btn {
        padding: 15px;
        font-size: 1.1em;
    }
    
    .results {
        padding: 20px;
    }
    
    .calorie-table th,
    .calorie-table td {
        padding: 10px;
        font-size: 0.9em;
    }
}

@media (max-width: 480px) {
    .calculator-wrapper {
        padding: 15px;
    }
    
    .calculator-wrapper h1 {
        font-size: 1.8em;
    }
    
    .welcome-message {
        padding: 15px;
    }
    
    .welcome-message p {
        font-size: 1em;
    }
} 