@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Noto+Sans+SC:wght@400;500;600;700&display=swap');

:root {
  --bg: #f6f7fb; --panel: #fff; --text: #22263a; --muted: #8990a5;
  --line: #edf0f6; --purple: #7657ee; --shadow: 0 14px 34px rgba(44, 43, 82, .06);
}
* { box-sizing: border-box; }
body { margin: 0; color: var(--text); background: var(--bg); font-family: "DM Sans", "Noto Sans SC", sans-serif; }
button, input { font: inherit; }
button { cursor: pointer; border: 0; }
.app-shell { display: flex; min-height: 100vh; }
.sidebar { width: 250px; flex-shrink: 0; padding: 34px 24px 24px; display: flex; flex-direction: column; border-right: 1px solid var(--line); background: var(--panel); }
.brand { display: flex; gap: 11px; align-items: center; color: var(--text); font-size: 17px; font-weight: 700; text-decoration: none; }
.brand-mark { display: grid; width: 32px; height: 32px; place-items: center; border-radius: 10px; color: #fff; background: var(--purple); box-shadow: 0 7px 15px #7657ee40; }
.main-nav { display: grid; gap: 8px; margin-top: 64px; }
.nav-item { display: flex; align-items: center; gap: 15px; padding: 13px 14px; color: var(--muted); border-radius: 10px; font-size: 14px; text-decoration: none; transition: .2s; }
.nav-item span { width: 17px; text-align: center; font-size: 18px; }
.nav-item:hover, .nav-item.active { color: var(--purple); background: #f0edff; font-weight: 600; }
.sidebar-tip { margin-top: auto; padding: 18px; border-radius: 13px; background: linear-gradient(140deg, #f4f0ff, #f8f6ff); }
.tip-icon { display: block; margin-bottom: 10px; color: #f3ab54; font-size: 21px; }
.sidebar-tip strong { font-size: 13px; }.sidebar-tip p { margin: 7px 0 0; color: var(--muted); font-size: 11px; line-height: 1.7; }
.profile { display: flex; align-items: center; gap: 10px; padding-top: 25px; }.avatar { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 50%; color: #fff; background: #f3a264; font-size: 13px; }
.profile strong, .profile small { display: block; font-size: 12px; }.profile small { margin-top: 2px; color: var(--muted); font-size: 10px; }.icon-button { margin-left: auto; color: var(--muted); background: transparent; font-size: 18px; }
.content { width: min(100%, 1070px); margin: 0 auto; padding: 52px 58px 70px; }.topbar { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 38px; }.eyebrow { margin: 0 0 8px; color: var(--purple); font-size: 12px; font-weight: 600; letter-spacing: .06em; }.topbar h1 { margin: 0; font-size: 29px; letter-spacing: -.04em; }.topbar h1 span { font-size: 22px; }.subtitle { margin: 9px 0 0; color: var(--muted); font-size: 13px; }.primary-button, .add-button { padding: 12px 18px; border-radius: 9px; color: #fff; background: var(--purple); font-size: 12px; font-weight: 600; box-shadow: 0 8px 16px #7657ee36; transition: transform .2s, box-shadow .2s; }.primary-button:hover, .add-button:hover { transform: translateY(-2px); box-shadow: 0 11px 20px #7657ee45; }
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 17px; }.stat-card { position: relative; overflow: hidden; padding: 22px 23px; border-radius: 13px; background: var(--panel); box-shadow: var(--shadow); }.stat-card::after { position: absolute; right: -30px; bottom: -40px; width: 105px; height: 105px; border-radius: 50%; content: ""; background: currentColor; opacity: .08; }.accent-purple { color: #7657ee; }.accent-blue { color: #4b9ce9; }.accent-orange { color: #e9a252; }.stat-label, .stat-card small { color: var(--muted); font-size: 11px; }.stat-card strong { display: block; margin: 10px 0 5px; color: var(--text); font-size: 27px; letter-spacing: -.04em; }.stat-card .unit { margin-left: 2px; font-size: 13px; font-weight: 500; }.stat-decoration { position: absolute; right: 18px; top: 20px; font-size: 21px; }
.section-heading { display: flex; justify-content: space-between; align-items: end; margin: 42px 0 17px; }.section-heading h2, .card-heading h2 { margin: 0 0 6px; font-size: 17px; }.section-heading span { color: var(--muted); font-size: 11px; }.filters { display: flex; gap: 6px; }.filter { padding: 7px 10px; color: var(--muted); border-radius: 6px; background: transparent; font-size: 11px; }.filter.active, .filter:hover { color: var(--purple); background: #eeeafe; }
.task-panel { padding: 18px; border: 1px solid var(--line); border-radius: 13px; background: var(--panel); box-shadow: var(--shadow); }.task-form { display: flex; gap: 9px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }.task-form input { width: 100%; padding: 10px 12px; color: var(--text); outline: 0; border: 1px solid transparent; border-radius: 8px; background: var(--bg); font-size: 12px; }.task-form input:focus { border-color: #c9bfff; }.add-button { padding: 9px 14px; white-space: nowrap; }.task-list { display: grid; }.task-item { display: flex; align-items: center; gap: 12px; padding: 16px 3px; border-bottom: 1px solid var(--line); animation: appear .25s ease; }.task-item:last-child { border: 0; }.check { width: 18px; height: 18px; border: 1px solid #d7dbea; border-radius: 50%; background: transparent; }.check:hover { border-color: var(--purple); }.task-item.done .check { color: #fff; border-color: var(--purple); background: var(--purple); }.task-item.done .task-text { color: #b2b6c5; text-decoration: line-through; }.task-text { flex: 1; color: var(--text); font-size: 12px; }.task-tag { padding: 4px 8px; border-radius: 5px; color: #8b70ed; background: #f0edff; font-size: 10px; }.delete-task { padding: 3px; color: #b8bdcb; background: transparent; opacity: 0; }.task-item:hover .delete-task { opacity: 1; }.empty-state { padding: 30px 0 15px; color: var(--muted); text-align: center; font-size: 12px; }
.bottom-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 17px; margin-top: 17px; }.progress-card, .quote-card { min-height: 138px; padding: 22px; border-radius: 13px; background: var(--panel); box-shadow: var(--shadow); }.card-heading { display: flex; justify-content: space-between; align-items: center; }.card-heading h2 { margin: 0; }.card-heading span { color: var(--purple); font-size: 20px; font-weight: 700; }.progress-track { height: 8px; margin: 18px 0 12px; overflow: hidden; border-radius: 9px; background: #f0f1f7; }.progress-bar { width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #9679f5, #7657ee); transition: width .4s; }.progress-card p { margin: 0; color: var(--muted); font-size: 11px; }.quote-card { position: relative; background: #25283f; }.quote-card p { position: relative; z-index: 1; margin: 11px 0 10px; color: #fff; font-size: 15px; line-height: 1.7; }.quote-card small { color: #aeb2c9; font-size: 10px; }.quote-mark { position: absolute; top: 0; right: 25px; color: #ffffff18; font-family: Georgia; font-size: 100px; line-height: 1; }
.toast { position: fixed; left: 50%; bottom: 28px; padding: 11px 16px; color: #fff; border-radius: 8px; background: #25283f; box-shadow: var(--shadow); font-size: 12px; opacity: 0; pointer-events: none; transform: translate(-50%, 15px); transition: .25s; }.toast.show { opacity: 1; transform: translate(-50%, 0); }
body.dark { --bg: #181a28; --panel: #232638; --text: #f3f4fb; --muted: #a0a5bc; --line: #303449; }.dark .nav-item:hover, .dark .nav-item.active { background: #302b50; }.dark .sidebar-tip { background: #2c2945; }.dark .task-form input { background: #1b1d2b; }.dark .stat-card::after { opacity: .13; }
@keyframes appear { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@media (max-width: 780px) { .sidebar { width: 68px; padding: 25px 12px; align-items: center; }.brand span:last-child, .nav-item:not(.active)::after, .nav-item { font-size: 0; }.brand { font-size: 0; }.main-nav { width: 100%; }.nav-item { justify-content: center; padding: 13px 0; }.nav-item span { font-size: 18px; }.sidebar-tip, .profile > div:not(.avatar) { display: none; }.profile { margin-top: auto; padding-top: 20px; }.icon-button { display: none; }.content { padding: 35px 24px 50px; }.topbar h1 { font-size: 24px; }.stats-grid { grid-template-columns: 1fr; }.stat-card { padding: 17px 20px; }.bottom-grid { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .topbar { display: block; }.primary-button { margin-top: 20px; }.section-heading { display: block; }.filters { margin-top: 12px; }.task-form { display: block; }.add-button { width: 100%; margin-top: 8px; } }
