@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
  color-scheme: dark;
  --ink: #edf2ee;
  --muted: #929d97;
  --green: #54edaa;
  --green-dark: #25cf8b;
  --line: #29332e;
  --paper: #171e1b;
  font-family: 'DM Sans', sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  position: relative;
  isolation: isolate;
  overflow-x: hidden;
  margin: 0;
  min-height: 100vh;
  padding: 68px 20px 48px;
  color: var(--ink);
  background-color: #101613;
  background-image:
    radial-gradient(610px circle at 2% 12%, rgba(0, 255, 170, .28), transparent 62%),
    radial-gradient(680px circle at 100% 5%, rgba(137, 66, 255, .3), transparent 62%),
    radial-gradient(690px circle at 56% 108%, rgba(255, 39, 146, .26), transparent 60%),
    radial-gradient(540px circle at 4% 84%, rgba(0, 218, 255, .23), transparent 60%),
    radial-gradient(600px circle at 98% 76%, rgba(255, 132, 35, .22), transparent 61%),
    radial-gradient(#26322c .65px, transparent .65px);
  background-size: auto, auto, auto, auto, auto, 17px 17px;
  background-attachment: fixed;
}
body::before {
  content: "";
  position: fixed;
  z-index: -1;
  inset: -14%;
  pointer-events: none;
  opacity: .86;
  background:
    radial-gradient(38% 35% at 13% 31%, rgba(0, 255, 153, .78), transparent 72%),
    radial-gradient(36% 34% at 87% 25%, rgba(132, 52, 255, .76), transparent 72%),
    radial-gradient(34% 29% at 58% 79%, rgba(255, 28, 143, .67), transparent 70%),
    radial-gradient(29% 26% at 31% 77%, rgba(0, 217, 255, .62), transparent 70%),
    radial-gradient(27% 27% at 78% 72%, rgba(255, 143, 26, .58), transparent 69%);
  filter: blur(34px);
  animation: color-drift 26s ease-in-out infinite alternate;
  will-change: transform;
}
@keyframes color-drift {
  0% { transform: translate3d(-3%, -2%, 0) scale(1.02); }
  50% { transform: translate3d(2%, 2%, 0) scale(1.1); }
  100% { transform: translate3d(4%, -2%, 0) scale(1.14); }
}
button, input, select { font: inherit; }
button:focus-visible, input:focus-visible, select:focus-visible { outline: 2px solid #7dffd0; outline-offset: 3px; }
.app { width: min(100%, 560px); margin: 0 auto; }
.header { text-align: center; margin-bottom: 34px; }
.brand-mark {
  display: grid; place-items: center; width: 42px; height: 42px; margin: 0 auto 23px;
  border-radius: 14px; color: #102017; background: var(--green); font-size: 22px; font-weight: 700;
  box-shadow: 0 7px 22px #78c89a24; transform: rotate(-5deg);
}
.eyebrow { margin: 0 0 9px; color: var(--green); font-size: 10px; font-weight: 700; letter-spacing: 2px; }
h1 { margin: 0; font: 800 clamp(36px, 8vw, 48px)/1.1 'Manrope', sans-serif; letter-spacing: -2px; }
h1 span { color: #54edaa; }
.subtitle { margin: 10px 0 0; color: var(--muted); font-size: 14px; }
.task-form {
  display: flex; flex-direction: column; gap: 0; padding: 8px 12px 10px 18px;
  background: #171e1b; border: 1px solid #2b3730; border-radius: 15px;
  box-shadow: 0 12px 32px #00000025; transition: border-color .2s, box-shadow .2s;
}
.task-form:focus-within { border-color: #5b9d73; box-shadow: 0 0 0 4px #78c89a16; }
.task-entry { display: flex; align-items: center; gap: 10px; }
.emoji-picker { flex: 0 0 96px; width: 96px; padding: 8px 5px; border: 1px solid #344139; border-radius: 9px; color: #cbd8ce; background: #121916; font-size: 10px; cursor: pointer; }
.task-entry input { flex: 1; min-width: 0; padding: 10px 0; border: 0; outline: 0; color: var(--ink); background: transparent; font-size: 14px; }
.task-entry input::placeholder { color: #78847d; }
.add-button { flex: 0 0 39px; width: 39px; height: 39px; border: 0; border-radius: 11px; color: #102017; background: var(--green); cursor: pointer; font-size: 25px; line-height: 1; transition: background .2s, transform .2s; }
.add-button:hover { background: #82ffd0; transform: translateY(-1px); }
.reminder-field { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; padding-top: 10px; border-top: 1px solid var(--line); }
.reminder-field label { color: #aab6ae; font-size: 11px; }
.reminder-field label span { margin-right: 4px; color: var(--green); font-size: 15px; }
.reminder-field input, .custom-message-field input { max-width: 100%; padding: 6px 8px; border: 1px solid #344139; border-radius: 8px; color: #dce6df; background: #121916; font-size: 11px; }
.form-hint { margin: 7px 0 0; color: #7f8c83; font-size: 10px; }
.custom-message-field { display: flex; flex-direction: column; gap: 7px; margin-top: 11px; padding-top: 10px; border-top: 1px solid var(--line); }
.custom-message-field label { color: #aab6ae; font-size: 11px; }
.custom-message-field label span { color: #7f8c83; }
.custom-message-field input { width: 100%; font-size: 12px; }
.custom-message-field input::placeholder { color: #68766e; }
.notification-controls { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 13px 2px 0; }
.notification-status { margin: 0; color: #849188; font-size: 11px; line-height: 1.5; }
.notification-button { flex: 0 0 auto; padding: 7px 10px; border: 1px solid #35443a; border-radius: 9px; color: #b7d9c2; background: #1a2820; cursor: pointer; font-size: 10px; font-weight: 600; transition: background .2s, border-color .2s; }
.notification-button:hover:not(:disabled) { border-color: #5b9d73; background: #21362a; }
.notification-button:disabled { color: #849188; cursor: default; opacity: .8; }
.task-panel { margin-top: 15px; padding: 21px 22px 15px; background: #171e1b; border: 1px solid #29342e; border-radius: 17px; box-shadow: 0 16px 44px #00000024; }
.list-heading { display: flex; align-items: center; justify-content: space-between; padding-bottom: 15px; border-bottom: 1px solid var(--line); }
.list-heading h2 { margin: 0; font: 700 16px 'Manrope', sans-serif; }
.task-count { padding: 5px 9px; border-radius: 20px; color: #91d8ad; background: #21362a; font-size: 11px; font-weight: 600; }
.task-list { list-style: none; margin: 0; padding: 0; }
.task-item { display: flex; align-items: center; gap: 12px; min-height: 58px; border-bottom: 1px solid var(--line); animation: appear .2s ease-out; }
@keyframes appear { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }
.check-button { display: grid; place-items: center; flex: 0 0 20px; width: 20px; height: 20px; padding: 0; border: 1.5px solid #56635b; border-radius: 7px; color: #102017; background: #1b2520; cursor: pointer; transition: all .18s; }
.check-button:hover { border-color: var(--green); }
.task-emoji { display: grid; flex: 0 0 30px; width: 30px; height: 30px; place-items: center; border: 1px solid #35443a; border-radius: 10px; background: #1b2820; font-size: 16px; }
.task-item.completed .check-button { border-color: var(--green); background: var(--green); }
.task-copy { flex: 1; display: flex; flex-direction: column; gap: 4px; min-width: 0; padding: 10px 0; }
.task-text { min-width: 0; overflow-wrap: anywhere; color: #d7e0da; font-size: 13px; line-height: 1.5; }
.task-item.completed .task-text { color: #7d8981; text-decoration: line-through; }
.task-reminder { color: #95bda1; font-size: 10px; line-height: 1.4; }
.task-reminder.overdue { color: #ffc27e; }
.task-reminder-note { overflow-wrap: anywhere; color: #8b9990; font-size: 10px; font-style: italic; line-height: 1.4; }
.delete-button { width: 32px; height: 32px; border: 0; border-radius: 8px; color: #87938b; background: transparent; cursor: pointer; font-size: 19px; opacity: .8; transition: all .15s; }
.delete-button:hover { color: #ff9b8e; background: #3b2523; opacity: 1; }
.empty-state { padding: 32px 10px 36px; text-align: center; color: var(--muted); }
.empty-icon { display: grid; place-items: center; width: 42px; height: 42px; margin: 0 auto 12px; border-radius: 14px; color: #91d8ad; background: #21362a; font-size: 22px; }
.empty-state p { margin: 0; font-size: 12px; }
.empty-state .empty-title { margin-bottom: 5px; color: #d6dfd8; font: 700 14px 'Manrope', sans-serif; }
.list-footer { display: flex; justify-content: space-between; align-items: center; padding-top: 14px; color: #839087; font-size: 11px; }
.text-button { padding: 4px 0; border: 0; color: #a5b2a9; background: transparent; cursor: pointer; font-size: 11px; }
.text-button:hover:not(:disabled) { color: #ff9b8e; }
.text-button:disabled { color: #59645d; cursor: default; }
.save-note { margin: 17px 0 0; color: #839087; text-align: center; font-size: 11px; }
.save-note span { margin-right: 5px; color: var(--green); font-size: 9px; }
.toast { display: flex; align-items: center; gap: 13px; position: fixed; z-index: 10; left: 50%; bottom: 24px; width: min(92vw, 460px); padding: 13px 14px; border: 1px solid #497859; border-radius: 15px; color: #e9f6ed; background: linear-gradient(135deg, #1b3023, #17231c 72%); box-shadow: 0 14px 42px #000a, 0 0 26px #78c89a12; text-align: left; transform: translateX(-50%); animation: appear .2s ease-out; }
.toast-icon { display: grid; flex: 0 0 38px; width: 38px; height: 38px; place-items: center; border: 1px solid #4c7658; border-radius: 12px; color: #a8e5ba; background: #254330; font-size: 21px; }
.toast-content { flex: 1; min-width: 0; }
.toast-title { display: block; overflow: hidden; color: #a9e2b9; font-size: 10px; font-weight: 700; letter-spacing: .08em; text-overflow: ellipsis; text-transform: uppercase; white-space: nowrap; }
.toast-message { margin: 4px 0 0; overflow-wrap: anywhere; color: #eaf2ec; font-size: 13px; line-height: 1.4; }
.toast-close { flex: 0 0 30px; width: 30px; height: 30px; padding: 0; border: 0; border-radius: 8px; color: #a6b6aa; background: transparent; cursor: pointer; font-size: 21px; line-height: 1; }
.toast-close:hover { color: white; background: #ffffff12; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
@keyframes panel-fade { from { opacity: 0; } to { opacity: 1; } }
.header, .task-form, .notification-controls, .task-panel, .planner-panel {
  animation: panel-fade .65s ease-out both;
  transition: border-color .3s ease, box-shadow .3s ease;
}
.header { animation-delay: .02s; }
.task-form { animation-delay: .09s; }
.notification-controls { animation-delay: .16s; }
.task-panel { animation-delay: .23s; }
.planner-panel { animation-delay: .3s; }
.task-form:hover:not(:focus-within), .task-panel:hover, .planner-panel:hover {
  border-color: #3d5b49;
  box-shadow: 0 16px 44px #00000038, 0 0 24px #54d4a014;
}
@media (max-width: 480px) {
  body::before { opacity: .42; filter: blur(34px); }
}
@media (prefers-reduced-motion: reduce) {
  body::before { animation: none !important; }
  *, *::before, *::after { animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
}
@media (max-width: 480px) {
  body { padding: 42px 16px 32px; }
  .header { margin-bottom: 27px; }
  .task-form { padding-left: 14px; }
  .emoji-picker { flex-basis: 78px; width: 78px; padding-inline: 3px; font-size: 9px; }
  .task-panel { padding: 18px 16px 14px; }
  .notification-controls { align-items: flex-start; }
  .notification-status { max-width: 62%; }
  .reminder-field input { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }
