/* UniTrack — V1 dashboard styles */
:root {
  --bg: #10111b;
  --sidebar: #151622;
  --panel: #191b29;
  --panel-soft: #1d2030;
  --border: rgba(255,255,255,.065);
  --text: #f3f3fa;
  --muted: #9295aa;
  --purple: #9274ff;
  --purple-soft: rgba(146,116,255,.13);
  --blue: #55b9ee;
  font-family: "DM Sans", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(ellipse at 78% 12%, rgba(103, 74, 190, .20), transparent 34%),
    radial-gradient(ellipse at 45% 88%, rgba(37, 107, 153, .13), transparent 38%),
    linear-gradient(135deg, #0d0e18 0%, #121323 48%, #101522 100%);
  background-attachment: fixed;
  color: var(--text);
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .72;
  background:
    radial-gradient(circle at 82% 18%, rgba(151, 116, 255, .16), transparent 2px),
    radial-gradient(circle at 82% 18%, rgba(151, 116, 255, .08), transparent 190px),
    radial-gradient(circle at 27% 76%, rgba(74, 169, 220, .12), transparent 230px);
}
body::after {
  content: "";
  position: fixed;
  z-index: -1;
  width: 520px;
  height: 520px;
  top: -260px;
  right: 7%;
  border: 1px solid rgba(174, 148, 255, .09);
  border-radius: 38%;
  transform: rotate(32deg);
  box-shadow:
    0 0 0 42px rgba(174, 148, 255, .025),
    0 0 0 95px rgba(174, 148, 255, .018),
    0 0 100px rgba(105, 83, 190, .08);
  pointer-events: none;
}
button, a { font: inherit; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; }
.app-shell { min-height: 100vh; }
.sidebar {
  width: 248px; position: fixed; inset: 0 auto 0 0; z-index: 5;
  display: flex; flex-direction: column; padding: 30px 19px 18px;
  background: rgba(19, 20, 34, .88); backdrop-filter: blur(22px); border-right: 1px solid var(--border);
}
.brand { display: flex; align-items: center; gap: 11px; margin: 0 0 55px 8px; font: 700 21px "Space Grotesk", sans-serif; letter-spacing: -.7px; }
.brand-mark { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 11px; color: white; background: linear-gradient(145deg,#a58aff,#6849e8); box-shadow: 0 7px 22px #7656e64a; }
.brand-light { color: #a99aff; }
.nav-label, .section-kicker, .eyebrow { color: #777b92; font-size: 10px; font-weight: 700; letter-spacing: 1.55px; }
.nav-label { margin: 0 0 13px 12px; }
.main-nav { display: grid; gap: 7px; }
.nav-link { display: flex; align-items: center; gap: 13px; padding: 12px 13px; border-radius: 10px; color: #999caf; font-size: 13px; transition: .2s ease; }
.nav-link:hover { color: white; background: #ffffff09; }
.nav-link.active { color: #c7baff; background: var(--purple-soft); box-shadow: inset 2px 0 #9a7dff; }
.nav-icon { width: 18px; text-align: center; font-size: 17px; }
.sidebar-bottom { margin-top: auto; }
.focus-card { padding: 17px 16px 15px; margin: 0 2px 18px; border: 1px solid #8e73ed26; border-radius: 13px; background: linear-gradient(145deg,#28233e,#201f32); }
.focus-icon { color: #b7a5ff; font-size: 18px; }
.focus-title { margin: 10px 0 6px; font: 600 17px/1.25 "Space Grotesk",sans-serif; }
.focus-copy { margin: 0; color: #9c9bb3; font-size: 11px; line-height: 1.6; }
.focus-line { height: 3px; margin-top: 15px; border-radius: 9px; background: #ffffff13; }
.focus-line span { display: block; width: 38%; height: 100%; border-radius: inherit; background: #987cff; }
.settings-link { margin-bottom: 14px; }
.profile { display: flex; align-items: center; gap: 10px; padding: 15px 3px 0; border-top: 1px solid var(--border); }
.avatar, .top-avatar { display: grid; place-items: center; border-radius: 50%; color: white; font-weight: 700; background: linear-gradient(145deg,#5d9bd6,#8d70e8); }
.avatar { width: 34px; height: 34px; font-size: 12px; }
.profile-info { display: grid; gap: 3px; flex: 1; }
.profile-info strong { font-size: 12px; }
.profile-info span { color: #85899d; font-size: 10px; }
.profile-dots { color: #85899d; letter-spacing: 2px; font-size: 12px; }
.main-content { max-width: 1600px; min-height: 100vh; margin-left: 248px; padding: 0 48px; }
.topbar { height: 75px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--border); }
.breadcrumb { color: #85899d; font-size: 11px; }
.breadcrumb span { padding: 0 9px; color: #55596d; }
.breadcrumb strong { color: #d7d7e4; font-weight: 500; }
.topbar-right { display: flex; align-items: center; gap: 19px; }
.icon-button { position: relative; border: 0; color: #a6a8bb; background: transparent; font-size: 21px; }
.notification-button i { position: absolute; width: 5px; height: 5px; top: 2px; right: 2px; border-radius: 50%; background: #a18aff; }
.top-avatar { width: 31px; height: 31px; font-size: 11px; }
.welcome-row { display: flex; justify-content: space-between; align-items: end; padding: 43px 0 30px; }
.eyebrow { margin: 0 0 11px; color: #9b83f6; }
h1, h2, p { margin-top: 0; }
h1 { margin-bottom: 8px; font: 600 clamp(25px,3vw,32px) "Space Grotesk",sans-serif; letter-spacing: -1.2px; }
.wave { color: #a48aff; font-size: 23px; }
.welcome-subtitle { margin: 0; color: var(--muted); font-size: 13px; }
.date-chip { display: flex; gap: 9px; align-items: center; padding: 10px 13px; border: 1px solid var(--border); border-radius: 9px; color: #aeb0c1; background: #ffffff04; font-size: 11px; }
.date-chip span { color: #a48aff; font-size: 15px; }
.dashboard-grid { display: grid; grid-template-columns: 1.12fr .88fr; gap: 19px; }
.panel { position: relative; overflow: hidden; padding: 23px 23px 20px; border: 1px solid var(--border); border-radius: 15px; background: rgba(25, 27, 41, .84); backdrop-filter: blur(18px); }
.tasks-panel, .subjects-panel { min-height: 315px; }
.panel-heading { display: flex; justify-content: space-between; align-items: center; margin-bottom: 22px; }
.section-kicker { margin: 0 0 7px; font-size: 9px; letter-spacing: 1.35px; }
h2 { margin: 0; font: 600 19px "Space Grotesk",sans-serif; letter-spacing: -.4px; }
.text-link { color: #a995ff; font-size: 11px; }
.text-link span { padding-left: 4px; }
.task-list { display: grid; }
.task-item { min-height: 65px; display: flex; align-items: center; gap: 12px; border-bottom: 1px solid var(--border); }
.task-check { flex: 0 0 17px; width: 17px; height: 17px; border: 1px solid #5e6177; border-radius: 6px; }
.task-details, .subject-details { display: grid; gap: 5px; min-width: 0; flex: 1; }
.task-details strong, .subject-details strong { overflow: hidden; color: #e7e7f0; font-size: 12px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.task-details span, .subject-details span { color: #85899f; font-size: 10px; }
.dot-separator { padding: 0 3px; color: #5d6075; }
.task-date { color: #a2a4b6; font-size: 10px; white-space: nowrap; }
.task-date.urgent { color: #ffad8e; }
.add-task-button, .add-subject-button { display: flex; align-items: center; gap: 8px; margin-top: 17px; padding: 0; border: 0; color: #a995ff; background: transparent; font-size: 11px; }
.add-task-button span, .add-subject-button span { display: grid; place-items: center; width: 19px; height: 19px; border: 1px solid #8069d9; border-radius: 6px; font-size: 14px; }
.subject-list { display: grid; }
.subject-item { display: flex; align-items: center; gap: 12px; min-height: 65px; border-bottom: 1px solid var(--border); }
.subject-symbol { display: grid; place-items: center; width: 35px; height: 35px; border-radius: 10px; font-size: 17px; font-weight: 600; }
.math-symbol { color: #b5a0ff; background: #8c6bff20; }
.data-symbol { color: #6dc9f3; background: #45b8e820; }
.algebra-symbol { color: #f1b77c; background: #e9a35b1c; font-size: 13px; }
.subject-arrow { color: #777b91; font-size: 22px; }
.pomodoro-panel { grid-column: 1 / -1; min-height: 245px; display: flex; align-items: center; justify-content: space-between; padding: 28px 7.5%; background: radial-gradient(ellipse at 78% 50%,rgba(103, 75, 174, .22) 0,transparent 45%), radial-gradient(ellipse at 12% 100%,rgba(43, 117, 151, .10),transparent 42%), rgba(25, 27, 41, .84); }
.pomodoro-copy { position: relative; z-index: 1; }
.pomodoro-copy h2 { margin-bottom: 10px; font-size: 21px; }
.pomodoro-copy > p:not(.section-kicker) { color: #9699ad; font-size: 12px; line-height: 1.7; }
.timer-mode { display: inline-flex; align-items: center; gap: 8px; margin-top: 8px; padding: 7px 10px; border: 1px solid #987cff30; border-radius: 20px; color: #c0b2ff; background: #987cff12; font-size: 10px; }
.mode-dot { width: 6px; height: 6px; border-radius: 50%; background: #a38aff; box-shadow: 0 0 9px #a38aff; }
.timer-area { position: relative; z-index: 1; display: grid; justify-items: center; gap: 12px; margin-right: 4%; }
.timer-ring { display: grid; place-items: center; width: 145px; height: 145px; border-radius: 50%; background: conic-gradient(#9b7cff 0 75%,#ffffff15 75% 100%); box-shadow: 0 0 35px #9274ff16; }
.timer-inner { display: grid; place-items: center; align-content: center; gap: 3px; width: 129px; height: 129px; border-radius: 50%; background: #1a1b2a; }
.timer-label { color: #9d8be1; font-size: 8px; font-weight: 700; letter-spacing: 1.3px; }
.timer-inner strong { font: 600 31px "Space Grotesk",sans-serif; letter-spacing: -1px; }
.timer-caption { color: #7f8297; font-size: 9px; }
.timer-controls { display: flex; gap: 9px; }
.timer-controls button { display: grid; place-items: center; width: 30px; height: 30px; border: 1px solid var(--border); border-radius: 50%; color: #c8c0eb; background: #ffffff08; font-size: 11px; }
.timer-controls .timer-play { color: white; border-color: #9274ff; background: #8061e9; }
.pomodoro-decoration { position: absolute; border: 1px solid #9c80ff0d; border-radius: 50%; pointer-events: none; }
.decoration-one { width: 250px; height: 250px; right: 22%; top: -120px; }
.decoration-two { width: 330px; height: 330px; right: 18%; top: -160px; }
.page-footer { display: flex; justify-content: space-between; padding: 23px 2px; color: #666a80; font-size: 10px; }
.page-footer i { display: inline-block; width: 6px; height: 6px; margin-right: 5px; border-radius: 50%; background: #66c9a1; }
.page-footer b { padding: 0 5px; color: #44475b; }

@media (max-width: 1050px) {
  .main-content { padding: 0 30px; }
  .sidebar { width: 220px; }
  .main-content { margin-left: 220px; }
  .dashboard-grid { grid-template-columns: 1fr; }
  .pomodoro-panel { grid-column: auto; }
}
@media (max-width: 700px) {
  .sidebar { position: static; width: 100%; height: auto; padding: 15px 18px 10px; border-right: 0; border-bottom: 1px solid var(--border); }
  .brand { margin: 0 0 13px 2px; }
  .nav-label, .sidebar-bottom { display: none; }
  .main-nav { display: flex; gap: 5px; overflow-x: auto; padding-bottom: 2px; }
  .nav-link { flex: 0 0 auto; gap: 7px; padding: 9px 10px; font-size: 11px; }
  .nav-icon { font-size: 14px; }
  .main-content { margin-left: 0; padding: 0 17px; }
  .topbar { height: 55px; }
  .welcome-row { align-items: start; gap: 14px; padding: 30px 0 22px; }
  .date-chip { display: none; }
  h1 { font-size: 25px; }
  .welcome-subtitle { max-width: 280px; font-size: 11px; line-height: 1.6; }
  .panel { padding: 19px 16px 17px; }
  .tasks-panel, .subjects-panel { min-height: auto; }
  .task-item, .subject-item { min-height: 62px; }
  .task-details strong, .subject-details strong { font-size: 11px; }
  .task-date { font-size: 9px; }
  .pomodoro-panel { min-height: 225px; padding: 23px 18px; }
  .timer-area { margin-right: 0; }
  .timer-ring { width: 119px; height: 119px; }
  .timer-inner { width: 105px; height: 105px; }
  .timer-inner strong { font-size: 26px; }
  .pomodoro-copy h2 { font-size: 17px; }
  .pomodoro-copy > p:not(.section-kicker) { font-size: 10px; }
  .page-footer { gap: 10px; font-size: 9px; }
}
@media (max-width: 390px) {
  .pomodoro-panel { align-items: flex-start; flex-direction: column; gap: 18px; }
  .timer-area { align-self: center; }
  .task-item { gap: 8px; }
}
