/* ============================================================
   Morning Routine Checklist — Styles
   Theme: Light sunrise gradient (warm, inviting)
   ============================================================ */

:root {
  --primary: #FDCB6E;
  --secondary: #E17055;
  --accent: #6C5CE7;
  --accent-hover: #7C6FF0;
  --bg: #FFFAF0;
  --bg-card: #FFFFFF;
  --border: #F0E6D5;
  --border-hover: #E5D8C5;
  --text: #2D3436;
  --text-muted: #636E72;
  --text-dim: #B2BEC3;
  --green: #00B894;
  --radius: 14px;
  --radius-sm: 10px;
  --font: 'Inter', system-ui, -apple-system, sans-serif;
  --transition: 200ms ease;
  --gradient: linear-gradient(135deg, #FDCB6E 0%, #E17055 100%);
  --shadow: 0 2px 12px rgba(225, 112, 85, 0.08);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; -webkit-font-smoothing: antialiased; }
body { font-family: var(--font); background: var(--bg); color: var(--text); min-height: 100vh; line-height: 1.6; }
.app { max-width: 560px; margin: 0 auto; padding: 0 20px 60px; }

.header { display: flex; justify-content: space-between; align-items: flex-start; padding: 24px 0 16px; border-bottom: 1px solid var(--border); margin-bottom: 16px; }
.logo-row { display: flex; align-items: center; gap: 10px; }
.logo-badge { font-size: 1.6rem; }
h1 { font-size: 1.3rem; font-weight: 700; letter-spacing: -0.02em; background: var(--gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.tagline { font-size: 0.72rem; color: var(--text-muted); font-style: italic; }

.header-stats { display: flex; gap: 16px; }
.stat { text-align: center; }
.stat-val { display: block; font-size: 1.3rem; font-weight: 700; color: var(--secondary); }
.stat-lbl { font-size: 0.65rem; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.03em; }

/* Profile Tabs */
.profile-tabs { display: flex; gap: 6px; margin-bottom: 12px; }
.profile-tab { flex: 1; padding: 8px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-sm); font-family: var(--font); font-size: 0.78rem; font-weight: 600; color: var(--text-muted); cursor: pointer; transition: all var(--transition); text-align: center; }
.profile-tab:hover { border-color: var(--border-hover); color: var(--text); }
.profile-tab.active { background: var(--gradient); color: #fff; border-color: transparent; }

/* Progress */
.progress-wrap { height: 6px; background: var(--border); border-radius: 3px; margin-bottom: 16px; overflow: hidden; }
.progress-bar { height: 100%; background: var(--gradient); border-radius: 3px; transition: width 400ms ease; }

/* Checklist */
.checklist { margin-bottom: 14px; }
.check-item { display: flex; align-items: center; gap: 10px; padding: 12px 14px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-sm); margin-bottom: 8px; box-shadow: var(--shadow); transition: all var(--transition); cursor: grab; }
.check-item:hover { border-color: var(--border-hover); }
.check-item.done { opacity: 0.5; }
.check-item.done .item-text { text-decoration: line-through; }
.check-box { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--border); cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all var(--transition); flex-shrink: 0; }
.check-box.checked { background: var(--gradient); border-color: var(--secondary); }
.check-box.checked::after { content: '✓'; color: #fff; font-size: 0.7rem; font-weight: 700; }
.item-text { flex: 1; font-size: 0.88rem; font-weight: 500; }
.item-time { font-size: 0.7rem; color: var(--text-dim); white-space: nowrap; }
.item-timer { font-family: monospace; font-size: 0.78rem; font-weight: 600; color: var(--secondary); min-width: 42px; text-align: center; }
.timer-btn { background: none; border: 1px solid var(--border); border-radius: 4px; padding: 2px 8px; font-size: 0.68rem; color: var(--accent); cursor: pointer; transition: all var(--transition); }
.timer-btn:hover { background: rgba(108, 92, 231, 0.06); border-color: var(--accent); }
.del-btn { background: none; border: none; font-size: 0.85rem; color: var(--text-dim); cursor: pointer; padding: 2px; opacity: 0.4; transition: opacity var(--transition); }
.del-btn:hover { opacity: 1; color: var(--secondary); }

/* Add Row */
.add-row { display: flex; gap: 8px; margin-bottom: 18px; }
#newItemText { flex: 1; padding: 10px 14px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-sm); font-family: var(--font); font-size: 0.85rem; color: var(--text); outline: none; }
#newItemText:focus { border-color: var(--accent); }
#newItemMin { width: 56px; padding: 10px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-sm); font-family: var(--font); font-size: 0.85rem; color: var(--text); text-align: center; outline: none; }

.btn { display: inline-flex; align-items: center; justify-content: center; padding: 10px 16px; border: none; border-radius: var(--radius-sm); font-family: var(--font); font-size: 0.85rem; font-weight: 600; cursor: pointer; transition: all var(--transition); }
.btn-accent { background: var(--accent); color: #fff; min-width: 40px; }
.btn-accent:hover { background: var(--accent-hover); }
.btn-outline { background: var(--bg-card); color: var(--text-muted); border: 1px solid var(--border); }
.btn-outline:hover { border-color: var(--border-hover); color: var(--text); }

/* Panel */
.panel { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; margin-bottom: 14px; box-shadow: var(--shadow); }
.panel-title { font-size: 0.85rem; font-weight: 600; margin-bottom: 10px; }

/* Heatmap */
.heatmap { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.heat-cell { aspect-ratio: 1; border-radius: 4px; display: flex; align-items: center; justify-content: center; font-size: 0.6rem; font-weight: 600; color: var(--text-muted); }
.heat-label { background: none; font-size: 0.58rem; color: var(--text-dim); }
.heat-0 { background: var(--border); }
.heat-1 { background: rgba(253,203,110,0.3); }
.heat-2 { background: rgba(253,203,110,0.6); }
.heat-3 { background: rgba(225,112,85,0.4); }
.heat-4 { background: rgba(225,112,85,0.7); color: #fff; }

.action-row { display: flex; gap: 10px; justify-content: center; }

@media (max-width: 480px) { .header { flex-direction: column; gap: 8px; } .header-stats { margin-top: 4px; } }
