/* 기본 폰트 및 배경 */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Malgun Gothic', sans-serif;
    -webkit-tap-highlight-color: transparent;
}

/* 카테고리 탭 버튼 */
.tab-btn {
    padding: 1.2rem 0.4rem;
    font-size: 2.2rem;
    font-weight: 700;
    color: #6b7280;
    border-radius: 0.55rem;
    transition: all 0.2s ease;
    white-space: normal;
    line-height: 1.2;
    word-break: keep-all;
}

.tab-btn.active {
    background-color: #4f46e5;
    color: #ffffff;
    box-shadow: 0 2px 6px rgba(79, 70, 229, 0.35);
}

/* 항목 카드 */
.item-row {
    animation: slideIn 0.2s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 완료된 항목: 취소선 처리 */
.item-title.completed {
    text-decoration: line-through;
    color: #9ca3af;
}

/* 완료 버튼 (미완료: 연한 초록 / 완료: 진한 초록) */
.btn-complete {
    padding: 0.4rem 0.85rem;
    border-radius: 0.5rem;
    font-size: 0.8rem;
    font-weight: 800;
    flex-shrink: 0;
    background-color: #ecfdf5;
    color: #059669;
    border: 1.5px solid #a7f3d0;
    transition: all 0.15s ease;
}

.btn-complete:active {
    transform: scale(0.95);
}

.btn-complete.done {
    background-color: #059669;
    color: #ffffff;
    border-color: #059669;
}

/* 완료 날짜 배지 */
.done-date {
    display: inline-block;
    margin-top: 4px;
    font-size: 0.68rem;
    font-weight: 700;
    color: #059669;
    background-color: #ecfdf5;
    padding: 2px 8px;
    border-radius: 999px;
}

/* 수정/삭제 등 보조 버튼 */
.btn-sub {
    padding: 0.28rem 0.65rem;
    border-radius: 0.4rem;
    font-size: 0.72rem;
    font-weight: 600;
}

/* 완료 항목 구분선 */
.divider-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.68rem;
    font-weight: 700;
    color: #9ca3af;
    margin: 14px 0 10px;
}

.divider-label::before,
.divider-label::after {
    content: "";
    flex: 1;
    height: 1px;
    background-color: #e5e7eb;
}

/* 일일활동 최근 7일 기록 점 */
.day-dot {
    flex: 1;
    aspect-ratio: 1;
    border-radius: 7px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.6rem;
    font-weight: 800;
    color: #ffffff;
    background-color: #e5e7eb;
}

.day-dot.done {
    background-color: #16a34a;
}

.day-dot.miss {
    background-color: transparent;
    border: 1.5px solid #e5e7eb;
    color: #9ca3af;
}

.day-dot.today {
    background-color: #eef2ff;
    border: 2px solid #4f46e5;
    color: #4f46e5;
}
