
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  --bg: #0b0b14;
  --panel: #141421;
  --border: #28283b;
  --purple: #a78bfa;
  --text: #f5f3ff;
  --muted: #9695ad;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', sans-serif;
}

.sidebar {
  position: fixed;
  width: 245px;
  height: 100vh;
  padding: 32px 22px;
  border-right: 1px solid var(--border);
  background: #10101b;
}

.sidebar h2 { color: var(--purple); }

.muted { color: var(--muted); font-size: 13px; }

nav { margin-top: 35px; display: grid; gap: 12px; }

nav a {
  color: var(--muted);
  text-decoration: none;
  padding: 14px;
  border-radius: 10px;
  transition: .25s;
}

nav a:hover, nav a.active {
  background: #252139;
  color: #c4b5fd;
}

.side-bottom {
  position: absolute;
  bottom: 30px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, #8b5cf6, #ec4899);
  display: grid;
  place-items: center;
  font-weight: bold;
}

.side-bottom p { margin-bottom: 0; }

main {
  margin-left: 245px;
  padding: 42px;
  max-width: 1600px;
}

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 32px;
}

header h1 { font-size: clamp(28px, 4vw, 42px); margin: 10px 0; }
.purple { color: var(--purple); }

.date {
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 16px;
  white-space: nowrap;
  font-size: 13px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 24px;
}

.card {
  background: linear-gradient(145deg, #171725, #12121e);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 24px;
  min-width: 0;
  transition: transform .25s, border-color .25s;
}

.card:hover {
  transform: translateY(-3px);
  border-color: #62518e;
}

.stats h2 { font-size: 32px; margin: 18px 0 8px; }
.stats span { color: var(--muted); font-size: 12px; }

.progress {
  height: 6px;
  background: #302b43;
  border-radius: 20px;
  margin-top: 16px;
  overflow: hidden;
}

#progressBar {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #8b5cf6, #d8b4fe);
  transition: width .4s;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(270px, 1fr);
  gap: 22px;
}

.section-head { margin-bottom: 22px; }
.section-head h2, .focus-card h2 { margin-bottom: 6px; }
.section-head p, .focus-card > p { margin-top: 6px; }

form {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}

input, select {
  background: #0d0d17;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 12px;
  min-width: 0;
}

input { flex: 1; width: 100px; }
select { width: 105px; }

button {
  border: 0;
  border-radius: 9px;
  padding: 12px 16px;
  background: var(--purple);
  color: #171127;
  font-weight: 700;
  cursor: pointer;
  transition: .2s;
}

button:hover { filter: brightness(1.15); transform: scale(1.02); }

.task {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 15px 0;
  border-bottom: 1px solid var(--border);
  animation: appear .3s ease;
}

.task input[type="checkbox"] { flex: 0 0 auto; width: 17px; accent-color: #a78bfa; }
.task-info { flex: 1; overflow-wrap: anywhere; }
.task.done .task-name { text-decoration: line-through; color: var(--muted); }
.task-name { font-size: 13px; }
.priority { display: block; font-size: 11px; margin-top: 5px; color: var(--purple); }
.delete-btn { padding: 7px 10px; background: #35202c; color: #fda4af; }

.focus-card {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: radial-gradient(ellipse at top, #292044, #141421 65%);
}

.timer {
  font-size: clamp(45px, 6vw, 64px);
  font-weight: 800;
  letter-spacing: -3px;
  margin: 25px 0;
  font-variant-numeric: tabular-nums;
}

.timer-controls { display: flex; gap: 10px; }
.secondary { background: #2a293b; color: var(--text); }
.timer-note { margin-top: 24px; }

footer {
  color: var(--muted);
  text-align: center;
  margin-top: 40px;
  font-size: 12px;
}

@keyframes appear {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 1050px) {
  .sidebar { width: 200px; }
  main { margin-left: 200px; padding: 28px; }
  .content-grid { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  .sidebar {
    position: static;
    width: 100%;
    height: auto;
    padding: 15px 20px;
  }
  .sidebar h2 { margin: 0; }
  .sidebar > .muted, .side-bottom { display: none; }
  nav { display: flex; margin-top: 15px; gap: 5px; flex-wrap: wrap; }
  nav a { padding: 10px; font-size: 12px; }
  main { margin: 0; padding: 22px 15px; }
  header { align-items: flex-start; flex-direction: column; }
  .stats { grid-template-columns: 1fr; gap: 12px; }
  .stats .card { padding: 18px; }
  .stats h2 { margin: 10px 0; }
  form { display: grid; grid-template-columns: 1fr auto; }
  form input { grid-column: 1 / -1; width: 100%; }
  form select { width: 100%; }
}
