/* 분만 예정일 계산기 전용 스타일 */

/* 출산 예정일 카드 */
.due-date-card {
    background: linear-gradient(135deg, var(--pastel-blue-1), var(--pastel-blue-2));
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    color: #fff;
    margin-bottom: 1.5rem;
}

.due-date-label {
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    opacity: 0.85;
    margin-bottom: 0.5rem;
}

.due-date-value {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.due-date-sub {
    font-size: 0.95rem;
    opacity: 0.9;
}

/* 임신 주수 정보 */
.pregnancy-week-info {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
    color: var(--text-primary);
    text-align: center;
    font-weight: 500;
}

.pregnancy-week-info .week-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--pastel-blue-1);
}

/* 분기 진행 바 */
.trimester-section {
    margin-bottom: 1rem;
}

.trimester-section h3 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.trimester-bar {
    display: flex;
    border-radius: 10px;
    overflow: hidden;
    height: 56px;
    margin-bottom: 0.75rem;
    box-shadow: var(--glass-shadow);
}

.trimester-segment {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0.25rem;
    opacity: 0.5;
    transition: opacity 0.3s ease;
    cursor: default;
}

.trimester-segment.active {
    opacity: 1;
    box-shadow: inset 0 0 0 3px rgba(255, 255, 255, 0.6);
}

.trimester-1 {
    background: #a8d8a8;
}

.trimester-2 {
    background: #f9e07a;
}

.trimester-3 {
    background: #f4a261;
}

.trimester-label {
    font-size: 0.85rem;
    font-weight: 700;
    color: #333;
}

.trimester-range {
    font-size: 0.72rem;
    color: #555;
    margin-top: 0.1rem;
}

.trimester-current {
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-align: center;
    padding: 0.5rem;
    background: var(--glass-bg);
    border-radius: 8px;
    border: 1px solid var(--glass-border);
}

/* 검진 일정 테이블 */
.checkup-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.checkup-table th {
    background: var(--pastel-blue-3);
    color: var(--text-primary);
    font-weight: 600;
    padding: 0.75rem 1rem;
    text-align: left;
}

.checkup-table td {
    padding: 0.7rem 1rem;
    border-bottom: 1px solid var(--glass-border);
    color: var(--text-primary);
}

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

.checkup-table tbody tr.current-checkup {
    background: rgba(217, 119, 87, 0.12);
    font-weight: 600;
}

.checkup-table tbody tr.current-checkup td:first-child {
    border-left: 3px solid var(--pastel-blue-1);
}

.checkup-date {
    white-space: nowrap;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

/* 유틸리티 */
.hidden {
    display: none;
}

.tool-container {
    padding: 1.5rem 0 0.5rem;
}

.conversion-row {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.conversion-row .input-group {
    flex: 1;
    min-width: 180px;
}

.tool-controls {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
}

/* 반응형 */
@media (max-width: 768px) {
    .due-date-value {
        font-size: 1.5rem;
    }

    .checkup-table th:nth-child(3),
    .checkup-table td:nth-child(3) {
        display: none;
    }

    .trimester-bar {
        height: 48px;
    }
}
