/* ============================================
   황칠 AI 복용량 추천 시스템 - 병증별 확장 스타일
   © 2002년 통합수행원 無盡藏[무진장] 전문상담연구소
   ============================================ */

/* ===== 입력 필드 스타일 (체중/키) ===== */
.input-field-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 30px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 15px;
    margin: 20px 0;
}

.input-emoji {
    font-size: 4rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.input-group {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    max-width: 300px;
}

.number-input {
    flex: 1;
    padding: 15px 20px;
    font-size: 1.5rem;
    font-weight: 600;
    text-align: center;
    border: 3px solid #dee2e6;
    border-radius: 50px;
    background: white;
    transition: all 0.3s ease;
}

.number-input:focus {
    outline: none;
    border-color: #7c4dff;
    box-shadow: 0 0 20px rgba(124, 77, 255, 0.3);
}

.number-input.valid {
    border-color: #51CF66;
    background: #f0fdf4;
}

.number-input.invalid {
    border-color: #FF6B6B;
    background: #fff5f5;
    animation: shake 0.5s;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}

.input-unit {
    font-size: 1.2rem;
    font-weight: 600;
    color: #7c4dff;
    min-width: 40px;
}

.input-hint {
    font-size: 0.9rem;
    color: #868e96;
    text-align: center;
}

/* ===== 스케줄 그리드 ===== */
.schedule-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin: 25px 0;
}

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

/* ===== 스케줄 아이템 (병증별 상세) ===== */
.schedule-item {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    border: 2px solid #dee2e6;
    transition: all 0.3s ease;
}

.schedule-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    border-color: #7c4dff;
}

.schedule-time {
    font-size: 1rem;
    font-weight: 600;
    color: #495057;
    margin-bottom: 8px;
}

.schedule-dose {
    font-size: 2rem;
    font-weight: 800;
    color: #7c4dff;
    margin: 10px 0;
}

.schedule-desc {
    font-size: 0.75rem;
    color: #868e96;
    margin-top: 5px;
    font-style: italic;
}

/* ===== 병증 카테고리 태그 ===== */
.disease-category-tag {
    display: inline-block;
    padding: 6px 15px;
    background: linear-gradient(135deg, #4A90E2 0%, #63B3ED 100%);
    color: white;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin: 5px 0;
}

.disease-level-tag {
    display: inline-block;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin: 5px 0;
}

/* 병증 레벨별 색상 */
.disease-level-tag.예방 {
    background: linear-gradient(135deg, #51CF66 0%, #69DB7C 100%);
    color: white;
}

.disease-level-tag.경증 {
    background: linear-gradient(135deg, #FFA94D 0%, #FFB866 100%);
    color: white;
}

.disease-level-tag.중등도 {
    background: linear-gradient(135deg, #FF8787 0%, #FFA3A3 100%);
    color: white;
}

.disease-level-tag.중증 {
    background: linear-gradient(135deg, #C92A2A 0%, #E03131 100%);
    color: white;
}

/* ===== 결과 화면 강화 ===== */
.result-subtitle {
    line-height: 1.6;
}

.result-subtitle strong {
    color: #7c4dff;
    font-weight: 700;
}

/* ===== 주의사항/팁 리스트 강화 ===== */
.warnings-list li,
.tips-list li {
    padding: 12px 15px;
    margin-bottom: 10px;
    background: #f8f9fa;
    border-left: 4px solid #7c4dff;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.warnings-list li:hover,
.tips-list li:hover {
    background: #e9ecef;
    transform: translateX(5px);
}

/* 경고 강조 (⚠️ 포함 시) */
.warnings-list li:has-text("⚠️") {
    border-left-color: #FF6B6B;
    background: #FFE8E8;
}

/* 중요 팁 강조 (💡 포함 시) */
.tips-list li:has-text("💡") {
    border-left-color: #FFD43B;
    background: #FFF9DB;
}

/* ===== 복용 스케줄 시간대별 아이콘 ===== */
.schedule-time::before {
    content: '';
    display: inline-block;
    margin-right: 8px;
}

/* ===== 액션 버튼 그룹 ===== */
.result-actions {
    display: flex;
    gap: 10px;
    margin-top: 25px;
}

.result-actions button {
    flex: 1;
    padding: 15px;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(135deg, #7c4dff 0%, #b47cff 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(124, 77, 255, 0.4);
}

.btn-secondary {
    background: #f0f0f0;
    color: #495057;
}

.btn-secondary:hover {
    background: #e0e0e0;
    transform: translateY(-2px);
}

.btn-success {
    background: linear-gradient(135deg, #51CF66 0%, #69DB7C 100%);
    color: white;
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(81, 207, 102, 0.4);
}

/* ===== 모바일 최적화 ===== */
@media (max-width: 768px) {
    .result-actions {
        flex-direction: column;
    }
    
    .result-actions button {
        width: 100%;
    }
    
    .schedule-dose {
        font-size: 1.5rem;
    }
    
    .schedule-desc {
        font-size: 0.7rem;
    }
}

/* ===== 애니메이션 ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.schedule-item,
.warnings-list li,
.tips-list li {
    animation: fadeInUp 0.5s ease forwards;
}

.schedule-item:nth-child(1) { animation-delay: 0.1s; }
.schedule-item:nth-child(2) { animation-delay: 0.2s; }
.schedule-item:nth-child(3) { animation-delay: 0.3s; }
