/* 이태영 TODO — 커스텀 스타일 */

/* 활성 네비게이션 (PC) */
.nav-btn.active {
  background-color: #EFF6FF;
  color: #2563EB;
  font-weight: 600;
}
.nav-btn-mobile.active {
  color: #2563EB;
  font-weight: 600;
}

/* 카테고리 칩 */
.cat-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  border: 1px solid transparent;
  cursor: pointer;
  user-select: none;
  transition: all 0.15s;
}
.cat-chip:hover { transform: translateY(-1px); }
.cat-chip.active { color: white; }
.cat-chip:not(.active) {
  background-color: #F1F5F9;
  color: #475569;
}

/* 할 일 카드 */
.task-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: white;
  border: 1px solid #E2E8F0;
  border-radius: 10px;
  transition: box-shadow 0.15s, transform 0.15s;
}
.task-card:hover { box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06); }
.task-card.is-done { opacity: 0.55; }
.task-card.is-done .task-title { text-decoration: line-through; }

/* 드래그 중 */
.sortable-ghost { opacity: 0.4; background: #FEF9C3; }
.sortable-chosen { cursor: grabbing; }

/* 우선순위 배지 */
.pri-high { background: #FEE2E2; color: #B91C1C; }
.pri-mid { background: #FEF3C7; color: #92400E; }
.pri-low { background: #DBEAFE; color: #1E40AF; }

/* 토스트 */
.toast {
  pointer-events: auto;
  background: #0F172A;
  color: white;
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 13px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
  animation: toast-in 0.2s ease-out;
}
.toast.error { background: #B91C1C; }
.toast.success { background: #059669; }
@keyframes toast-in {
  from { transform: translateY(-10px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* 페이지 페이드 */
.page-fade-in { animation: page-fade 0.18s ease-out; }
@keyframes page-fade {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* 스크롤바 */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: #CBD5E1; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #94A3B8; }

/* 캘린더 */
#calendar-root .fc {
  --fc-border-color: #E2E8F0;
  --fc-today-bg-color: #EFF6FF;
  font-family: 'Pretendard', system-ui, sans-serif;
}
#calendar-root .fc-toolbar-title { font-size: 1.1rem !important; }
#calendar-root .fc-event {
  border: none;
  font-size: 11px;
  padding: 1px 4px;
  cursor: pointer;
}

/* 모달 */
.modal-backdrop {
  position: fixed; inset: 0;
  background: rgba(15, 23, 42, 0.5);
  z-index: 50;
  display: flex; align-items: center; justify-content: center;
  padding: 1rem;
}
.modal-card {
  background: white;
  border-radius: 12px;
  width: 100%;
  max-width: 400px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
  animation: page-fade 0.18s ease-out;
}
