/* Eliza Task Board - Command Center Elegance */

:root {
  /* Typography */
  --font-display: 'Outfit', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
  
  /* Dark Theme (default) - Premium Charcoal */
  --bg-base: #0d0d0f;
  --bg-raised: #141416;
  --bg-surface: #1a1a1e;
  --bg-overlay: rgba(0, 0, 0, 0.85);
  --bg-glass: rgba(255, 255, 255, 0.03);
  --bg-glass-hover: rgba(255, 255, 255, 0.06);
  --bg-glass-active: rgba(255, 255, 255, 0.1);
  
  --border-subtle: rgba(255, 255, 255, 0.06);
  --border-default: rgba(255, 255, 255, 0.1);
  --border-focus: rgba(255, 255, 255, 0.2);
  
  --text-primary: #fafafa;
  --text-secondary: rgba(255, 255, 255, 0.7);
  --text-muted: rgba(255, 255, 255, 0.4);
  --text-disabled: rgba(255, 255, 255, 0.25);
  
  /* Default Accent - Warm Amber/Gold */
  --accent-primary: #d4a574;
  --accent-secondary: #e8c4a0;
  --accent-glow: rgba(212, 165, 116, 0.3);
  
  /* Status Colors */
  --color-success: #10b981;
  --color-warning: #f59e0b;
  --color-danger: #ef4444;
  --color-info: #3b82f6;
  
  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 0 40px var(--accent-glow);
  
  /* Animations */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

.theme-light {
  --bg-base: #f5f5f7;
  --bg-raised: #ffffff;
  --bg-surface: #ffffff;
  --bg-overlay: rgba(255, 255, 255, 0.92);
  --bg-glass: rgba(0, 0, 0, 0.02);
  --bg-glass-hover: rgba(0, 0, 0, 0.04);
  --bg-glass-active: rgba(0, 0, 0, 0.06);
  
  --border-subtle: rgba(0, 0, 0, 0.04);
  --border-default: rgba(0, 0, 0, 0.08);
  --border-focus: rgba(0, 0, 0, 0.15);
  
  --text-primary: #1a1a1e;
  --text-secondary: rgba(0, 0, 0, 0.7);
  --text-muted: rgba(0, 0, 0, 0.58);
  --text-disabled: rgba(0, 0, 0, 0.4);
  
  --accent-primary: #b8860b;
  --accent-secondary: #d4a574;
  --accent-glow: rgba(184, 134, 11, 0.2);
  
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.12);
}

/* Tab Themes */
.tab-mode-vps {
  --accent-primary: #0891b2;
  --accent-secondary: #22d3ee;
  --accent-glow: rgba(8, 145, 178, 0.35);
}

.tab-mode-linux {
  --accent-primary: #059669;
  --accent-secondary: #34d399;
  --accent-glow: rgba(5, 150, 105, 0.35);
}

/* Reset & Base */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  background: var(--bg-base);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.5;
}

/* Ambient Background */
.ambient-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
}

.ambient-gradient {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 50% at 50% -20%, var(--accent-glow), transparent);
  opacity: 0.4;
}

.ambient-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.12;
  animation: none;
}

.ambient-glow--1 {
  width: 500px;
  height: 500px;
  background: var(--accent-primary);
  top: -150px;
  right: -50px;
  animation-delay: 0s;
}

.ambient-glow--2 {
  width: 350px;
  height: 350px;
  background: var(--color-success);
  bottom: -80px;
  left: 10%;
  animation-delay: -10s;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(30px, 20px); }
}


/* Confetti Canvas */
#confetti-canvas {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 200;
}

/* Header */
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.5rem;
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  position: sticky;
  top: 0;
  z-index: 50;
  gap: 1.5rem;
}

.header__brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.header__avatar {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  object-fit: cover;
  border: 2px solid var(--accent-primary);
  box-shadow: 0 0 20px var(--accent-glow);
}

.header__title h1 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.header__live-indicator {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.625rem;
  color: var(--color-success);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
}

.pulse-dot {
  width: 6px;
  height: 6px;
  background: var(--color-success);
  border-radius: 50%;
  /* animation removed - static dot */
}

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

.header__controls {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex: 1;
  justify-content: flex-end;
}

/* Quick Filters */
.quick-filters {
  display: flex;
  gap: 0.5rem;
}

.filter-chip {
  padding: 0.375rem 0.75rem;
  border: 1px solid var(--border-default);
  background: transparent;
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 500;
  border-radius: 100px;
  cursor: pointer;
  transition: all 0.2s var(--ease-out);
}

.filter-chip:hover {
  color: var(--text-primary);
  border-color: var(--border-focus);
}

.filter-chip.active {
  background: var(--accent-primary);
  border-color: var(--accent-primary);
  color: white;
}

/* Search */
.search-container {
  position: relative;
  flex: 0 1 260px;
}

.search-icon {
  position: absolute;
  left: 0.875rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

.search-input {
  width: 100%;
  background: var(--bg-glass);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 0.5rem 2.5rem 0.5rem 2.5rem;
  color: var(--text-primary);
  font-size: 0.8125rem;
  font-family: var(--font-body);
  transition: all 0.2s var(--ease-out);
}

.search-input:focus {
  outline: none;
  border-color: var(--accent-primary);
  background: var(--bg-glass-hover);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.search-input::placeholder {
  color: var(--text-muted);
}

.search-shortcut {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  padding: 0.125rem 0.375rem;
  background: var(--bg-glass-active);
  border-radius: 4px;
  font-size: 0.625rem;
  color: var(--text-muted);
  font-family: var(--font-body);
  pointer-events: none;
}

/* Instance Tabs */
.instance-tabs {
  display: flex;
  background: var(--bg-glass);
  border-radius: 10px;
  padding: 3px;
  border: 1px solid var(--border-subtle);
}

.instance-tab {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.4rem 0.75rem;
  border: none;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 500;
  font-family: var(--font-body);
  transition: all 0.2s var(--ease-out);
}

.instance-tab:hover {
  color: var(--text-primary);
  background: var(--bg-glass-hover);
}

.instance-tab.active {
  background: var(--accent-primary);
  color: white;
  box-shadow: var(--shadow-sm);
}

.tab-icon {
  font-size: 0.8125rem;
}

.tab-count {
  background: var(--bg-glass-active);
  padding: 0.125rem 0.375rem;
  border-radius: 4px;
  font-size: 0.625rem;
  min-width: 1.125rem;
  text-align: center;
}

.instance-tab.active .tab-count {
  background: rgba(255, 255, 255, 0.2);
}

/* Header Actions */
.header__actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  background: var(--bg-glass);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  cursor: pointer;
  color: var(--text-secondary);
  transition: all 0.2s var(--ease-out);
}

.icon-btn:hover {
  color: var(--text-primary);
  background: var(--bg-glass-hover);
  border-color: var(--border-default);
}

.theme-dark .moon-icon { display: none; }
.theme-dark .sun-icon { display: block; }
.theme-light .moon-icon { display: block; }
.theme-light .sun-icon { display: none; }

.add-task-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--accent-primary);
  color: white;
  border: none;
  border-radius: 10px;
  padding: 0.5rem 0.875rem;
  font-size: 0.75rem;
  font-weight: 600;
  font-family: var(--font-body);
  cursor: pointer;
  transition: all 0.2s var(--ease-out);
  box-shadow: 0 4px 12px var(--accent-glow);
}

.add-task-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--accent-glow);
}

.add-task-btn kbd {
  padding: 0.125rem 0.375rem;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  font-size: 0.625rem;
  font-family: var(--font-body);
}

/* Stats Bar */
.stats-bar {
  display: flex;
  gap: 0.875rem;
  padding: 0.875rem 1.5rem;
  background: var(--bg-glass);
  border-bottom: 1px solid var(--border-subtle);
  overflow-x: auto;
}

.stat-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.625rem 0.875rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  min-width: fit-content;
}

.stat-card--wide {
  flex: 1;
  min-width: 180px;
}

.stat-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  flex-shrink: 0;
}

.stat-icon--total {
  background: rgba(212, 165, 116, 0.15);
  color: #d4a574;
}

.stat-icon--progress {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
}

.stat-icon--done {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
}

.stat-content {
  display: flex;
  flex-direction: column;
}

.stat-value {
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 700;
  line-height: 1;
  color: var(--text-primary);
}

.stat-label {
  font-size: 0.625rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 0.125rem;
}

.progress-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.progress-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.6875rem;
  color: var(--text-secondary);
}

.progress-percentage {
  font-weight: 600;
  color: var(--accent-primary);
}

.progress-bar {
  height: 5px;
  background: var(--bg-glass-active);
  border-radius: 3px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
  border-radius: 3px;
  width: 0%;
  transition: width 0.5s var(--ease-out);
}

/* Kanban Board */
.kanban-container {
  padding: 1.25rem;
  overflow-x: auto;
  flex: 1;
}

.kanban-board {
  display: flex;
  gap: 1rem;
  min-height: calc(100vh - 200px);
}

/* Columns */
.kanban-column {
  flex: 1 1 0;
  min-width: 240px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s;
}

.kanban-column:hover {
  border-color: var(--border-default);
}

.column-header {
  padding: 0.875rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.column-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.875rem;
}

.column-icon {
  font-size: 0.9375rem;
}

.column-count {
  background: var(--bg-glass-active);
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.column-progress {
  height: 2px;
  background: var(--bg-glass);
  margin: 0 0.875rem;
}

.column-progress-bar {
  height: 100%;
  background: var(--accent-primary);
  width: 0%;
  transition: width 0.3s var(--ease-out);
}

.column-tasks {
  flex: 1;
  overflow-y: auto;
  padding: 0.625rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-height: 100px;
}

.column-tasks::-webkit-scrollbar {
  width: 4px;
}

.column-tasks::-webkit-scrollbar-track {
  background: transparent;
}

.column-tasks::-webkit-scrollbar-thumb {
  background: var(--border-default);
  border-radius: 2px;
}

/* Task Cards */
.task-card {
  background: var(--bg-raised);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 0.875rem;
  cursor: grab;
  transition: all 0.2s var(--ease-out);
  position: relative;
  animation: cardIn 0.3s var(--ease-out);
}

@keyframes cardIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
}

.task-card:hover {
  border-color: var(--accent-primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md), 0 0 0 1px var(--accent-glow);
}

.task-card.dragging {
  opacity: 0.6;
  cursor: grabbing;
  transform: rotate(2deg) scale(1.02);
}

.task-card__priority-bar {
  position: absolute;
  left: 0;
  top: 10px;
  bottom: 10px;
  width: 3px;
  border-radius: 0 3px 3px 0;
}

.priority-bar--low { background: var(--text-muted); }
.priority-bar--medium { background: var(--color-info); }
.priority-bar--high { background: var(--color-warning); }
.priority-bar--urgent { 
  background: var(--color-danger);
  animation: urgentPulse 2s ease-in-out infinite;
}

@keyframes urgentPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.task-card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.375rem;
  margin-left: 0.5rem;
}

.task-card__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.875rem;
  line-height: 1.4;
  color: var(--text-primary);
}

.task-card__actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.task-card__delete {
  opacity: 0;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  font-size: 0.75rem;
  border-radius: 4px;
  transition: all 0.2s ease;
  min-width: 44px;
  min-height: 44px;
}

.task-card:hover .task-card__delete {
  opacity: 0.5;
}

.task-card__delete:hover {
  opacity: 1 !important;
  background: rgba(239, 68, 68, 0.2);
  transform: scale(1.1);
}

.task-card__assignee {
  font-size: 0.8125rem;
  flex-shrink: 0;
}

.task-card__description {
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-bottom: 0.625rem;
  margin-left: 0.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.5;
}

.task-card__meta {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  flex-wrap: wrap;
  margin-left: 0.5rem;
}

.task-badge {
  font-size: 0.625rem;
  padding: 0.2rem 0.4rem;
  border-radius: 5px;
  font-weight: 500;
}

.badge--coding { background: rgba(99, 102, 241, 0.15); color: #818cf8; }
.badge--research { background: rgba(59, 130, 246, 0.15); color: #60a5fa; }
.badge--files { background: rgba(16, 185, 129, 0.15); color: #34d399; }
.badge--content { background: rgba(245, 158, 11, 0.15); color: #fbbf24; }
.badge--system { background: rgba(239, 68, 68, 0.15); color: #f87171; }

.task-card__time {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.625rem;
  color: var(--text-muted);
  margin-left: auto;
}

.task-card__age {
  font-size: 0.625rem;
  color: var(--text-disabled);
  margin-top: 0.375rem;
  margin-left: 0.5rem;
}

/* After Hours Badge */
.badge--after-hours {
  background: rgba(139, 92, 246, 0.15);
  color: #a78bfa;
}

/* Drop Zone */
.column-tasks.drag-over {  background: var(--bg-glass-hover);  border: 2px dashed var(--accent-primary);  border-radius: 8px;}

/* Empty State */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 1rem;
  color: var(--text-muted);
  text-align: center;
}

.empty-state__icon {
  font-size: 1.75rem;
  margin-bottom: 0.375rem;
  opacity: 0.5;
}

.empty-state__text {
  font-size: 0.75rem;
}

/* Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: var(--bg-overlay);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s var(--ease-out);
  padding: 1rem;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal {
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: 18px;
  width: 100%;
  max-width: 500px;
  max-height: 90vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transform: scale(0.95) translateY(10px);
  transition: transform 0.3s var(--ease-spring);
  box-shadow: var(--shadow-lg);
}

.modal-overlay.active .modal {
  transform: scale(1) translateY(0);
}

.modal__header {
  padding: 1.125rem 1.25rem;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal__title {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 700;
}

.modal__close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  border-radius: 8px;
  transition: all 0.2s;
}

.modal__close:hover {
  background: var(--bg-glass);
  color: var(--text-primary);
}

.modal__body {
  padding: 1.25rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.form-group label {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.form-group input,
.form-group textarea,
.form-group select {
  background: var(--bg-glass);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 0.625rem 0.875rem;
  color: var(--text-primary);
  font-size: 0.875rem;
  font-family: var(--font-body);
  transition: all 0.2s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.form-group textarea {
  resize: vertical;
  min-height: 70px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.875rem;
}

/* Priority Select */
.priority-select {
  display: flex;
  gap: 0.375rem;
  flex-wrap: wrap;
}

.priority-btn {
  padding: 0.4rem 0.75rem;
  border: 1px solid var(--border-default);
  background: transparent;
  color: var(--text-secondary);
  font-size: 0.75rem;
  font-weight: 500;
  font-family: var(--font-body);
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
}

.priority-btn:hover {
  border-color: var(--border-focus);
  color: var(--text-primary);
}

.priority-btn.active {
  background: var(--accent-primary);
  border-color: var(--accent-primary);
  color: white;
}

.priority-btn[data-value="urgent"].active {
  background: var(--color-danger);
  border-color: var(--color-danger);
}

.modal__footer {
  padding: 0.875rem 1.25rem;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  gap: 0.625rem;
}

.btn {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.625rem 1rem;
  border-radius: 8px;
  font-size: 0.8125rem;
  font-weight: 600;
  font-family: var(--font-body);
  cursor: pointer;
  transition: all 0.2s var(--ease-out);
  border: none;
}

.btn--secondary {
  background: var(--bg-glass);
  color: var(--text-primary);
  border: 1px solid var(--border-default);
}

.btn--secondary:hover {
  background: var(--bg-glass-hover);
}

.btn--primary {
  background: var(--accent-primary);
  color: white;
  box-shadow: 0 4px 12px var(--accent-glow);
}

.btn--primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px var(--accent-glow);
}

.btn--danger {
  background: transparent;
  color: var(--color-danger);
  border: 1px solid var(--color-danger);
}

.btn--danger:hover {
  background: var(--color-danger);
  color: white;
}

/* Toast */
.toast-container {
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  z-index: 120;
}

.toast {
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: 10px;
  padding: 0.875rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.625rem;
  box-shadow: var(--shadow-lg);
  animation: toastIn 0.4s var(--ease-spring);
  max-width: 340px;
}

@keyframes toastIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
}

.toast__icon {
  font-size: 1.125rem;
}

.toast__message {
  font-size: 0.8125rem;
  line-height: 1.4;
}

.toast--success { border-left: 3px solid var(--color-success); }
.toast--error { border-left: 3px solid var(--color-danger); }
.toast--info { border-left: 3px solid var(--color-info); }

/* Shortcuts Overlay */
.shortcuts-overlay {
  position: fixed;
  inset: 0;
  background: var(--bg-overlay);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 110;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s var(--ease-out);
}

.shortcuts-overlay.active {
  opacity: 1;
  visibility: visible;
}

.shortcuts-panel {
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: 14px;
  padding: 1.25rem 1.5rem;
  box-shadow: var(--shadow-lg);
}

.shortcuts-panel h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  margin-bottom: 0.875rem;
}

.shortcuts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.625rem 1.5rem;
}

.shortcut {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-size: 0.8125rem;
  color: var(--text-secondary);
}

.shortcut kbd {
  padding: 0.2rem 0.4rem;
  background: var(--bg-glass-active);
  border-radius: 5px;
  font-size: 0.6875rem;
  font-weight: 600;
  min-width: 1.375rem;
  text-align: center;
}

/* Responsive */
@media (max-width: 1024px) {
  .kanban-column {
    min-width: 260px;
  }
  
  .quick-filters {
    display: none;
  }
}

@media (max-width: 768px) {
  .header {
    flex-wrap: wrap;
    gap: 0.875rem;
    padding: 0.875rem;
  }

  .header__controls {
    width: 100%;
    flex-wrap: wrap;
  }

  .search-container {
    flex: 1 1 100%;
    order: 10;
  }

  .instance-tabs {
    flex: 1;
  }

  .stats-bar {
    gap: 0.625rem;
    padding: 0.625rem;
  }

  .stat-card:not(.stat-card--wide) {
    padding: 0.5rem 0.75rem;
  }

  .stat-icon {
    width: 30px;
    height: 30px;
  }

  .stat-value {
    font-size: 1.125rem;
  }

  .kanban-container {
    padding: 0.875rem;
  }

  .kanban-column {
    min-width: 260px;
    flex: 0 0 260px;
  }

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

/* Task Outcome Styling - Refined Display */
.task-card__outcome {
  margin-top: 1rem;
  margin-left: -0.75rem;
  margin-right: -0.75rem;
  margin-bottom: -0.75rem;
  padding: 0.875rem;
  background: var(--bg-glass);
  border-top: 1px solid var(--border-subtle);
  border-radius: 0 0 10px 10px;
}

.task-card__outcome-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.625rem;
  font-family: var(--font-display);
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-primary);
}

.task-card__outcome-toggle {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.5rem;
  background: transparent;
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 0.625rem;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s var(--ease-out);
}

.task-card__outcome-toggle:hover {
  background: var(--bg-glass-hover);
  border-color: var(--accent-primary);
  color: var(--accent-primary);
}

.task-card__outcome-toggle svg {
  width: 10px;
  height: 10px;
  transition: transform 0.3s var(--ease-out);
}

.task-card__outcome.expanded .task-card__outcome-toggle svg {
  transform: rotate(180deg);
}

.task-card__outcome-text {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  line-height: 1.7;
  color: var(--text-secondary);
  max-height: 3.4em;
  overflow: hidden;
  transition: max-height 0.4s var(--ease-out);
}

.task-card__outcome.expanded .task-card__outcome-text {
  max-height: 500px;
}

.task-card__outcome-text.truncated::after {
  content: '…';
  color: var(--text-muted);
}

/* Modal Outcome Field */
#outcome-group {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-subtle);
}

#outcome-group label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--accent-primary);
  margin-bottom: 0.75rem;
}

#outcome-group textarea {
  min-height: 120px;
  font-family: var(--font-body);
  font-size: 0.875rem;
  line-height: 1.6;
  padding: 1rem;
  background: var(--bg-glass);
  border: 1px solid var(--border-default);
  border-radius: 8px;
  color: var(--text-primary);
  resize: vertical;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

#outcome-group textarea:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

#outcome-group textarea::placeholder {
  color: var(--text-muted);
}

/* ============================================
   RECURRING TASKS - Editorial Refinement
   ============================================ */

/* View Tabs */
.view-tabs {
  display: flex;
  gap: 0.5rem;
  margin-right: 1.5rem;
  padding: 0.375rem;
  background: var(--bg-glass);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
}

.view-tab {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1rem;
  background: transparent;
  border: none;
  border-radius: 7px;
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.25s var(--ease-out);
  position: relative;
}

.view-tab:hover {
  background: var(--bg-glass-hover);
  color: var(--text-primary);
}

.view-tab.active {
  background: var(--accent-primary);
  color: #000;
  box-shadow: 0 2px 12px var(--accent-glow);
}

.view-tab .tab-icon {
  font-size: 1.125rem;
  line-height: 1;
}

.view-tab .tab-count {
  padding: 0.125rem 0.5rem;
  background: rgba(0, 0, 0, 0.15);
  border-radius: 10px;
  font-size: 0.6875rem;
  font-weight: 700;
  line-height: 1;
}

.view-tab.active .tab-count {
  background: rgba(0, 0, 0, 0.2);
  color: #000;
}

/* Recurring Container */
.recurring-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 2.5rem 2rem;
  animation: fadeIn 0.5s var(--ease-out);
}

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

.recurring-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2.5rem;
}

.recurring-title {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}



.add-recurring-btn {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.875rem 1.5rem;
  background: var(--accent-primary);
  border: none;
  border-radius: 12px;
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 700;
  color: #000;
  cursor: pointer;
  transition: all 0.3s var(--ease-out);
  box-shadow: 0 4px 16px var(--accent-glow);
}

.add-recurring-btn:hover {
  background: var(--accent-secondary);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px var(--accent-glow);
}

.add-recurring-btn:active {
  transform: translateY(0);
}

.add-recurring-btn svg {
  width: 18px;
  height: 18px;
}

/* Recurring Grid */
.recurring-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
  gap: 1.5rem;
}

/* Empty State */
.empty-state {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 5rem 2rem;
  text-align: center;
}

.empty-icon {
  font-size: 5rem;
  margin-bottom: 1.5rem;
  opacity: 0.5;
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.empty-state h3 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.empty-state p {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  max-width: 400px;
}

/* Recurring Card */
.recurring-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: 16px;
  padding: 1.5rem;
  cursor: pointer;
  transition: all 0.3s var(--ease-out);
  position: relative;
  overflow: hidden;
}

.recurring-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.recurring-card:hover {
  border-color: var(--accent-primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md), 0 0 20px var(--accent-glow);
}

.recurring-card:hover::before {
  opacity: 1;
}

.recurring-card--disabled {
  opacity: 0.5;
}

.recurring-card--disabled:hover {
  transform: none;
  box-shadow: none;
}

.recurring-card__header {
  margin-bottom: 1.25rem;
}

.recurring-card__title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.recurring-card__title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  line-height: 1.3;
  flex: 1;
}

.recurring-card__actions {
  display: flex;
  gap: 0.375rem;
  flex-shrink: 0;
}

.recurring-card__action {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--bg-glass);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s var(--ease-out);
}

.recurring-card__action:hover {
  background: var(--bg-glass-hover);
  border-color: var(--accent-primary);
  color: var(--accent-primary);
  transform: scale(1.05);
}

.recurring-card__action svg {
  width: 16px;
  height: 16px;
}

.recurring-card__description {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--text-secondary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Schedule Display */
.recurring-card__schedule {
  padding: 1rem;
  background: var(--bg-glass);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  margin-bottom: 1rem;
}

.schedule-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.schedule-badge svg {
  width: 14px;
  height: 14px;
  color: var(--accent-primary);
}

.schedule-next {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.schedule-next strong {
  color: var(--accent-primary);
  font-weight: 600;
}

/* Meta Badges */
.recurring-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.meta-badge {
  padding: 0.375rem 0.75rem;
  background: var(--bg-glass);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
  line-height: 1;
}

.meta-badge--model {
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  border: none;
  color: #000;
}

.meta-badge--priority {
  background: var(--priority-color);
  border: none;
  color: #fff;
}

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

/* Recurring Modal Enhancements */
.modal-recurring {
  max-width: 680px;
}

.form-divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 2rem 0 1.5rem;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-primary);
}

.form-divider::before,
.form-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--border-default), transparent);
}

.schedule-type-select {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.schedule-type-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1.25rem 0.75rem;
  background: var(--bg-glass);
  border: 2px solid var(--border-default);
  border-radius: 12px;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.3s var(--ease-out);
}

.schedule-type-btn:hover {
  background: var(--bg-glass-hover);
  border-color: var(--accent-primary);
  color: var(--text-primary);
}

.schedule-type-btn.active {
  background: var(--accent-primary);
  border-color: var(--accent-primary);
  color: #000;
  box-shadow: 0 4px 12px var(--accent-glow);
}

.schedule-icon {
  font-size: 1.5rem;
  line-height: 1;
}

.schedule-config {
  animation: slideIn 0.3s var(--ease-out);
}

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

.days-of-week {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.day-btn {
  padding: 0.875rem 0.5rem;
  background: var(--bg-glass);
  border: 2px solid var(--border-default);
  border-radius: 10px;
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.25s var(--ease-out);
}

.day-btn:hover {
  background: var(--bg-glass-hover);
  border-color: var(--accent-primary);
  color: var(--text-primary);
}

.day-btn.active {
  background: var(--accent-primary);
  border-color: var(--accent-primary);
  color: #000;
  box-shadow: 0 2px 8px var(--accent-glow);
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  color: var(--text-primary);
  cursor: pointer;
  user-select: none;
}

.checkbox-label input[type="checkbox"] {
  width: 20px;
  height: 20px;
  border: 2px solid var(--border-default);
  border-radius: 6px;
  cursor: pointer;
  appearance: none;
  background: var(--bg-glass);
  transition: all 0.2s ease;
  position: relative;
}

.checkbox-label input[type="checkbox"]:checked {
  background: var(--accent-primary);
  border-color: var(--accent-primary);
}

.checkbox-label input[type="checkbox"]:checked::after {
  content: '✓';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 14px;
  font-weight: bold;
  color: #000;
}

/* Responsive */
@media (max-width: 1024px) {
  .recurring-grid {
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  }
}

@media (max-width: 768px) {
  .recurring-container {
    padding: 1.5rem 1rem;
  }
  
  .recurring-header {
    flex-direction: column;
    align-items: stretch;
    gap: 1.5rem;
  }
  
  .recurring-grid {
    grid-template-columns: 1fr;
  }
  
  .schedule-type-select {
    grid-template-columns: 1fr;
  }
  
  .days-of-week {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ============================================
   RECURRING COLUMN & MODAL - Premium Design
   ============================================ */

/* Recurring Column - Distinctive Styling */
.column-recurring {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.05), rgba(59, 130, 246, 0.05));
  border: 2px solid rgba(139, 92, 246, 0.2);
  position: relative;
  overflow: hidden;
}

.column-recurring::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #8b5cf6, #3b82f6, #06b6d4);
  background-size: 200% 100%;
  /* animation removed */
}




.column-recurring .column-header {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), rgba(59, 130, 246, 0.1));
  border-bottom: 2px solid rgba(139, 92, 246, 0.2);
}

.column-recurring .column-title {
  color: #8b5cf6;
  font-weight: 700;
}

.column-add-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin: 1rem 0.75rem;
  padding: 0.875rem;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.08), rgba(59, 130, 246, 0.08));
  border: 2px dashed rgba(139, 92, 246, 0.3);
  border-radius: 12px;
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 600;
  color: #8b5cf6;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.column-add-btn:hover {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.15), rgba(59, 130, 246, 0.15));
  border-color: #8b5cf6;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(139, 92, 246, 0.25);
}

.column-add-btn:active {
  transform: translateY(0);
}

.column-add-btn svg {
  width: 16px;
  height: 16px;
  stroke-width: 2.5px;
}

/* Recurring Task Cards - Special Styling */
.column-tasks--recurring .task-card {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.06), rgba(59, 130, 246, 0.06));
  border-left: 4px solid #8b5cf6;
  position: relative;
}


.column-tasks--recurring .task-card:hover {
  border-left-color: #7c3aed;
  box-shadow: 0 8px 24px rgba(139, 92, 246, 0.2);
}

/* Recurring Modal - Premium Styling */
.modal--recurring {
  max-width: 720px;
}

.modal__header--recurring {
  background: linear-gradient(135deg, #8b5cf6, #3b82f6);
  color: white;
  border-bottom: none;
}

.modal__header--recurring .modal__title {
  color: white;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.modal-icon {
  font-size: 1.75rem;
  line-height: 1;
  /* animation removed */
}


.modal__header--recurring .modal__close {
  color: white;
  opacity: 0.9;
}

.modal__header--recurring .modal__close:hover {
  opacity: 1;
  background: rgba(255, 255, 255, 0.1);
}

/* Form Divider - Elegant Section Breaks */
.form-divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 2rem 0 1.5rem;
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #8b5cf6;
}

.form-divider::before,
.form-divider::after {
  content: '';
  flex: 1;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.3), transparent);
}

/* Model Select - Enhanced Styling */
.model-select {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.05), rgba(59, 130, 246, 0.05));
  border: 2px solid rgba(139, 92, 246, 0.2);
  font-weight: 600;
}

.model-select:focus {
  border-color: #8b5cf6;
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.15);
}

/* Schedule Type Grid - Card-Based Selection */
.schedule-type-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 0.75rem;
}

.schedule-type-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1.5rem 1rem;
  background: var(--bg-surface);
  border: 2px solid var(--border-default);
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  overflow: hidden;
}

.schedule-type-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #8b5cf6, #3b82f6);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.schedule-type-card:hover {
  border-color: #8b5cf6;
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(139, 92, 246, 0.2);
}

.schedule-type-card.active {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), rgba(59, 130, 246, 0.1));
  border-color: #8b5cf6;
  box-shadow: 0 8px 20px rgba(139, 92, 246, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.schedule-type-card.active::before {
  opacity: 1;
}

.schedule-type-icon {
  font-size: 2rem;
  line-height: 1;
  margin-bottom: 0.25rem;
}

.schedule-type-label {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
}

.schedule-type-desc {
  font-family: var(--font-body);
  font-size: 0.75rem;
  color: var(--text-muted);
}

.schedule-type-card.active .schedule-type-label {
  color: #8b5cf6;
}

/* Schedule Config Sections - Smooth Transitions */
.schedule-config {
  animation: fadeSlideIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes fadeSlideIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Days Grid - Week Day Selector */
.days-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.day-toggle {
  padding: 1rem 0;
  background: var(--bg-surface);
  border: 2px solid var(--border-default);
  border-radius: 12px;
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.day-toggle:hover {
  border-color: #8b5cf6;
  color: var(--text-primary);
  transform: translateY(-2px);
}

.day-toggle.active {
  background: linear-gradient(135deg, #8b5cf6, #7c3aed);
  border-color: #8b5cf6;
  color: white;
  box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

/* Time Input - Enhanced Styling */
.time-input {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 600;
  text-align: center;
  letter-spacing: 0.05em;
  color: #8b5cf6;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.05), rgba(59, 130, 246, 0.05));
  border: 2px solid rgba(139, 92, 246, 0.2);
}

.time-input:focus {
  border-color: #8b5cf6;
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.15);
}

/* Toggle Switch - Modern Toggle Design */
.toggle-label {
  display: flex;
  align-items: center;
  gap: 1rem;
  cursor: pointer;
  user-select: none;
}

.toggle-input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.toggle-switch {
  position: relative;
  width: 52px;
  height: 28px;
  background: var(--bg-glass);
  border: 2px solid var(--border-default);
  border-radius: 14px;
  transition: all 0.3s ease;
}

.toggle-switch::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  background: var(--text-muted);
  border-radius: 50%;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.toggle-input:checked + .toggle-switch {
  background: linear-gradient(135deg, #8b5cf6, #7c3aed);
  border-color: #8b5cf6;
}

.toggle-input:checked + .toggle-switch::after {
  left: 26px;
  background: white;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.toggle-text {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  color: var(--text-primary);
}

/* Recurring Modal Button */
.btn--recurring {
  background: linear-gradient(135deg, #8b5cf6, #7c3aed);
  border: none;
  box-shadow: 0 4px 16px rgba(139, 92, 246, 0.3);
}

.btn--recurring:hover {
  background: linear-gradient(135deg, #7c3aed, #6d28d9);
  box-shadow: 0 8px 24px rgba(139, 92, 246, 0.4);
  transform: translateY(-2px);
}

.btn--recurring:active {
  transform: translateY(0);
}

/* Responsive Adjustments */
@media (max-width: 1200px) {
  .kanban-board {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

@media (max-width: 768px) {
  .schedule-type-grid {
    grid-template-columns: 1fr;
  }
  
  .days-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  
  .form-row {
    flex-direction: column;
  }
}

/* Recurring Task Card - Enhanced Info Display */
.recurring-card-schedule {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.75rem;
  padding: 0.625rem;
  background: rgba(139, 92, 246, 0.08);
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  color: #8b5cf6;
}

.recurring-card-schedule svg {
  width: 14px;
  height: 14px;
}

.recurring-card-model {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.25rem 0.625rem;
  background: linear-gradient(135deg, #8b5cf6, #7c3aed);
  border-radius: 6px;
  font-family: var(--font-display);
  font-size: 0.6875rem;
  font-weight: 700;
  color: white;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}


/* Touch device improvements */
@media (hover: none) {
  .task-card__delete {
    opacity: 0.5;
  }
}

/* Focus-visible improvements for keyboard navigation */
*:focus-visible {
  outline: 2px solid var(--accent-primary);
  outline-offset: 2px;
}

*:focus:not(:focus-visible) {
  outline: none;
}

/* Accessibility: Respect user's motion preferences */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
