/* ===== TIDY APP – REDESIGN (Original Tidy Style) ===== */
:root {
  --bg: #F5F5F7;
  --card: #FFFFFF;
  --text: #1D1D1F;
  --text-secondary: #86868B;
  --accent: #94BAC7;
  --accent-dark: #7BA0AD;
  --accent-light: #D4E4EA;
  --green: #34C759;
  --yellow: #FFCC00;
  --red: #FF3B30;
  --orange: #FF9500;
  --shadow: 0 2px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 20px;
  --font: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', 'Helvetica Neue', Arial, sans-serif;
  --nav-height: 64px;
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body { padding-bottom: calc(var(--nav-height) + env(safe-area-inset-bottom, 0px)); }

/* ===== VIEWS ===== */
.view { display: none; padding: 20px; }
.view.active { display: block; }

.view-title {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}

/* ===== BOTTOM NAV ===== */
.bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid rgba(0,0,0,0.06);
  display: flex; height: var(--nav-height);
  padding-bottom: env(safe-area-inset-bottom, 0);
  z-index: 200;
}
.nav-item {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 3px; font-size: 10px; font-weight: 500; color: var(--text-secondary);
  cursor: pointer; transition: color 0.2s; border: none; background: none;
  padding: 8px 0;
}
.nav-svg {
  width: 24px; height: 24px;
  transition: transform 0.2s;
}
.nav-item.active { color: var(--accent-dark); }
.nav-item.active .nav-svg { transform: scale(1.1); }
.nav-item:active .nav-svg { transform: scale(0.9); }

/* ===== WEEK CALENDAR ===== */
.week-calendar-card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px 12px 12px;
  margin-bottom: 20px;
}

.week-nav {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 14px; padding: 0 4px;
}
.week-month-year {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.3px;
}
.week-arrow {
  width: 32px; height: 32px;
  border-radius: 50%;
  border: none;
  background: var(--bg);
  color: var(--text);
  font-size: 20px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s, transform 0.2s;
  line-height: 1;
}
.week-arrow:active { transform: scale(0.9); background: var(--accent-light); }

.week-days {
  display: flex;
  justify-content: space-between;
  gap: 2px;
}

.week-day {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  padding: 4px 0;
  transition: transform 0.2s;
  -webkit-user-select: none;
  user-select: none;
}
.week-day:active { transform: scale(0.92); }

.week-day-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
}

.week-day-circle {
  width: 40px; height: 40px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  transition: background 0.2s, color 0.2s, transform 0.2s;
  position: relative;
}

.week-day.today .week-day-circle {
  background: var(--accent);
  color: white;
  transform: scale(1.08);
}

.week-day.selected .week-day-circle {
  background: var(--accent-light);
  color: var(--accent-dark);
}

.week-day-dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--accent);
  transition: background 0.2s;
}
.week-day.no-tasks .week-day-dot { opacity: 0; }
.week-day.today .week-day-dot { background: white; }

.week-day.other-month .week-day-circle {
  color: var(--text-secondary);
  opacity: 0.4;
}

/* ===== CIRCLES ROW (Neues Layout) ===== */
.circles-row {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 32px;
  margin-bottom: 16px;
}

.circle-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  transition: transform 0.2s;
  -webkit-user-select: none;
  user-select: none;
  position: relative;
}
.circle-block:active {
  transform: scale(0.95);
}
.circle-block.active {
  transform: scale(0.97);
}

.circle-wrapper {
  position: relative;
  width: 110px;
  height: 110px;
}

.progress-ring {
  transform: rotate(-90deg);
}

.progress-ring-bg {
  fill: none;
  stroke: #E5E5EA;
  stroke-width: 8;
}

.progress-ring-fill {
  fill: none;
  stroke: var(--accent);
  stroke-width: 8;
  stroke-linecap: round;
  stroke-dasharray: 295.31;
  stroke-dashoffset: 295.31;
  transition: stroke-dashoffset 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.circle-overdue-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--red);
  color: white;
  font-size: 12px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  box-shadow: 0 2px 8px rgba(255,59,48,0.4);
  animation: pulse-badge 2s infinite;
}

@keyframes pulse-badge {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.15); }
}

.circle-text {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.circle-count {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--text);
}

.circle-label {
  margin-top: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
}

.circle-hint {
  margin-top: 4px;
  font-size: 11px;
  color: var(--text-secondary);
  opacity: 0.7;
  transition: opacity 0.2s;
}
.circle-block.active .circle-hint {
  opacity: 0;
}

/* Circle SVG fills */
.progress-ring-tasks {
  stroke: var(--accent) !important;
}
.progress-ring-routines {
  stroke: #E9C46A !important;
}

/* ===== MOTIVATE TEXT ===== */
.motivate-text {
  text-align: center;
  padding: 16px 20px;
  transition: opacity 0.3s, max-height 0.3s, margin 0.3s;
  max-height: 60px;
  opacity: 1;
  overflow: hidden;
}
.motivate-text.hidden {
  max-height: 0;
  opacity: 0;
  margin: 0;
  padding: 0;
}
.motivate-emoji {
  font-size: 24px;
  display: block;
  margin-bottom: 4px;
}
.motivate-msg {
  font-size: 14px;
  color: var(--text-secondary);
  font-weight: 500;
}

/* ===== CIRCLE SECTIONS (Aufklappbar) ===== */
.circle-section {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 16px;
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1),
              opacity 0.3s ease,
              margin 0.3s ease,
              padding 0.3s ease;
  padding: 0 0;
}
.circle-section.expanded {
  max-height: 2000px;
  opacity: 1;
  padding: 0;
}

.circle-section-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid #F0F0F2;
}

.circle-section-title {
  flex: 1;
  font-size: 15px;
  font-weight: 700;
}

.circle-section-close {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: none;
  background: var(--bg);
  color: var(--text-secondary);
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, transform 0.2s;
}
.circle-section-close:active {
  transform: scale(0.9);
  background: #E0E0E5;
}

.circle-section-refresh {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: none;
  background: none;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, transform 0.2s;
}
.circle-section-refresh:active {
  transform: scale(0.9);
  background: var(--bg);
}

.circle-section-body {
  padding: 8px 16px 16px;
  max-height: 1500px;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

/* ===== OVERDUE BANNER ===== */
.overdue-banner {
  background: linear-gradient(135deg, #FFF3E0, #FFE0B2);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: transform 0.2s;
  border: 1px solid rgba(255,149,0,0.2);
}
.overdue-banner:active { transform: scale(0.98); }
.overdue-banner-icon { font-size: 20px; }
.overdue-banner-text { flex: 1; font-size: 14px; font-weight: 600; color: #E65100; }
.overdue-banner-arrow { color: var(--orange); font-size: 18px; font-weight: 700; }

/* ===== CARDS ===== */
.card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px;
  margin-bottom: 16px;
  transition: transform 0.2s, opacity 0.3s;
}
.card:active { transform: scale(0.98); }

/* ===== PROGRESS BAR ===== */
.progress-bar {
  height: 8px; background: #E5E5EA; border-radius: 4px; overflow: hidden;
}
.progress-fill {
  height: 100%; border-radius: 4px; transition: width 0.5s ease;
  background: linear-gradient(90deg, var(--accent), var(--green));
}

/* ===== SECTION HEADERS ===== */
.section-header {
  font-size: 13px; font-weight: 600; color: var(--text-secondary);
  text-transform: uppercase; letter-spacing: 0.5px;
  margin: 16px 0 8px; padding-left: 4px;
}

/* ===== TASK CARD ===== */
.task-card {
  background: var(--card); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 14px 16px;
  margin-bottom: 10px; display: flex; align-items: center; gap: 12px;
  cursor: pointer; transition: transform 0.2s, opacity 0.3s;
  position: relative; overflow: hidden;
}
.task-card.completing {
  opacity: 0; transform: translateX(60px);
  transition: opacity 0.3s, transform 0.3s;
}
.task-card .task-emoji { font-size: 28px; flex-shrink: 0; }
.task-card .task-info { flex: 1; min-width: 0; }
.task-card .task-name { font-weight: 600; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.task-card .task-meta { font-size: 12px; color: var(--text-secondary); margin-top: 2px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.task-card .room-tag {
  font-size: 11px; background: var(--accent-light); color: var(--accent-dark);
  padding: 2px 8px; border-radius: 8px; font-weight: 500;
}
.task-card .subtask-badge {
  font-size: 11px; color: var(--text-secondary);
  background: #F0F0F2; padding: 2px 8px; border-radius: 8px;
}
.task-card .due-date {
  font-size: 11px; color: var(--text-secondary); font-weight: 500;
}

/* ===== CHECKBOX ===== */
.task-checkbox {
  width: 24px; height: 24px; border-radius: 50%;
  border: 2px solid #D1D1D6;
  background: none; cursor: pointer; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.25s; font-size: 13px; color: transparent;
  padding: 0;
}
.task-checkbox.checked {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
}
.task-checkbox:active { transform: scale(0.85); }

/* ===== OVERDUE STYLES ===== */
.overdue-badge {
  font-size: 11px; font-weight: 700; color: white;
  background: var(--red); padding: 2px 8px; border-radius: 8px;
  animation: pulse-overdue 2s infinite;
}
@keyframes pulse-overdue {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}
.overdue-card { border-left: 4px solid var(--red); }
.date-overdue { color: var(--red); font-weight: 600; }

.completed-card { opacity: 0.6; }
.completed-card .task-name { text-decoration: line-through; color: var(--text-secondary); }

/* ===== ROUTINE CARD ===== */
.routine-card {
  background: var(--card); border-radius: var(--radius-sm);
  box-shadow: var(--shadow); padding: 12px 14px;
  margin-bottom: 8px; display: flex; align-items: center; gap: 12px;
  transition: opacity 0.3s;
}
.routine-card.done { opacity: 0.5; }
.routine-card .routine-emoji { font-size: 24px; }
.routine-card .routine-name { flex: 1; font-weight: 500; font-size: 14px; }
.routine-card.done .routine-name { text-decoration: line-through; color: var(--text-secondary); }

/* ===== ACCORDION (still used in other views) ===== */
.accordion {
  margin-top: 16px;
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.accordion-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
  user-select: none;
  -webkit-user-select: none;
  transition: background 0.2s;
}
.accordion-header:active { background: var(--bg); }
.accordion-arrow {
  font-size: 10px;
  color: var(--text-secondary);
  transition: transform 0.2s;
  width: 14px;
  text-align: center;
}
.accordion-header.open .accordion-arrow {
  transform: rotate(90deg);
}
.accordion-label { flex: 1; }
.accordion-action {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 16px;
  padding: 4px 6px;
  border-radius: 8px;
  transition: background 0.2s;
}
.accordion-action:active { background: #E8E8ED; }
.accordion-body {
  padding: 0 16px 14px;
  overflow: hidden;
  max-height: 2000px;
  transition: max-height 0.3s ease;
}
.accordion-body.collapsed {
  max-height: 0;
  padding-top: 0;
  padding-bottom: 0;
}

/* ===== COMPLETED ACCORDION (im Circle-Section) ===== */
.completed-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 0 6px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  user-select: none;
  -webkit-user-select: none;
}
.completed-toggle .toggle-arrow {
  font-size: 10px;
  transition: transform 0.2s;
  width: 14px;
  text-align: center;
}
.completed-toggle.open .toggle-arrow {
  transform: rotate(90deg);
}
.completed-list {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.3s ease;
}
.completed-list.expanded {
  max-height: 2000px;
}

/* ===== ROOM GRID ===== */
.room-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.room-card {
  background: var(--card); border-radius: var(--radius-lg);
  box-shadow: var(--shadow); padding: 20px 16px; cursor: pointer;
  text-align: center; transition: transform 0.2s;
}
.room-card:active { transform: scale(0.96); }
.room-card .room-emoji-big { font-size: 40px; margin-bottom: 8px; }
.room-card .room-name { font-weight: 700; font-size: 16px; margin-bottom: 10px; }
.room-card .room-stats { font-size: 12px; color: var(--text-secondary); margin-bottom: 8px; }
.room-card .room-last { font-size: 11px; color: var(--text-secondary); margin-top: 6px; }

/* ===== ROOM DETAIL ===== */
.room-detail-header {
  display: flex; align-items: center; gap: 12px; margin-bottom: 16px;
}
.back-btn {
  width: 36px; height: 36px; border-radius: 50%; border: none;
  background: var(--card); box-shadow: var(--shadow); font-size: 18px;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: transform 0.2s;
}
.back-btn:active { transform: scale(0.9); }

/* ===== STATISTICS ===== */
.stat-card {
  background: var(--card); border-radius: var(--radius-lg);
  box-shadow: var(--shadow); padding: 20px; margin-bottom: 16px;
}
.stat-card h3 { font-size: 14px; color: var(--text-secondary); font-weight: 600; text-transform: uppercase; letter-spacing: 0.3px; margin-bottom: 12px; }
.stat-big { font-size: 42px; font-weight: 800; color: var(--accent-dark); }
.stat-label { font-size: 14px; color: var(--text-secondary); margin-top: 4px; }

.bar-chart { display: flex; align-items: flex-end; gap: 6px; height: 120px; padding-top: 10px; }
.bar-col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.bar {
  width: 100%; border-radius: 6px 6px 4px 4px; min-height: 4px;
  background: var(--accent); transition: height 0.5s ease;
}
.bar-label { font-size: 11px; color: var(--text-secondary); font-weight: 500; }
.bar-value { font-size: 11px; color: var(--text); font-weight: 600; }

.top-room { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.top-room .tr-emoji { font-size: 24px; }
.top-room .tr-info { flex: 1; }
.top-room .tr-name { font-weight: 600; font-size: 14px; }
.top-room .tr-pct { font-weight: 700; font-size: 16px; color: var(--accent-dark); }

/* ===== FAB ===== */
.fab {
  position: fixed; bottom: calc(var(--nav-height) + 20px); right: 20px;
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--accent); color: white; border: none;
  font-size: 28px; cursor: pointer; z-index: 150;
  box-shadow: 0 4px 16px rgba(148,186,199,0.4);
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex; align-items: center; justify-content: center;
}
.fab:active { transform: scale(0.9); }

/* ===== MODALS ===== */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.4);
  z-index: 300; opacity: 0; pointer-events: none;
  transition: opacity 0.3s;
}
.modal-overlay.active { opacity: 1; pointer-events: auto; }

.modal-sheet {
  position: fixed; bottom: 0; left: 0; right: 0;
  background: var(--card); border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  z-index: 301; max-height: 90vh; overflow-y: auto;
  transform: translateY(100%); transition: transform 0.35s cubic-bezier(0.32, 0.72, 0, 1);
  padding: 20px; padding-bottom: calc(20px + env(safe-area-inset-bottom, 0));
}
.modal-sheet.active { transform: translateY(0); }

.modal-handle {
  width: 36px; height: 5px; background: #D1D1D6; border-radius: 3px;
  margin: 0 auto 16px;
}
.modal-title { font-size: 18px; font-weight: 700; margin-bottom: 16px; }

/* ===== FORM ===== */
.form-group { margin-bottom: 16px; }
.form-label { font-size: 13px; font-weight: 600; color: var(--text-secondary); margin-bottom: 6px; display: block; }
.form-input {
  width: 100%; padding: 12px 14px; border: 2px solid #E5E5EA;
  border-radius: var(--radius-sm); font-size: 15px; font-family: var(--font);
  background: var(--bg); transition: border-color 0.2s; outline: none;
}
.form-input:focus { border-color: var(--accent); }
.form-select {
  width: 100%; padding: 12px 14px; border: 2px solid #E5E5EA;
  border-radius: var(--radius-sm); font-size: 15px; font-family: var(--font);
  background: var(--bg); outline: none; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M6 8L1 3h10z' fill='%2386868B'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
}
.form-select:focus { border-color: var(--accent); }

.emoji-picker-inline {
  display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px;
}
.emoji-option {
  width: 38px; height: 38px; border-radius: 10px; border: 2px solid transparent;
  background: var(--bg); font-size: 20px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: border-color 0.2s;
}
.emoji-option.selected { border-color: var(--accent); background: var(--accent-light); }

/* ===== BUTTONS ===== */
.btn {
  padding: 12px 24px; border-radius: var(--radius-sm); font-size: 15px;
  font-weight: 600; cursor: pointer; border: none; font-family: var(--font);
  transition: transform 0.2s, opacity 0.2s;
}
.btn:active { transform: scale(0.96); }
.btn-primary { background: var(--accent); color: white; }
.btn-primary:hover { background: var(--accent-dark); }
.btn-danger { background: #FF3B30; color: white; }
.btn-danger:hover { background: #D63028; }
.btn-secondary { background: #E8E8ED; color: var(--text); }
.btn-block { width: 100%; }
.btn-row { display: flex; gap: 10px; margin-top: 16px; }

/* ===== SETTINGS ===== */
.settings-list .settings-item {
  background: var(--card); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 16px; margin-bottom: 10px;
  display: flex; align-items: center; gap: 12px; cursor: pointer;
  transition: transform 0.2s;
}
.settings-item:active { transform: scale(0.98); }
.settings-item .si-emoji { font-size: 24px; }
.settings-item .si-text { flex: 1; font-weight: 500; font-size: 15px; }
.settings-item .si-arrow { color: var(--text-secondary); font-size: 16px; }

/* ===== COLOR PICKER ===== */
.color-options { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 6px; }
.color-option {
  width: 34px; height: 34px; border-radius: 50%; border: 3px solid transparent;
  cursor: pointer; transition: border-color 0.2s;
}
.color-option.selected { border-color: var(--text); }

/* ===== CHECKLIST ===== */
.checklist-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.checklist-card {
  background: var(--card); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 16px; cursor: pointer;
  text-align: center; transition: transform 0.2s;
}
.checklist-card:active { transform: scale(0.96); }
.checklist-card .cl-emoji { font-size: 32px; margin-bottom: 6px; }
.checklist-card .cl-name { font-weight: 600; font-size: 14px; }
.checklist-card .cl-count { font-size: 12px; color: var(--text-secondary); margin-top: 4px; }

/* ===== EMPTY STATE ===== */
.empty-state { text-align: center; padding: 40px 20px; color: var(--text-secondary); }
.empty-state .empty-emoji { font-size: 48px; margin-bottom: 12px; }
.empty-state .empty-text { font-size: 15px; }

/* ===== DRAG ===== */
.task-card.dragging { opacity: 0.4; }
.task-card.drag-over { border-top: 3px solid var(--accent); }

/* ===== UTILITY ===== */
.hidden { display: none !important; }
.mt-12 { margin-top: 12px; }
.mb-8 { margin-bottom: 8px; }
.text-center { text-align: center; }

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 0; height: 0; }

/* ===== ETAs (removed from hero, shown in section) ===== */
.section-eta {
  font-size: 12px;
  color: var(--text-secondary);
  padding: 4px 4px 0;
  font-weight: 500;
}
.section-eta .eta-icon { margin-right: 4px; }

/* ===== Routine Accordion ===== */
.routine-accordion {
  margin-bottom: 8px;
  background: var(--bg-card);
  border-radius: var(--radius-sm, 12px);
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
  overflow: hidden;
}

.routine-accordion.all-done {
  opacity: 0.7;
}

.routine-accordion-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
}

.routine-accordion-header:active {
  background: rgba(0,0,0,0.03);
}

.routine-accordion-arrow {
  font-size: 10px;
  color: var(--text-secondary);
  transition: transform 0.2s;
}

.routine-accordion.expanded .routine-accordion-arrow {
  transform: rotate(90deg);
}

.routine-accordion-label {
  flex: 1;
  font-weight: 600;
  font-size: 15px;
}

.routine-accordion-count {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  background: rgba(148,186,199,0.15);
  padding: 2px 8px;
  border-radius: 10px;
}

.routine-accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding: 0 16px;
}

.routine-accordion.expanded .routine-accordion-body {
  max-height: 500px;
  padding: 0 16px 12px;
}

/* Overdue toggle list */
.overdue-list {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.overdue-list.expanded {
  max-height: 2000px;
}
.section-header .toggle-arrow {
  display: inline-block;
  transition: transform 0.2s;
  font-size: 12px;
}
.section-header[style*="cursor"] .toggle-arrow {
  /* handled inline */
}
