@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&family=Hind:wght@300;400;500;600;700&display=swap");

:root {
  --font: "Poppins", "Hind", "Segoe UI", "Helvetica Neue", sans-serif;
  --radius: 18px;
  --radius-lg: 22px;
  --shadow: 0 14px 40px rgba(17, 24, 39, 0.14);
  --shadow-soft: 0 6px 20px rgba(17, 24, 39, 0.08);
  --trans: 180ms ease;
  --primary: #3E009B;
  --secondary: #FF4E4E;
  --gradient: linear-gradient(135deg, #3E009B 0%, #7a2cff 45%, #FF4E4E 100%);
  --glass: rgba(255, 255, 255, 0.68);
  --glass-border: rgba(255, 255, 255, 0.6);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font);
  background: radial-gradient(circle at 10% 10%, #f7f5ff, transparent 40%),
    radial-gradient(circle at 90% 10%, #fff0f0, transparent 40%),
    radial-gradient(circle at 50% 100%, #f0f8ff, transparent 40%),
    #f7f8fc;
  background-size: 140% 140%;
  animation: bgFlow 22s ease infinite;
  color: #0f172a;
}

.app[data-theme="dark"] {
  --card: #0f131b;
  --card-2: #141a24;
  --text: #eef2f7;
  --muted: #a6b0c2;
  --accent: #a78bfa;
  --accent-2: #22d3ee;
  --border: rgba(255, 255, 255, 0.08);
  --glass: rgba(15, 19, 27, 0.7);
  --glass-border: rgba(255, 255, 255, 0.08);
  background: radial-gradient(circle at top right, #11131a, #0b0e13 40%, #0a0c10 100%);
  color: var(--text);
}

.app[data-theme="light"] {
  --card: #ffffff;
  --card-2: #f4f6fb;
  --text: #0f172a;
  --muted: #5b6474;
  --accent: #3b82f6;
  --accent-2: #10b981;
  --border: rgba(15, 23, 42, 0.08);
}

.app {
  min-height: 100vh;
  transition: background var(--trans), color var(--trans);
  position: relative;
  overflow-x: hidden;
}

.topbar,
.layout,
.modal,
.toast {
  position: relative;
  z-index: 1;
}

.bg-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.bg-blob {
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.28;
  transform: translate3d(0, 0, 0);
  transition: transform 80ms ease;
}

.blob-a {
  top: -140px;
  left: -120px;
  background: radial-gradient(circle, var(--primary), transparent 70%);
  animation: floatBlob 14s ease-in-out infinite;
}

.blob-b {
  bottom: -160px;
  right: -140px;
  background: radial-gradient(circle, var(--secondary), transparent 70%);
  animation: floatBlob 16s ease-in-out infinite reverse;
}

.blob-c {
  top: 40%;
  left: 55%;
  width: 320px;
  height: 320px;
  opacity: 0.2;
  background: radial-gradient(circle, #60a5fa, transparent 70%);
  animation: floatBlob 18s ease-in-out infinite;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 28px;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  transition: box-shadow var(--trans), background var(--trans);
}

.topbar.scrolled {
  box-shadow: var(--shadow-soft);
}

.brand {
  display: flex;
  gap: 14px;
  align-items: center;
}

.logo {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: white;
  font-weight: 700;
}

.title {
  font-weight: 700;
  font-size: 20px;
}

.subtitle {
  font-size: 13px;
  color: var(--muted);
}

.topbar-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.greeting {
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  background: rgba(255, 255, 255, 0.6);
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.app[data-theme="dark"] .greeting {
  background: rgba(15, 19, 27, 0.7);
  border-color: rgba(255, 255, 255, 0.08);
}

.search input {
  width: min(360px, 48vw);
  padding: 12px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text);
  outline: none;
  transition: border var(--trans);
}

.search input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

button {
  border: none;
  cursor: pointer;
  font-family: var(--font);
  transition: transform var(--trans), background var(--trans), color var(--trans);
}

button:active {
  transform: scale(0.98);
}

.primary {
  background: var(--gradient);
  background-size: 200% 200%;
  color: white;
  padding: 12px 18px;
  border-radius: 999px;
  font-weight: 600;
  letter-spacing: 0.2px;
}

.primary:hover {
  box-shadow: 0 0 18px rgba(62, 0, 155, 0.35), 0 0 26px rgba(255, 78, 78, 0.25);
  background-position: 100% 50%;
}

.ghost {
  background: var(--card);
  color: var(--text);
  border: 1px solid var(--border);
  padding: 11px 14px;
  border-radius: 999px;
}

.ghost.danger {
  color: #ef4444;
  border-color: #fca5a5;
}

.layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 24px;
  padding: 16px 32px 32px;
}

.sidebar {
  background: var(--glass);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(12px);
  height: fit-content;
}

.nav {
  display: grid;
  gap: 10px;
}

.nav-item {
  text-align: left;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--card-2);
  color: var(--text);
  border: 1px solid transparent;
  transition: transform 160ms ease, border var(--trans), background var(--trans);
}

.nav-item.active {
  border-color: var(--accent);
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.18), rgba(16, 185, 129, 0.12));
}

.nav-item:hover {
  transform: translateY(-1px);
  border-color: rgba(59, 130, 246, 0.3);
}

.section-title {
  margin: 20px 0 8px;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.2px;
}

.field {
  display: grid;
  gap: 8px;
  margin-bottom: 12px;
  font-size: 14px;
}

.field select,
.field input {
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--card-2);
  color: var(--text);
}

.progress-bar {
  height: 12px;
  background: var(--card-2);
  border-radius: 999px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  width: 0%;
  background: var(--gradient);
  background-size: 200% 200%;
  transition: width 400ms ease;
  animation: progressGlow 3s ease infinite;
}

.progress-text {
  margin-top: 6px;
  font-size: 12px;
  color: var(--muted);
}

.content {
  display: grid;
  gap: 18px;
}

.composer {
  background: var(--glass);
  border-radius: var(--radius-lg);
  padding: 18px;
  box-shadow: var(--shadow);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(12px);
}

.composer-primary {
  background: linear-gradient(135deg, rgba(62, 0, 155, 0.16), rgba(255, 78, 78, 0.12));
  border: 1px solid rgba(62, 0, 155, 0.2);
}

.hero-panel {
  background: var(--glass);
  border-radius: var(--radius-lg);
  border: 1px solid var(--glass-border);
  padding: 20px 24px;
  box-shadow: var(--shadow-soft);
  display: flex;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.hero-greet {
  font-size: 16px;
  color: var(--muted);
  margin-bottom: 6px;
}

.hero-title {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.2px;
}

.hero-stats {
  display: grid;
  gap: 8px;
  min-width: 220px;
}

.hero-stat {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text);
}

.hero-stat strong {
  font-weight: 700;
}

.dot {
  width: 14px;
  height: 14px;
  border-radius: 999px;
  display: inline-block;
}

.dot-purple {
  background: #7c3aed;
}

.dot-green {
  background: #22c55e;
}

.dot-orange {
  background: #f97316;
}

.composer-title {
  font-weight: 700;
  margin-bottom: 12px;
  font-size: 18px;
}

.composer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  align-items: center;
}

.composer-grid input,
.composer-grid select {
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--card-2);
  color: var(--text);
}

.add-cta {
  font-size: 16px;
  padding: 14px 20px;
  letter-spacing: 0.3px;
}

.composer-grid input:focus,
.composer-grid select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.18);
}

.inline {
  display: flex;
  align-items: center;
  gap: 10px;
}

.checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--muted);
}

.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.view-title {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.2px;
}

.tasks {
  display: grid;
  gap: 14px;
}

.empty-state {
  background: var(--glass);
  border: 1px dashed rgba(15, 23, 42, 0.2);
  border-radius: var(--radius-lg);
  padding: 32px;
  text-align: center;
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-soft);
}

.empty-icon {
  font-size: 36px;
  margin-bottom: 10px;
}

.empty-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 6px;
}

.empty-text {
  color: var(--muted);
}

.task {
  background: var(--glass);
  border-radius: var(--radius-lg);
  padding: 16px;
  box-shadow: 12px 12px 26px rgba(15, 23, 42, 0.12), -8px -8px 18px rgba(255, 255, 255, 0.55);
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: start;
  animation: rise 220ms ease;
  transition: transform 200ms ease, opacity 200ms ease;
  backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
}

.task.new {
  animation: slideIn 260ms ease;
}

.task.removing {
  transform: translateX(10px);
  opacity: 0;
}

.task:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.18);
}

.task.completed {
  opacity: 0.7;
  text-decoration: line-through;
}

.task-info {
  display: grid;
  gap: 6px;
  padding-left: 10px;
  border-left: 4px solid transparent;
  cursor: pointer;
  min-width: 0;
}

.priority-border-high {
  border-left-color: #ef4444;
}

.priority-border-medium {
  border-left-color: #f59e0b;
}

.priority-border-low {
  border-left-color: #22c55e;
}

.task-header {
  display: flex;
  align-items: center;
  gap: 10px;
}

.status-dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  display: inline-block;
  border: 2px solid rgba(0, 0, 0, 0.1);
}

.status-urgent {
  background: #ef4444;
}

.status-going {
  background: #f59e0b;
}

.status-hold {
  background: #7c3aed;
}

.status-done {
  background: #86efac;
}

.status-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: var(--card-2);
  position: relative;
  padding-left: 22px;
  cursor: pointer;
}

.status-chip::before {
  content: "";
  position: absolute;
  left: 8px;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: currentColor;
  animation: pulse 1.6s ease-in-out infinite;
}

.status-going {
  color: #f59e0b;
}

.status-urgent {
  color: #ef4444;
}

.status-hold {
  color: #7c3aed;
}

.status-done {
  color: #22c55e;
}

@keyframes pulse {
  0% { transform: scale(0.9); opacity: 0.6; }
  50% { transform: scale(1.2); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.6; }
}

.task-title {
  font-weight: 600;
}

.task-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 12px;
  color: var(--muted);
  min-width: 0;
}

.tag {
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--card-2);
  border: 1px solid var(--border);
  cursor: pointer;
}

.meta-chip {
  border: none;
  background: var(--card-2);
}

.inline-editor {
  display: inline-flex;
  align-items: center;
  margin-left: 6px;
}

.inline-input {
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--card);
  font-size: 12px;
  color: var(--text);
  max-width: 140px;
}

.priority-high {
  color: #ef4444;
}

.priority-medium {
  color: #f59e0b;
}

.priority-low {
  color: #10b981;
}

.task-actions {
  display: grid;
  gap: 8px;
}

.task-actions button {
  padding: 6px 10px;
  border-radius: 10px;
  background: var(--card-2);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 12px;
}

.task-actions button:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-soft);
}

.task input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
  transition: transform 160ms ease;
}

.task input[type="checkbox"].bounce {
  animation: bounce 220ms ease;
}

.shake {
  animation: shake 400ms ease;
}

.modal {
  position: fixed;
  inset: 0;
  background: rgba(15, 17, 22, 0.55);
  display: grid;
  place-items: center;
  z-index: 50;
}

.modal-card {
  background: rgba(255, 255, 255, 0.7);
  color: #000000;
  padding: 24px;
  border-radius: var(--radius);
  width: min(420px, 90vw);
  box-shadow: var(--shadow);
  border: 1px solid #000000;
}

.detail-card {
  width: min(620px, 92vw);
}

.light-sheet {
  background: linear-gradient(135deg, rgba(62, 0, 155, 0.12), rgba(255, 78, 78, 0.1)), var(--glass);
  color: #0f172a;
  border: none;
  border-radius: 22px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.light-sheet .modal-title {
  font-size: 22px;
}

.light-sheet .detail-title {
  font-size: 26px;
  font-weight: 800;
}

.light-sheet .detail-label {
  font-size: 18px;
}

.detail-header {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
}

.detail-toprow {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.detail-status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.detail-priority-dot {
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: #f59e0b;
}

.dot-high { background: #ef4444; }
.dot-medium { background: #f59e0b; }
.dot-low { background: #22c55e; }

.detail-status-chip {
  font-size: 12px;
}

.detail-subline {
  color: var(--muted);
  font-size: 13px;
}

.icon-btn {
  border: none;
  background: rgba(0, 0, 0, 0.08);
  color: #111827;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease;
}

.icon-btn:hover {
  background: rgba(0, 0, 0, 0.14);
  transform: translateY(-1px);
}

.light-sheet #detailDescription {
  width: min(380px, 100%);
  min-height: 70px;
  resize: vertical;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(110, 90, 150, 0.18);
  border-radius: 15px;
  padding: 16px 18px;
  color: #000000;
  line-height: 1.5;
}

.light-sheet #detailDescription:focus {
  outline: none;
  border-color: #3E009B;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 0 0 3px rgba(62, 0, 155, 0.18);
}

.detail-helper {
  margin-top: 8px;
  font-size: 12px;
  color: var(--muted);
}

.light-sheet .detail-add {
  align-items: center;
}

.light-sheet #detailStepInput {
  width: min(380px, 100%);
  border-radius: 16px;
  padding: 12px 16px;
  border: 1px solid rgba(15, 23, 42, 0.2);
  background: #ffffff;
}

.light-sheet #detailAddStep {
  border: none;
  background: transparent;
  color: #000000;
  font-weight: 600;
}

.light-sheet .modal-actions {
  justify-content: flex-end;
}

.light-sheet .modal-actions .primary {
  border-radius: 999px;
  padding: 10px 24px;
}

.light-sheet .detail-check-item {
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: rgba(255, 255, 255, 0.8);
}

.app[data-theme="dark"] .light-sheet {
  background: linear-gradient(135deg, rgba(62, 0, 155, 0.18), rgba(255, 78, 78, 0.14)), var(--glass);
  color: #eef2f7;
  border: none;
}
.modal-title {
  font-weight: 700;
  margin-bottom: 12px;
}

.modal-grid {
  display: grid;
  gap: 10px;
}

.modal-grid input,
.modal-grid select {
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid #000000;
  background: rgba(255, 255, 255, 0.7);
  color: #000000;
}

.detail-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 14px;
}

.detail-section {
  margin-bottom: 28px;
  text-align: left;
}

.detail-label {
  font-weight: 600;
  margin-bottom: 8px;
}

.detail-add {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
  align-items: center;
}

.detail-add input {
  flex: 1;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid #000000;
  background: rgba(255, 255, 255, 0.7);
  color: #000000;
}

.detail-checklist {
  display: grid;
  gap: 10px;
}

.detail-comments {
  display: grid;
  gap: 10px;
}

.detail-comment {
  display: grid;
  gap: 4px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-soft);
}

.comment-text {
  font-weight: 600;
}

.comment-meta {
  font-size: 11px;
  color: var(--muted);
}
.detail-check-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-soft);
  transition: transform 180ms ease, opacity 180ms ease;
}

.detail-check-item .checkbox {
  color: #000000;
}

.detail-check-item.done {
  opacity: 0.6;
  text-decoration: line-through;
}

.label-input {
  display: grid;
  gap: 10px;
}

.label-colors {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.color-dot {
  width: 16px;
  height: 16px;
  border-radius: 999px;
  border: 2px solid #000000;
  background: #ccc;
  cursor: pointer;
}

.color-dot.active {
  outline: 2px solid rgba(0, 0, 0, 0.7);
  outline-offset: 2px;
}

.label-list {
  display: grid;
  gap: 8px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.add-label-btn {
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 600;
}

.label-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.label-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  color: #000000;
  font-weight: 600;
}

.label-remove {
  border: none;
  background: rgba(0, 0, 0, 0.15);
  color: #000000;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  font-size: 12px;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.label-remove:hover {
  background: rgba(0, 0, 0, 0.25);
}

.label-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.app[data-theme="dark"] .label-chip {
  color: #ffffff;
}

.app[data-theme="dark"] .color-dot {
  border-color: #ffffff;
}

.modal-grid input::placeholder {
  color: rgba(0, 0, 0, 0.6);
}

.modal-grid input:focus,
.modal-grid select:focus {
  outline: none;
  border-color: #000000;
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.2);
}

.app[data-theme="dark"] .modal-card {
  background: rgba(0, 0, 0, 0.7);
  color: #ffffff;
  border: 1px solid #ffffff;
}

.app[data-theme="dark"] .modal-grid input,
.app[data-theme="dark"] .modal-grid select {
  background: rgba(0, 0, 0, 0.7);
  color: #ffffff;
  border: 1px solid #ffffff;
}

.app[data-theme="dark"] .detail-add input {
  background: rgba(0, 0, 0, 0.7);
  color: #ffffff;
  border: 1px solid #ffffff;
}

.app[data-theme="dark"] .detail-check-item {
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.app[data-theme="dark"] .detail-check-item .checkbox {
  color: #ffffff;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.detail-cta {
  padding: 12px 22px;
  font-size: 15px;
}

.divider {
  text-align: center;
  color: var(--muted);
}

.hint {
  margin-top: 10px;
  color: var(--muted);
  font-size: 12px;
}

.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--card);
  color: var(--text);
  padding: 12px 16px;
  border-radius: 12px;
  box-shadow: var(--shadow);
  z-index: 80;
}

.confetti-canvas {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
}

.app.theme-morph {
  transition: background 420ms ease, color 420ms ease, filter 420ms ease;
  filter: saturate(1.05);
}

.hidden {
  display: none;
}

@keyframes rise {
  from {
    transform: translateY(6px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes bgFlow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes floatBlob {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(30px, -20px) scale(1.08); }
}

.app[data-theme="dark"] .bg-blob {
  opacity: 0.18;
}

@keyframes progressGlow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes bounce {
  0% { transform: scale(1); }
  50% { transform: scale(1.25); }
  100% { transform: scale(1); }
}

@keyframes shake {
  0% { transform: translateX(0); }
  30% { transform: translateX(-4px); }
  60% { transform: translateX(4px); }
  100% { transform: translateX(0); }
}

@keyframes slideIn {
  from { transform: translateY(12px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

@media (max-width: 980px) {
  .layout {
    grid-template-columns: 1fr;
  }

  .sidebar {
    order: 2;
  }

  .topbar {
    flex-direction: column;
    gap: 14px;
    align-items: flex-start;
  }

  .topbar-actions {
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
  }
}

@media (max-width: 640px) {
  .brand {
    width: 100%;
    justify-content: center;
  }

  .topbar-actions {
    justify-content: center;
  }

  .greeting {
    width: 100%;
    text-align: center;
  }

  .search {
    width: 100%;
    display: flex;
    justify-content: center;
  }

  .search input {
    width: 100%;
  }

  .composer-grid {
    grid-template-columns: 1fr;
  }

  .task {
    grid-template-columns: 24px 1fr;
  }

  .task-actions {
    grid-column: 1 / -1;
    display: flex;
    gap: 10px;
  }
}


.brand-logo {
  width: 52px;
  height: 52px;
  object-fit: contain;
}

.app[data-theme="dark"] .topbar {
  background: rgba(8, 10, 15, 0.78);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.app[data-theme="dark"] .task {
  background: rgba(15, 19, 26, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 10px 10px 26px rgba(0, 0, 0, 0.45), -8px -8px 18px rgba(255, 255, 255, 0.03);
}
