.material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
  vertical-align: middle;
}

body {
  --ds-bg: #f5f8ff;
  --ds-bg-rgb: 245, 248, 255;
  --ds-surface: rgba(255, 255, 255, 0.92);
  --ds-surface-strong: #ffffff;
  --ds-surface-soft: #eef4ff;
  --ds-border: #d9e3f7;
  --ds-text: #0f1b2d;
  --ds-muted: #5f6f8a;
  --ds-primary: #1dd1ed;
  --ds-primary-soft: rgba(29, 209, 237, 0.15);
  --ds-secondary: #9333ea;
  font-family: 'Inter', sans-serif;
  background: var(--ds-bg);
  color: var(--ds-text);
  transition: background-color 0.25s ease, color 0.25s ease;
}

body.theme-dark {
  --ds-bg: #080c16;
  --ds-bg-rgb: 8, 12, 22;
  --ds-surface: rgba(14, 19, 35, 0.88);
  --ds-surface-strong: #11182b;
  --ds-surface-soft: rgba(21, 27, 48, 0.9);
  --ds-border: #2a3554;
  --ds-text: #f8fafc;
  --ds-muted: #b2bfdc;
  --ds-primary: #22d3ee;
  --ds-primary-soft: rgba(34, 211, 238, 0.2);
  --ds-secondary: #a855f7;
}

body.theme-dark,
body.theme-dark.text-slate-900 {
  color: var(--ds-text) !important;
}

body::before,
body::after {
  content: "";
  position: fixed;
  width: 36rem;
  height: 36rem;
  border-radius: 9999px;
  pointer-events: none;
  z-index: 0;
  filter: blur(72px);
}

body::before {
  top: -10rem;
  right: -8rem;
  background: rgba(34, 211, 238, 0.18);
}

body::after {
  bottom: -12rem;
  left: -6rem;
  background: rgba(168, 85, 247, 0.14);
}

#appShell {
  position: relative;
  z-index: 1;
}

.login-split {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  min-height: 100vh;
}

.login-left {
  background: #4c5063;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 2.2rem 2.5rem;
}

.login-left-content {
  width: 100%;
  max-width: 700px;
}

.login-left h2 {
  font-size: clamp(2rem, 2.9vw, 3.1rem);
  line-height: 1.08;
}

.login-right {
  background: #f6f7fb;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.login-panel {
  width: 100%;
  max-width: 460px;
  background: transparent;
  border: none;
  border-radius: 0;
}

.kanban-demo {
  position: relative;
  border: 1px solid color-mix(in srgb, var(--ds-border) 85%, transparent);
  border-radius: 1rem;
  background: linear-gradient(145deg, rgba(18, 23, 38, 0.92), rgba(15, 20, 34, 0.92));
  overflow: hidden;
  padding: 1rem;
  min-height: 280px;
  max-height: 320px;
}

.kanban-demo::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 15%, color-mix(in srgb, var(--ds-primary) 18%, transparent), transparent 42%);
  pointer-events: none;
}

.kanban-demo-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  height: 100%;
}

.demo-column {
  border: 1px solid rgba(126, 145, 186, 0.35);
  border-radius: 0.9rem;
  background: rgba(34, 43, 68, 0.7);
  padding: 0.7rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.demo-column-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #b8c5e5;
}

.demo-pill {
  font-size: 0.7rem;
  font-weight: 700;
  border-radius: 999px;
  padding: 0.15rem 0.42rem;
  background: color-mix(in srgb, var(--ds-primary) 20%, transparent);
  color: var(--ds-primary);
}

.demo-card {
  border: 1px solid rgba(120, 139, 180, 0.35);
  background: rgba(21, 28, 46, 0.82);
  border-radius: 0.75rem;
  padding: 0.55rem;
  box-shadow: 0 8px 18px rgba(2, 6, 23, 0.2);
}

.demo-card p {
  margin-top: 0.35rem;
  font-size: 0.78rem;
  line-height: 1.2;
  color: #d5def3;
}

.demo-tag {
  display: inline-block;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  border-radius: 999px;
  padding: 0.12rem 0.45rem;
  color: #0b2740;
  background: #bae6fd;
}

.demo-tag.danger {
  color: #7f1d1d;
  background: #fecaca;
}

.demo-tag.success {
  color: #14532d;
  background: #bbf7d0;
}

.demo-card-progress {
  animation: demo-progress-shift 6.2s ease-in-out infinite;
}

.demo-card-new {
  opacity: 0;
  transform: translateY(16px) scale(0.9);
  animation: demo-new-task 6.2s ease-in-out infinite;
}

.demo-card-delete {
  animation: demo-delete-task 6.2s ease-in-out infinite;
}

.demo-flow {
  position: absolute;
  right: 0.8rem;
  bottom: 0.8rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: #7ce6f8;
  background: rgba(18, 23, 38, 0.8);
  border: 1px solid rgba(120, 139, 180, 0.35);
  border-radius: 999px;
  padding: 0.25rem 0.45rem;
}

.demo-flow .material-symbols-outlined:nth-child(1) {
  animation: demo-flow-pulse 1.2s ease-in-out infinite;
}

.demo-flow .material-symbols-outlined:nth-child(2) {
  animation: demo-flow-pulse 1.2s ease-in-out 0.2s infinite;
}

.demo-flow .material-symbols-outlined:nth-child(3) {
  animation: demo-flow-pulse 1.2s ease-in-out 0.4s infinite;
}

.chat-phone {
  margin-top: 0.7rem;
  display: flex;
  justify-content: center;
}

.chat-phone-frame {
  width: 176px;
  height: 330px;
  border-radius: 2rem;
  background: linear-gradient(165deg, #0f172a, #1e293b);
  border: 1px solid rgba(255, 255, 255, 0.16);
  padding: 0.55rem;
  box-shadow: 0 18px 34px rgba(2, 6, 23, 0.38);
  animation: phone-alert-cycle 6.2s ease-in-out infinite;
}

.chat-phone-notch {
  width: 34%;
  height: 12px;
  margin: 0.15rem auto 0.45rem;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.35);
}

.chat-phone-screen {
  height: calc(100% - 20px);
  border-radius: 1.45rem;
  background: linear-gradient(180deg, rgba(30, 41, 59, 0.9), rgba(15, 23, 42, 0.96));
  border: 1px solid rgba(148, 163, 184, 0.18);
  padding: 0.7rem;
  padding-bottom: 3.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  overflow: hidden;
  position: relative;
}

.chat-header {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  color: #e2e8f0;
  font-size: 0.78rem;
  font-weight: 700;
  border-bottom: 1px solid rgba(148, 163, 184, 0.24);
  padding-bottom: 0.5rem;
}

.chat-header .material-symbols-outlined {
  font-size: 1rem;
  color: #7ce6f8;
}

.chat-bubble {
  max-width: 90%;
  border-radius: 0.9rem;
  padding: 0.5rem 0.58rem;
  font-size: 0.72rem;
  line-height: 1.2;
}

.chat-bubble.outgoing {
  align-self: flex-end;
  background: rgba(34, 211, 238, 0.2);
  border: 1px solid rgba(34, 211, 238, 0.34);
  color: #c7f7ff;
}

.chat-bubble.incoming {
  align-self: flex-start;
  background: rgba(51, 65, 85, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.3);
  color: #e2e8f0;
}

.chat-notification {
  position: absolute;
  left: 0.7rem;
  right: 0.7rem;
  bottom: 0.7rem;
  max-width: none;
  opacity: 0;
  transform: translateY(18px) scale(0.96);
}

.chat-notification-move {
  animation: chat-notify-move 6.2s ease-in-out infinite;
}

.chat-notification-add {
  animation: chat-notify-add 6.2s ease-in-out infinite;
}

.chat-notification-delete {
  animation: chat-notify-delete 6.2s ease-in-out infinite;
}

@keyframes demo-progress-shift {
  0%, 20% {
    transform: translateX(0) translateY(0) scale(1);
    opacity: 1;
  }
  30% {
    transform: translateX(-104%) translateY(12px) scale(0.98);
    opacity: 0.7;
  }
  42% {
    transform: translateX(0) translateY(0) scale(1);
    opacity: 1;
  }
  100% {
    transform: translateX(0) translateY(0) scale(1);
    opacity: 1;
  }
}

@keyframes demo-new-task {
  0%, 52% {
    opacity: 0;
    transform: translateY(16px) scale(0.9);
  }
  62%, 82% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translateY(8px) scale(0.95);
  }
}

@keyframes demo-delete-task {
  0%, 68% {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
  78% {
    opacity: 0;
    transform: translateX(-16px) scale(0.92);
  }
  90%, 100% {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

@keyframes demo-flow-pulse {
  0%, 100% {
    opacity: 0.4;
    transform: translateY(0);
  }
  50% {
    opacity: 1;
    transform: translateY(-2px);
  }
}

@keyframes chat-notify-move {
  0%, 24% {
    opacity: 0;
    transform: translateY(18px) scale(0.96);
  }
  30%, 44% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  50%, 100% {
    opacity: 0;
    transform: translateY(8px) scale(0.98);
  }
}

@keyframes chat-notify-add {
  0%, 56% {
    opacity: 0;
    transform: translateY(18px) scale(0.96);
  }
  62%, 82% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  88%, 100% {
    opacity: 0;
    transform: translateY(8px) scale(0.98);
  }
}

@keyframes chat-notify-delete {
  0%, 72% {
    opacity: 0;
    transform: translateY(18px) scale(0.96);
  }
  78%, 94% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translateY(8px) scale(0.98);
  }
}

@keyframes phone-alert-cycle {
  0%, 22%, 46%, 58%, 84%, 100% {
    box-shadow: 0 18px 34px rgba(2, 6, 23, 0.38);
  }
  26%, 30%, 62%, 66%, 78%, 82% {
    box-shadow: 0 20px 42px rgba(34, 211, 238, 0.35);
  }
}

.app-logo {
  position: relative;
  overflow: hidden;
  background: var(--ds-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid color-mix(in srgb, var(--ds-primary) 40%, #ffffff);
  box-shadow: 0 6px 16px color-mix(in srgb, var(--ds-primary) 30%, transparent);
}

.app-logo-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform: scale(2.6);
  transform-origin: center;
}

.theme-dark .bg-bgsoft,
.theme-light .bg-bgsoft {
  background: transparent !important;
}

.theme-dark .bg-white,
.theme-light .bg-white {
  background: var(--ds-surface) !important;
  backdrop-filter: blur(10px);
}

.theme-dark .bg-slate-50,
.theme-light .bg-slate-50 {
  background: var(--ds-surface-soft) !important;
}

.theme-dark .text-slate-900,
.theme-light .text-slate-900 {
  color: var(--ds-text) !important;
}

.theme-dark .text-slate-700,
.theme-light .text-slate-700 {
  color: color-mix(in srgb, var(--ds-text) 82%, transparent) !important;
}

.theme-dark .text-slate-600,
.theme-light .text-slate-600,
.theme-dark .text-slate-500,
.theme-light .text-slate-500 {
  color: var(--ds-muted) !important;
}

.theme-dark .border,
.theme-light .border,
.theme-dark .border-b,
.theme-light .border-b,
.theme-dark .border-r,
.theme-light .border-r,
.theme-dark .border-l,
.theme-light .border-l,
.theme-dark .border-t,
.theme-light .border-t,
.theme-dark .border-bordersoft,
.theme-light .border-bordersoft {
  border-color: var(--ds-border) !important;
}

.theme-dark #drawer,
.theme-light #drawer,
.theme-dark .card,
.theme-light .card {
  background: var(--ds-surface) !important;
  border-color: var(--ds-border) !important;
  color: var(--ds-text) !important;
  box-shadow: 0 12px 36px rgba(2, 6, 23, 0.24);
}

.theme-dark #pageTitle,
.theme-dark #board h2,
.theme-dark .card h3 {
  color: var(--ds-text) !important;
}

.theme-dark #overlay,
.theme-light #overlay {
  background: rgba(var(--ds-bg-rgb), 0.62) !important;
  backdrop-filter: blur(4px);
}

.theme-dark #board > section,
.theme-light #board > section {
  background: color-mix(in srgb, var(--ds-surface) 68%, transparent);
  border: 1px solid color-mix(in srgb, var(--ds-border) 75%, transparent);
  border-radius: 14px;
  padding: 0.7rem;
}

.theme-dark input,
.theme-light input,
.theme-dark textarea,
.theme-light textarea,
.theme-dark select,
.theme-light select {
  background: color-mix(in srgb, var(--ds-surface-strong) 72%, transparent) !important;
  border-color: var(--ds-border) !important;
  color: var(--ds-text) !important;
}

.theme-dark input::placeholder,
.theme-light input::placeholder,
.theme-dark textarea::placeholder,
.theme-light textarea::placeholder {
  color: color-mix(in srgb, var(--ds-muted) 88%, transparent);
}

.theme-dark .bg-primary,
.theme-light .bg-primary {
  background-color: var(--ds-primary) !important;
}

.theme-dark .text-primary,
.theme-light .text-primary {
  color: var(--ds-primary) !important;
}

.theme-dark .bg-primary\/10,
.theme-light .bg-primary\/10 {
  background-color: var(--ds-primary-soft) !important;
}

.theme-dark .ring-primary\/40,
.theme-light .ring-primary\/40 {
  --tw-ring-color: color-mix(in srgb, var(--ds-primary) 40%, transparent) !important;
}

.priority-btn {
  border: 1px solid var(--ds-border);
  border-radius: 9999px;
  padding: 0.4rem 0.9rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ds-muted);
  background: color-mix(in srgb, var(--ds-surface) 88%, transparent);
  transition: all 0.15s ease;
}

.priority-btn:hover {
  transform: translateY(-1px);
  border-color: color-mix(in srgb, var(--ds-primary) 35%, var(--ds-border));
}

.priority-btn.active {
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--ds-primary) 20%, transparent);
}

.priority-low.active {
  border-color: #60a5fa;
  color: #1d4ed8;
  background: #dbeafe;
}

.priority-medium.active {
  border-color: #fbbf24;
  color: #b45309;
  background: #fef3c7;
}

.priority-high.active {
  border-color: #fb7185;
  color: #be123c;
  background: #ffe4e6;
}

.card.dragging {
  opacity: 0.55;
}

.drawer-open {
  overflow: hidden;
}

.my-badge {
  font-size: 10px;
  font-weight: 700;
  color: #022c22;
  background: rgba(34, 211, 238, 0.28);
  padding: 2px 8px;
  border-radius: 9999px;
}

.nav-active {
  background: var(--ds-primary-soft);
  color: var(--ds-primary);
  font-weight: 600;
}

.theme-toggle-btn {
  background: color-mix(in srgb, var(--ds-surface-strong) 75%, transparent);
  color: var(--ds-text);
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.theme-toggle-btn:hover {
  border-color: color-mix(in srgb, var(--ds-primary) 45%, var(--ds-border));
  background: color-mix(in srgb, var(--ds-primary) 12%, var(--ds-surface-strong));
}

@media (max-width: 767px) {
  .login-split {
    grid-template-columns: 1fr;
  }

  .login-left {
    display: none;
  }

  .login-right {
    min-height: 100vh;
    padding: 1.25rem;
  }

  .login-left h2 {
    font-size: 1.8rem;
  }

  .kanban-demo {
    min-height: 250px;
    padding: 0.8rem;
  }

  .chat-phone-frame {
    width: 180px;
    height: 330px;
  }

  .kanban-demo-grid {
    gap: 0.5rem;
  }

  .demo-column {
    padding: 0.55rem;
  }

  .demo-card p {
    font-size: 0.72rem;
  }

  body::before,
  body::after {
    width: 20rem;
    height: 20rem;
    filter: blur(56px);
  }
}

@media (min-width: 768px) and (max-height: 860px) {
  .login-left {
    padding-top: 1.5rem;
  }

  .login-left h2 {
    font-size: clamp(1.8rem, 2.4vw, 2.5rem);
  }

  .kanban-demo {
    min-height: 240px;
    max-height: 280px;
  }

  .chat-phone {
    margin-top: 0.5rem;
  }

  .chat-phone-frame {
    width: 154px;
    height: 286px;
  }
}
