/* 일용직 계산기 상단 섹션 */
.calculator-top-section {
    width: 100%;
    margin-bottom: 0;
}

/* 수급자격 요건 공백 최소화 */
.condition-guide-card.tight {
    padding: 16px 24px;
    margin-bottom: 12px;
}
.condition-guide-card.tight .guide-title {
    margin-bottom: 8px;
    font-size: 1.1rem;
}
.guide-list {
    padding-left: 20px;
    margin: 0;
}
.guide-list li {
    font-size: 0.95rem;
    margin-bottom: 4px;
}

.calculator-container { 
    display: flex; 
    gap: 30px; 
    align-items: stretch;
}
.calc-left { flex: 1.2; min-width: 0; display: flex; flex-direction: column; }
.calc-right { flex: 1; position: sticky; top: 40px; display: flex; flex-direction: column; gap: 20px; }

@media (max-width: 1024px) {
    .calculator-container { flex-direction: column; align-items: stretch; }
    .calc-right { position: static; width: 100%; }
}

.calendar-card { padding: 16px !important; }

/* Calendar Styles - Fixed Grid Issue */
#calendar { 
    display: grid; 
    grid-template-columns: repeat(7, 1fr); 
    gap: 4px; 
    margin-top: 15px; 
    flex: 1; 
    width: 100%;
    box-sizing: border-box;
}
.calendar-header { grid-column: span 7; text-align: center; font-weight: 800; padding: 10px 0; color: var(--primary); font-size: 1rem; }
.day-header { text-align: center; font-size: 0.7rem; font-weight: 700; padding: 2px 0; }
.day-header.sun { color: #ff3b30; }
.day-header.sat { color: #0071e3; }

.day { 
    aspect-ratio: 1/1; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    border-radius: 4px; 
    cursor: pointer; 
    font-weight: 600; 
    font-size: 0.85rem; 
    transition: background 0.2s, color 0.2s; 
    border: 1px solid transparent;
    box-sizing: border-box;
    width: 100%;
}
.day:hover { background: var(--bg-color); border-color: var(--border); }
.day.sun { color: #ff3b30; }
.day.sat { color: #0071e3; }
.day.today { background: var(--primary-soft); color: var(--primary); border: 1px solid var(--primary); }
.day.selected { background: var(--primary) !important; color: white !important; }
.day.other-month { opacity: 0.1; pointer-events: none; }

/* 요약 카드 디자인 */
.data-summary-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 10px; }
.summary-card { 
    padding: 12px 8px; 
    background: var(--bg-color); 
    border-radius: 4px; 
    text-align: center; 
    border: 1px solid var(--border);
    min-width: 0;
    overflow: hidden;
}

/* 근무일 강조 및 텍스트 줄바꿈 방지 */
.summary-card label { 
    display: block; 
    font-size: 0.7rem; 
    color: var(--text-sub); 
    margin-bottom: 2px;
    white-space: nowrap;
}
.summary-card strong { 
    font-size: 1.05rem; 
    color: var(--text-main); 
    white-space: nowrap;
}

.summary-card.highlight { 
    background: var(--primary); 
    border-color: var(--primary); 
    box-shadow: 0 4px 12px rgba(0, 113, 227, 0.2);
}
.summary-card.highlight label { color: rgba(255, 255, 255, 0.9); font-weight: 700; }
.summary-card.highlight strong { color: #ffffff; font-size: 1.2rem; font-weight: 900; }

.result-box { border: 2px solid var(--border); padding: 24px; border-radius: 4px; min-height: 320px; transition: all 0.3s ease; }
.result-box.eligible { border-color: var(--success); background: rgba(52, 199, 89, 0.03); }
.result-box.not-eligible { border-color: var(--error); background: rgba(255, 59, 48, 0.03); }
.result-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; }

/* 신청 가능/불가능 뱃지 강조 */
.final-badge { 
    padding: 8px 16px; 
    border-radius: 20px; 
    font-size: 1rem; 
    font-weight: 900; 
    color: white;
}
.result-box.eligible .final-badge { background: var(--success); box-shadow: 0 2px 8px rgba(52, 199, 89, 0.3); }
.result-box.not-eligible .final-badge { background: var(--error); box-shadow: 0 2px 8px rgba(255, 59, 48, 0.3); }

.result-detail { display: flex; flex-direction: column; gap: 12px; }
.detail-item { display: flex; gap: 12px; align-items: flex-start; padding: 12px; border-radius: 4px; background: var(--card-bg); border: 1px solid var(--border); }
.detail-item.pass { border-left: 4px solid var(--success); }
.detail-item.fail { border-left: 4px solid var(--error); }

.next-available { margin-top: 15px; padding: 12px; background: var(--bg-color); border-radius: 4px; border: 1px solid var(--border); }
.next-available p { margin: 0; font-size: 0.9rem; }
.next-available span { color: var(--primary); font-weight: 800; }

.success-msg { margin-top:15px; color: var(--success); font-weight: 700; text-align:center; }
