/* 툴팁 스타일 추가 */

/* 도움말 아이콘 */
.help-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #3b82f6;
    color: white;
    font-size: 12px;
    font-weight: bold;
    cursor: help;
    margin-left: 8px;
    position: relative;
    transition: all 0.3s ease;
}

.help-icon:hover {
    background: #2563eb;
    transform: scale(1.1);
}

/* 툴팁 컨테이너 */
.tooltip-container {
    position: relative;
    display: inline-block;
}

/* 툴팁 내용 */
.tooltip-content {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    z-index: 1000;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    background: #1f2937;
    color: white;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 0.875rem;
    line-height: 1.5;
    width: 280px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    pointer-events: none;
}

.tooltip-content::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 6px;
    border-style: solid;
    border-color: #1f2937 transparent transparent transparent;
}

.tooltip-container:hover .tooltip-content {
    visibility: visible;
    opacity: 1;
}

/* 모바일에서 툴팁 위치 조정 */
@media (max-width: 768px) {
    .tooltip-content {
        width: 240px;
        left: auto;
        right: 0;
        transform: none;
    }
    
    .tooltip-content::after {
        left: auto;
        right: 10px;
        transform: none;
    }
}

/* 예시 박스 */
.example-box {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border-left: 4px solid #0ea5e9;
    padding: 12px 16px;
    border-radius: 8px;
    margin-top: 8px;
    font-size: 0.85rem;
}

.example-box-title {
    font-weight: 600;
    color: #075985;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
}

.example-box-title i {
    margin-right: 6px;
}

.example-box-content {
    color: #0c4a6e;
}

/* 입력 팁 배지 */
.input-tip {
    display: inline-block;
    padding: 2px 8px;
    background: #dbeafe;
    color: #1e40af;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-left: 8px;
}

/* 계산 공식 표시 */
.formula-box {
    background: #fef3c7;
    border: 1px dashed #f59e0b;
    padding: 8px 12px;
    border-radius: 6px;
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    color: #92400e;
    margin-top: 6px;
}

/* 정보 카드 */
.info-card {
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    padding: 12px;
    margin-top: 12px;
}

.info-card-header {
    display: flex;
    align-items: center;
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
}

.info-card-header i {
    margin-right: 8px;
    color: #3b82f6;
}

.info-card-body {
    font-size: 0.875rem;
    color: #6b7280;
    line-height: 1.6;
}

/* 입력 범위 표시 */
.input-range {
    display: flex;
    justify-content: space-between;
    margin-top: 4px;
    font-size: 0.75rem;
    color: #9ca3af;
}

.input-range-label {
    font-weight: 500;
}

/* 섹션 구분선 */
.section-divider {
    height: 2px;
    background: linear-gradient(90deg, transparent, #e5e7eb, transparent);
    margin: 24px 0;
}
