@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;
  font-family: "DM Sans", "Segoe UI", sans-serif;
  background: #101419;
  color: #e9ebef;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  --muted: #858d9a;
  --line: #282e37;
  --panel: #171c23;
  --accent: #b8ed76;
}

* { box-sizing: border-box; }

body { min-width: 360px; min-height: 100vh; margin: 0; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.app-shell { display: grid; grid-template-columns: 252px minmax(0, 1fr); min-height: 100vh; max-width: 1600px; margin: 0 auto; }
.sidebar { position: sticky; top: 0; display: flex; flex-direction: column; height: 100vh; padding: 30px 20px 18px; border-right: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 11px; margin-bottom: 52px; font: 800 20px "Manrope", "Segoe UI", sans-serif; letter-spacing: -1px; }
.brand-mark { display: grid; width: 33px; height: 33px; place-items: center; border-radius: 10px; background: var(--accent); color: #192016; font-size: 20px; }
.brand-period, .heading-period { color: var(--accent); }
.nav-label, .eyebrow, .stat-label { color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: 1.15px; }
.nav-label { padding: 0 12px; }
.nav-link { display: flex; align-items: center; gap: 12px; margin-top: 14px; padding: 11px 12px; border-radius: 7px; color: #d7dae0; font-size: 13px; }
.nav-link.active { background: #222932; color: #f5f6f7; }
.nav-icon { color: var(--accent); font-size: 16px; }
.sidebar-note { display: grid; gap: 10px; margin-top: auto; padding: 16px; border: 1px solid #343b37; border-radius: 10px; background: #1b211e; }
.note-icon { color: var(--accent); font-size: 20px; }
.sidebar-note strong { max-width: 165px; font-size: 12px; line-height: 1.6; }
.sidebar-note > span:last-child { color: var(--muted); font-size: 11px; line-height: 1.65; }
.sidebar-footer { display: flex; align-items: center; gap: 10px; margin-top: 19px; padding-top: 17px; border-top: 1px solid var(--line); }
.avatar { display: grid; flex: 0 0 34px; height: 34px; place-items: center; border: 1px solid #58534d; border-radius: 50%; background: #39332b; color: #e8cda8; font-weight: 700; }
.profile-name { display: grid; gap: 4px; font-size: 11px; font-weight: 600; }
.profile-name small { color: var(--muted); font-size: 10px; font-weight: 400; }
.profile-menu { margin-left: auto; color: var(--muted); font-size: 21px; }

.main-content { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 60px; }
.topbar { display: flex; height: 65px; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); color: #adb3bd; font-size: 11px; }
.breadcrumb span { margin: 0 9px; color: #565e69; }
.today-label { color: var(--muted); }
.page-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-top: 49px; }
.page-heading h1 { margin: 9px 0 5px; font: 700 clamp(31px, 4vw, 39px)/1.2 "Manrope", "Segoe UI", sans-serif; letter-spacing: -1.8px; }
.intro, .board-header p { margin: 0; color: var(--muted); font-size: 12px; }
.button { display: inline-flex; min-height: 39px; align-items: center; justify-content: center; gap: 8px; padding: 0 15px; border: 1px solid transparent; border-radius: 7px; cursor: pointer; font-size: 11px; font-weight: 700; transition: transform .15s ease, background .15s ease; }
.button:hover { transform: translateY(-1px); }
.button-primary { background: var(--accent); color: #20271a; }
.button-primary:hover { background: #c9f59a; }
.button-secondary { border-color: #373e48; background: transparent; color: #dadddf; }
.button-secondary:hover { background: #222832; }
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 31px; }
.stat-card { min-height: 96px; padding: 17px 17px 13px; border: 1px solid var(--line); border-radius: 9px; background: var(--panel); }
.stat-label { font-size: 9px; }
.stat-bottom { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; }
.stat-number { font: 700 25px "Manrope", sans-serif; letter-spacing: -1px; }
.stat-icon { color: #afb6be; font-size: 17px; }
.icon-blue { color: #91bafd; }
.icon-green { color: var(--accent); }
.board-section { margin-top: 43px; }
.board-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.board-header h2 { display: flex; align-items: center; gap: 9px; margin: 0 0 5px; font: 650 17px "Manrope", sans-serif; }
.task-count { display: grid; min-width: 20px; height: 20px; place-items: center; padding: 0 5px; border-radius: 6px; background: #262c34; color: #c4cad1; font: 600 10px "DM Sans", sans-serif; }
.board-header p { font-size: 11px; }
.search-box { display: flex; width: min(235px, 44%); height: 35px; align-items: center; gap: 8px; padding: 0 9px; border: 1px solid #303742; border-radius: 6px; background: #171c23; }
.search-icon { color: var(--muted); font-size: 19px; }
.search-box input { width: 100%; min-width: 0; border: 0; outline: 0; background: transparent; color: #e9ebef; font-size: 10px; }
.search-box input::placeholder { color: #7d8590; }
.search-box kbd { padding: 1px 5px; border: 1px solid #39414c; border-radius: 3px; color: #9ba3ae; font: 10px "DM Sans", sans-serif; }
.filters { display: flex; gap: 5px; margin-top: 25px; padding-bottom: 11px; border-bottom: 1px solid var(--line); }
.filter-button { padding: 7px 10px; border: 0; border-radius: 5px; background: transparent; color: #939ba6; cursor: pointer; font-size: 10px; }
.filter-button:hover { color: #f0f1f4; }
.filter-button.selected { background: #242b33; color: #e8ebed; }
.notice { min-height: 0; margin: 0; color: var(--muted); font-size: 11px; }
.notice:not(:empty) { padding-top: 12px; }
.task-list { display: grid; gap: 8px; margin-top: 12px; }
.task-card { display: grid; grid-template-columns: 24px minmax(0, 1fr) auto; align-items: start; gap: 12px; padding: 15px 14px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); transition: border-color .15s ease, transform .15s ease; }
.task-card:hover { transform: translateY(-1px); border-color: #3b454f; }
.complete-button { display: grid; width: 20px; height: 20px; place-items: center; margin-top: 1px; border: 1px solid #56616c; border-radius: 6px; background: transparent; color: #182016; cursor: pointer; }
.complete-button:hover { border-color: var(--accent); }
.task-card.is-done .complete-button { border-color: var(--accent); background: var(--accent); }
.task-main { min-width: 0; }
.task-title { overflow-wrap: anywhere; margin: 0 0 5px; font-size: 12px; font-weight: 600; line-height: 1.5; }
.task-card.is-done .task-title { color: #929aa5; text-decoration: line-through; text-decoration-color: #687068; }
.task-description { overflow-wrap: anywhere; margin: 0; color: var(--muted); font-size: 10px; line-height: 1.6; }
.task-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; margin-top: 10px; }
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 4px 7px; border-radius: 4px; font-size: 9px; font-weight: 600; }
.badge::before { width: 5px; height: 5px; border-radius: 50%; background: currentColor; content: ""; }
.badge-TODO { background: #282d35; color: #abb3bd; }
.badge-IN_PROGRESS { background: #202c3d; color: #99bdf7; }
.badge-DONE { background: #263326; color: #b8ed76; }
.badge-LOW { background: #262d30; color: #aeb8af; }
.badge-MEDIUM { background: #302e22; color: #e3c878; }
.badge-HIGH { background: #352523; color: #ed9b8d; }
.task-actions { display: flex; align-items: center; gap: 6px; }
.action-button, .icon-button { display: grid; width: 27px; height: 27px; place-items: center; border: 1px solid transparent; border-radius: 5px; background: transparent; color: #89919c; cursor: pointer; }
.action-button:hover, .icon-button:hover { border-color: #363d47; background: #242a32; color: #f2f3f5; }
.empty-state { display: grid; min-height: 205px; place-content: center; justify-items: center; gap: 10px; border: 1px dashed #333a44; border-radius: 8px; text-align: center; }
.empty-icon { color: #bbc1c9; font-size: 25px; }
.empty-state strong { font-size: 12px; }
.empty-state p { max-width: 240px; margin: 0; color: var(--muted); font-size: 10px; line-height: 1.7; }
.app-footer { display: flex; justify-content: space-between; gap: 12px; margin-top: 39px; padding: 15px 0 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: 10px; }
.app-footer a { color: #c1d5ac; }
.task-dialog { width: min(460px, calc(100% - 28px)); padding: 25px; border: 1px solid #363e48; border-radius: 11px; background: #171c23; color: #e9ebef; box-shadow: 0 20px 80px #0009; }
.task-dialog::backdrop { background: #07090cb8; backdrop-filter: blur(3px); }
.dialog-heading { display: flex; align-items: start; justify-content: space-between; margin-bottom: 24px; }
.dialog-heading h2 { margin: 5px 0 0; font: 700 21px "Manrope", sans-serif; }
.icon-button { font-size: 22px; }
.field-label { display: block; margin: 0 0 7px; color: #d4d8dc; font-size: 10px; font-weight: 600; }
.optional { color: var(--muted); font-weight: 400; }
.form-control { width: 100%; min-height: 38px; margin-bottom: 17px; padding: 9px 10px; border: 1px solid #353d47; border-radius: 6px; outline: 0; background: #11161c; color: #eceef0; font-size: 11px; }
.form-control::placeholder { color: #747c87; }
.description-input { resize: vertical; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.dialog-actions { display: flex; justify-content: end; gap: 8px; margin-top: 3px; }

@media (min-width: 1400px) { .main-content { padding-right: 82px; padding-left: 82px; } }
@media (max-width: 850px) {
  .app-shell { grid-template-columns: 205px minmax(0, 1fr); }
  .sidebar { padding-right: 15px; padding-left: 15px; }
  .main-content { padding-right: 30px; padding-left: 30px; }
}
@media (max-width: 620px) {
  body { min-width: 360px; }
  .app-shell { grid-template-columns: minmax(0, 1fr); }
  .sidebar { position: static; height: auto; flex-direction: row; align-items: center; gap: 15px; padding: 13px 18px; border-right: 0; border-bottom: 1px solid var(--line); }
  .brand { margin: 0; font-size: 17px; }
  .brand-mark { width: 29px; height: 29px; }
  .nav-label, .nav-link { display: none; }
  .sidebar-note, .sidebar-footer { display: none; }
  .main-content { padding: 0 18px; }
  .topbar { height: 49px; }
  .page-heading { align-items: start; margin-top: 33px; }
  .page-heading h1 { font-size: 32px; }
  .page-heading .button { min-height: 35px; gap: 5px; padding: 0 10px; font-size: 10px; }
  .stats-grid { gap: 8px; margin-top: 24px; }
  .stat-card { min-height: 82px; padding: 13px 10px 10px; }
  .stat-label { font-size: 8px; letter-spacing: .7px; }
  .stat-number { font-size: 21px; }
  .board-section { margin-top: 32px; }
  .board-header { align-items: start; }
  .board-header h2 { font-size: 15px; }
  .search-box { width: 43%; }
  .filters { overflow-x: auto; }
  .filter-button { flex-shrink: 0; padding: 7px 8px; font-size: 9px; }
  .task-card { grid-template-columns: 21px minmax(0, 1fr) auto; gap: 8px; padding: 12px 10px; }
  .task-actions { gap: 0; }
  .app-footer { margin-top: 30px; font-size: 9px; }
}

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; } }
