/* 연차 계산기 전용 스타일 */

/* 근속 기간 정보 배너 */
.tenure-info {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-left: 4px solid var(--pastel-blue-1);
    border-radius: 8px;
    padding: 0.9rem 1.25rem;
    margin-bottom: 1.25rem;
    font-size: 0.95rem;
    color: var(--text-primary);
    font-weight: 500;
}

.tenure-info .tenure-duration {
    font-weight: 700;
    color: var(--pastel-blue-1);
}

/* 결과 카드 그리드 */
.leave-result-grid {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

/* 잔여 연차 메인 카드 */
.leave-main-card {
    background: linear-gradient(135deg, var(--pastel-blue-1), var(--pastel-blue-2));
    border-radius: 16px;
    padding: 2rem 1.5rem;
    text-align: center;
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.leave-card-label {
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    opacity: 0.88;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

.leave-card-value {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 0.25rem;
}

.leave-card-unit {
    font-size: 1rem;
    opacity: 0.85;
}

/* 세부 정보 카드들 */
.leave-info-cards {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    justify-content: center;
}

.leave-info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
}

.leave-info-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.leave-info-value {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
}

/* 연차 발생 내역 테이블 */
.leave-history-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

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

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

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

.leave-history-table tbody tr.current-year {
    background: rgba(217, 119, 87, 0.1);
    font-weight: 600;
}

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

.leave-days-badge {
    display: inline-block;
    background: var(--pastel-blue-1);
    color: #fff;
    border-radius: 20px;
    padding: 0.15rem 0.65rem;
    font-size: 0.85rem;
    font-weight: 600;
}

.leave-days-badge.secondary {
    background: var(--pastel-blue-3);
    color: var(--text-primary);
}

/* 안내 메시지 */
.no-data-msg {
    color: var(--text-secondary);
    text-align: center;
    padding: 2rem;
    font-size: 0.95rem;
}

/* 유틸리티 */
.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: 160px;
}

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

/* 반응형 */
@media (max-width: 768px) {
    .leave-result-grid {
        grid-template-columns: 1fr;
    }

    .leave-main-card {
        padding: 1.5rem;
    }

    .leave-card-value {
        font-size: 2.5rem;
    }

    .leave-history-table th:nth-child(2),
    .leave-history-table td:nth-child(2) {
        display: none;
    }
}
