/* ===== 오늘 배너 (대시보드 메인 헤더) ===== */
.today-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 32px 36px;
  margin-bottom: 28px;
  background: linear-gradient(135deg, #ffffff 0%, #f9faff 100%);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.today-banner-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
}

.today-banner-date {
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-text);
  letter-spacing: -0.5px;
  line-height: 1.2;
}

.today-banner-progress-row {
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: 560px;
}

.today-banner-bar {
  flex: 1;
  height: 10px;
  background: var(--color-surface-2);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.today-banner-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--color-primary) 0%, #8b80ff 100%);
  border-radius: var(--radius-full);
  transition: width 0.5s ease;
}

.today-banner-stat {
  font-size: 1rem;
  color: var(--color-text-2);
  font-weight: 600;
  white-space: nowrap;
}

.today-banner-ms {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 9px 7px 12px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  align-self: flex-start;
  text-decoration: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.today-banner-ms:hover {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(108, 99, 255, 0.08);
}

.today-ms-icon {
  display: inline-flex;
  color: var(--color-primary);
}
.today-ms-icon svg { width: 16px; height: 16px; }

.today-ms-label {
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--color-text-3);
  letter-spacing: 0.02em;
}

.today-ms-title {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--color-text);
  max-width: 280px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.today-ms-dday {
  font-size: 0.76rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: var(--radius-full);
  background: var(--color-surface-2);
  color: var(--color-text-2);
}
.today-ms-dday.soon { background: #fee2e2; color: #dc2626; }
.today-ms-dday.near { background: #fef3c7; color: #b45309; }
.today-ms-dday.far  { background: var(--color-primary-light); color: var(--color-primary); }

.today-banner-actions {
  flex-shrink: 0;
}

/* ===== (deprecated) 펄스 스냅샷 — 다른 페이지 호환용 ===== */
.today-pulse {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 20px;
}

.pulse-chip {
  display: block;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  padding: 14px 16px;
  text-decoration: none;
  transition: box-shadow var(--transition), border-color var(--transition), transform var(--transition);
  cursor: pointer;
}

.pulse-chip:hover {
  box-shadow: var(--shadow-sm);
  border-color: var(--color-text-3);
  transform: translateY(-1px);
}

.pulse-label {
  font-size: 0.65rem;
  font-weight: 500;
  color: var(--color-text-3);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}

.pulse-value {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--color-text);
  line-height: 1;
  margin-bottom: 8px;
}

.pulse-value span {
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--color-text-3);
}

.pulse-bar {
  height: 3px;
  background: var(--color-border);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 6px;
}

.pulse-bar-fill {
  height: 100%;
  background: var(--color-primary);
  border-radius: 3px;
  transition: width 0.5s ease;
}

.pulse-bar-fill.green { background: #10b981; }

.pulse-sub {
  font-size: 0.68rem;
  color: var(--color-text-3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 마일스톤 D-day 색상 */
.pulse-ms .pulse-value { color: var(--color-primary); }
.pulse-ms-soon .pulse-value { color: #ef4444; }
.pulse-ms-near .pulse-value { color: #f59e0b; }

/* ===== 오늘 뷰 ===== */
.today-header {
  margin-bottom: 24px;
}

.today-date {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.2;
}

.today-progress-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
}

.today-progress-bar {
  flex: 1;
  height: 5px;
  background: var(--color-surface-2);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.today-progress-fill {
  height: 100%;
  background: var(--color-primary);
  border-radius: var(--radius-full);
  transition: width 0.4s ease;
}

.today-progress-text {
  font-size: 0.8rem;
  color: var(--color-text-3);
  white-space: nowrap;
}

/* ===== 빠른 추가 ===== */
/* quick-add-wrap styles live in base.css (shared across pages) */

/* ===== 카테고리 그룹 ===== */
.cat-group {
  margin-bottom: 28px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 18px 22px;
}

.cat-group-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--color-surface-2);
}

.cat-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.cat-label {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.cat-count {
  font-size: 0.82rem;
  color: var(--color-text-3);
  margin-left: auto;
  font-weight: 500;
}

/* 카테고리별 색상 */
.cat-기획  .cat-dot { background: var(--cat-기획-text); }
.cat-기획  .cat-label { color: var(--cat-기획-text); }
.cat-디자인 .cat-dot { background: var(--cat-디자인-text); }
.cat-디자인 .cat-label { color: var(--cat-디자인-text); }
.cat-개발  .cat-dot { background: var(--cat-개발-text); }
.cat-개발  .cat-label { color: var(--cat-개발-text); }
.cat-마케팅 .cat-dot { background: var(--cat-마케팅-text); }
.cat-마케팅 .cat-label { color: var(--cat-마케팅-text); }
.cat-운영  .cat-dot { background: var(--cat-운영-text); }
.cat-운영  .cat-label { color: var(--cat-운영-text); }
.cat-미분류 .cat-dot { background: var(--cat-미분류-text); }
.cat-미분류 .cat-label { color: var(--cat-미분류-text); }

/* ===== 오늘 태스크 아이템 ===== */
.today-task {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 14px;
  border-radius: var(--radius-sm);
  transition: background var(--transition);
}

.today-task + .today-task { border-top: 1px solid var(--color-surface-2); }

.today-task:hover { background: var(--color-surface-2); }

.today-task.done { opacity: 0.45; }

.today-checkbox {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  border: 2px solid var(--color-border);
  flex-shrink: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  transition: all var(--transition);
}
.today-checkbox:hover { border-color: var(--color-primary); }

.today-checkbox.checked {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
}

.today-task-text {
  flex: 1;
  font-size: 1.02rem;
  color: var(--color-text);
  line-height: 1.45;
}

.today-task.done .today-task-text {
  text-decoration: line-through;
  color: var(--color-text-3);
}

.today-task-del {
  opacity: 0.25;
  font-size: 0.9rem;
  color: var(--color-text-3);
  padding: 4px 8px;
  border-radius: 4px;
  transition: opacity var(--transition), background var(--transition);
}

.today-task:hover .today-task-del { opacity: 1; }
.today-task-del:hover { background: #fee2e2; color: var(--color-danger); }

.today-task-text.starred { font-weight: 600; }

.today-star {
  font-size: 1.05rem;
  color: var(--color-text-3);
  opacity: 0.2;
  flex-shrink: 0;
  padding: 2px 4px;
  transition: opacity var(--transition), color var(--transition);
}

.today-task:hover .today-star { opacity: 1; }
.today-star.on              { color: #f59e0b; opacity: 1; }
.today-star:hover           { color: #f59e0b; }

/* ===== 완료 섹션 ===== */
.done-section-toggle {
  font-size: 0.78rem;
  color: var(--color-text-3);
  cursor: pointer;
  padding: 8px 0;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
}

.done-section-toggle:hover { color: var(--color-text-2); }

/* ===== 오늘 끝! 버튼 ===== */
.end-of-day-btn {
  display: block;
  width: 100%;
  margin-top: 28px;
  padding: 16px 22px;
  background: transparent;
  border: 1.5px dashed var(--color-border);
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-weight: 500;
  color: var(--color-text-2);
  cursor: pointer;
  transition: all var(--transition);
}
.end-of-day-btn:hover {
  background: var(--color-surface-2);
  border-color: var(--color-primary);
  border-style: solid;
  color: var(--color-primary);
}

/* ===== 집중 모드 ===== */
.today-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.focus-toggle {
  padding: 10px 22px;
  border-radius: var(--radius-full);
  font-size: 0.95rem;
  font-weight: 600;
  background: transparent;
  border: 1.5px solid var(--color-border);
  color: var(--color-text-2);
  cursor: pointer;
  transition: all var(--transition);
  flex-shrink: 0;
}
.focus-toggle:hover { border-color: var(--color-text-2); color: var(--color-text); }
.focus-toggle.on {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}

.focus-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 40px;
}

.focus-card {
  margin: 60px auto 0;
  max-width: 560px;
  text-align: center;
  padding: 0 24px;
}

.focus-meta {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.focus-cat-badge {
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 500;
}
.focus-cat-badge.기획  { background: var(--cat-기획-bg);  color: var(--cat-기획-text); }
.focus-cat-badge.디자인 { background: var(--cat-디자인-bg); color: var(--cat-디자인-text); }
.focus-cat-badge.개발  { background: var(--cat-개발-bg);  color: var(--cat-개발-text); }
.focus-cat-badge.마케팅 { background: var(--cat-마케팅-bg); color: var(--cat-마케팅-text); }
.focus-cat-badge.운영  { background: var(--cat-운영-bg);  color: var(--cat-운영-text); }
.focus-cat-badge.cat-empty { background: var(--cat-미분류-bg); color: var(--cat-미분류-text); }

.focus-star { color: #f59e0b; font-size: 1.1rem; }
.focus-date { font-size: 0.85rem; color: var(--color-text-3); }

.focus-title {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.4;
  margin-bottom: 44px;
  word-break: keep-all;
  letter-spacing: -0.5px;
}

.focus-done-btn {
  padding: 18px 72px;
  font-size: 1.15rem;
  font-weight: 600;
  background: var(--color-primary);
  color: #fff;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition);
}
.focus-done-btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.focus-done-btn:active { transform: translateY(0); }

.focus-nav {
  margin-top: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.focus-nav-btn {
  padding: 5px 14px;
  background: transparent;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  color: var(--color-text-2);
  cursor: pointer;
  transition: all var(--transition);
}
.focus-nav-btn:hover:not(:disabled) { border-color: var(--color-text-2); color: var(--color-text); }
.focus-nav-btn:disabled { opacity: 0.35; cursor: not-allowed; }

.focus-counter {
  font-size: 0.78rem;
  color: var(--color-text-3);
  min-width: 40px;
}

.focus-summary {
  margin-top: 32px;
  font-size: 0.82rem;
  color: var(--color-text-3);
  line-height: 1.6;
}
.focus-hint {
  font-size: 0.72rem;
  color: var(--color-text-3);
  opacity: 0.7;
}

/* 집중 모드 빈 상태 */
.focus-empty {
  margin: 100px auto 0;
  text-align: center;
}
.focus-empty-icon { font-size: 3rem; margin-bottom: 16px; }
.focus-empty-title {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 8px;
}
.focus-empty-sub { font-size: 0.9rem; color: var(--color-text-3); }

/* ===== 프로젝트 마감 임박 ===== */
.proj-deadline-section {
  margin-top: 28px;
  padding: 20px 22px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
}

.proj-deadline-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.proj-deadline-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-text);
}

.proj-deadline-count {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--color-text-3);
  background: var(--color-surface-2);
  padding: 2px 9px;
  border-radius: var(--radius-full);
}

.proj-deadline-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 4px;
  border-radius: var(--radius-sm);
  transition: background var(--transition);
}
.proj-deadline-item:hover { background: var(--color-surface-2); }

.proj-deadline-badge {
  padding: 2px 10px;
  border-radius: var(--radius-full);
  font-size: 0.74rem;
  font-weight: 700;
  border: 1px solid;
  flex-shrink: 0;
}

.proj-deadline-text {
  flex: 1;
  font-size: 0.95rem;
  color: var(--color-text);
  word-break: break-word;
}

.proj-due {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 2px 9px;
  border-radius: var(--radius-full);
  background: var(--color-surface-2);
  color: var(--color-text-3);
  border: 1px solid var(--color-border);
  flex-shrink: 0;
}
.proj-due.today   { background: #ffedd5; color: #c2410c; border-color: #fdba74; }
.proj-due.overdue { background: #fee2e2; color: #b91c1c; border-color: #fca5a5; }

