/* Planner Page Custom Styles */

body {
    font-family: 'Nunito', sans-serif;
}

.hand-writing {
    font-family: 'Patrick Hand', cursive;
}

::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: var(--color-slate-300);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-slate-400);
}

/* 플랜 아이템 완료 애니메이션 */
.plan-item:has(input[type="checkbox"]:checked) .plan-text {
    color: var(--color-slate-400);
    text-decoration: line-through;
    text-decoration-thickness: 2px;
    text-decoration-color: var(--color-slate-200);
}

.plan-item:has(input[type="checkbox"]:checked) .plan-text::after {
    content: '✓';
    margin-left: 8px;
    font-size: 0.75rem;
    color: #578e7e;
    animation: checkPop 0.3s ease-out;
}

@keyframes checkPop {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.3);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* 체크박스 완료 시 효과 */
.plan-item input[type="checkbox"]:checked {
    animation: checkboxDone 0.4s ease-out;
}

@keyframes checkboxDone {
    0% {
        transform: scale(1);
    }
    30% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
    }
}

/* 완료된 아이템 행 스타일 */
.plan-item:has(input[type="checkbox"]:checked) {
    opacity: 0.7;
    background: linear-gradient(90deg, transparent 0%, rgba(87, 142, 126, 0.05) 50%, transparent 100%);
}

.plan-item:has(input[type="checkbox"]:checked):hover {
    opacity: 0.85;
}

/* 카테고리 라벨 가독성 향상 */
.category-label {
    font-family: 'Pretendard Variable', 'Nunito', sans-serif;
    font-weight: 700;
    font-size: 0.9375rem;
    letter-spacing: -0.01em;
    line-height: 1.3;
    color: #374151;
}
