/* ==========================================================================
   SyncTeam - Simplified & User-Friendly Todo Application Stylesheet
   Features: Instant Quick-Add Inputs, Clean Compact Toolbar, One-Click
   Column Shift Controls (◀ ▶), Column Tint Separation, Easy UX Focus
   ========================================================================== */

/* Page Background & Grid Overlay */
body.todo-page {
  background-color: var(--bg-main);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow-x: hidden;
}

.cyber-grid-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
  z-index: 0;
  opacity: 0.7;
}

.todo-main-container {
  padding-top: 95px;
  padding-bottom: 50px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  flex: 1;
  position: relative;
  z-index: 2;
}

.app-badge {
  font-size: 0.7rem;
  background: var(--gradient-primary);
  color: #ffffff;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  margin-left: 6px;
  font-weight: 700;
}

/* FAST INSTANT TASK CREATION BAR */
.quick-create-section {
  padding: 12px 16px;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.85) 0%, rgba(30, 41, 59, 0.75) 100%);
  border: 1px solid rgba(99, 102, 241, 0.25);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

[data-theme="light"] .quick-create-section {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(241, 245, 249, 0.9) 100%);
}

.quick-create-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
}

.quick-bolt-icon {
  font-size: 1.25rem;
  color: var(--accent-amber);
  animation: pulseGlow 2s infinite ease-in-out;
}

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

.quick-create-input {
  flex: 1;
  padding: 12px 18px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-main);
  font-family: inherit;
  font-size: 0.95rem;
  outline: none;
  transition: all var(--transition-normal);
}

[data-theme="light"] .quick-create-input {
  background: rgba(255, 255, 255, 0.8);
}

.quick-create-input:focus {
  border-color: var(--accent-indigo);
  box-shadow: 0 0 16px rgba(99, 102, 241, 0.35);
  background: rgba(0, 0, 0, 0.45);
}

/* CLEAN COMPACT TOOLBAR & STATS HEADER */
.compact-toolbar {
  padding: 14px 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.stats-pills-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.stat-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  font-size: 0.825rem;
}

.stat-pill.total { border-color: rgba(99, 102, 241, 0.3); color: #818cf8; }
.stat-pill.todo { border-color: rgba(245, 158, 11, 0.3); color: #fbbf24; }
.stat-pill.progress { border-color: rgba(6, 182, 212, 0.3); color: #22d3ee; }
.stat-pill.done { border-color: rgba(16, 185, 129, 0.3); color: #34d399; }

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

.pill-value {
  font-size: 0.95rem;
  font-weight: 800;
}

.mini-progress-wrapper {
  flex: 1;
  min-width: 180px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-left: auto;
}

.mini-progress-info {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.mini-progress-track {
  width: 100%;
  height: 8px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: var(--radius-full);
  overflow: hidden;
  border: 1px solid var(--border-color);
}

.mini-progress-fill {
  height: 100%;
  background: var(--gradient-primary);
  border-radius: var(--radius-full);
  transition: width 0.5s ease;
}

/* CONTROLS ROW */
.controls-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 10px;
  border-top: 1px solid var(--border-color);
}

.search-box {
  position: relative;
  flex: 1;
  min-width: 220px;
  display: flex;
  align-items: center;
}

.search-icon {
  position: absolute;
  left: 12px;
  color: var(--text-subtle);
  font-size: 0.85rem;
}

.search-input {
  width: 100%;
  padding: 8px 32px 8px 34px;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  font-family: inherit;
  font-size: 0.875rem;
  outline: none;
}

.clear-search-btn {
  position: absolute;
  right: 8px;
  background: transparent;
  border: none;
  color: var(--text-subtle);
  cursor: pointer;
}

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

.filter-select {
  padding: 7px 10px;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  font-family: inherit;
  font-size: 0.825rem;
  outline: none;
  cursor: pointer;
}

[data-theme="light"] .filter-select {
  background: #ffffff;
}

.view-switch-btns {
  display: flex;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 2px;
}

.view-btn {
  padding: 6px 10px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: inherit;
  font-size: 0.825rem;
  font-weight: 600;
  cursor: pointer;
  border-radius: 4px;
  transition: all var(--transition-fast);
}

.view-btn.active {
  background: var(--accent-indigo);
  color: #ffffff;
}

/* KANBAN BOARD & COLUMN TINTS */
.kanban-app-board {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  align-items: start;
}

@media (max-width: 992px) {
  .kanban-app-board {
    grid-template-columns: 1fr;
  }
}

.kanban-app-col {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 480px;
}

.col-todo-tint {
  background: rgba(245, 158, 11, 0.03);
  border-top: 3px solid var(--accent-amber);
}

.col-progress-tint {
  background: rgba(6, 182, 212, 0.03);
  border-top: 3px solid var(--accent-cyan);
}

.col-done-tint {
  background: rgba(16, 185, 129, 0.03);
  border-top: 3px solid var(--accent-emerald);
}

.col-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 8px;
}

.col-title-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  font-weight: 700;
}

.badge-todo .col-dot { color: var(--accent-amber); }
.badge-progress .col-dot { color: var(--accent-cyan); }
.badge-done .col-dot { color: var(--accent-emerald); }

.count-pill {
  background: rgba(255, 255, 255, 0.08);
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
}

/* INLINE QUICK ADD INPUT PER COLUMN */
.col-quick-add-wrapper {
  margin-bottom: 4px;
}

.col-quick-input {
  width: 100%;
  padding: 9px 12px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px dashed var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  font-family: inherit;
  font-size: 0.85rem;
  outline: none;
  transition: all var(--transition-fast);
}

[data-theme="light"] .col-quick-input {
  background: rgba(255, 255, 255, 0.7);
}

.col-quick-input:focus {
  background: rgba(0, 0, 0, 0.4);
  border-style: solid;
  border-color: var(--accent-indigo);
  box-shadow: 0 0 10px rgba(99, 102, 241, 0.25);
}

.task-dropzone {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
  min-height: 380px;
  padding: 2px;
}

.task-dropzone.drag-over {
  background: rgba(99, 102, 241, 0.1);
  border: 2px dashed var(--accent-indigo);
  border-radius: var(--radius-sm);
}

/* CLEAN TASK CARD DESIGN WITH ONE-CLICK SHIFT BUTTONS */
.task-card {
  background: var(--bg-card);
  backdrop-filter: blur(14px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  cursor: grab;
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  user-select: none;
}

.task-card.priority-left-high { border-left: 4px solid #ef4444; }
.task-card.priority-left-medium { border-left: 4px solid #f59e0b; }
.task-card.priority-left-low { border-left: 4px solid #10b981; }

.task-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  border-color: rgba(255, 255, 255, 0.2);
}

.task-card.is-dragging {
  opacity: 0.35;
}

.task-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.task-tags-wrapper {
  display: flex;
  align-items: center;
  gap: 6px;
}

.tag-badge {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
}

.tag-design { background: rgba(6, 182, 212, 0.15); color: #22d3ee; }
.tag-frontend { background: rgba(99, 102, 241, 0.15); color: #818cf8; }
.tag-backend { background: rgba(168, 85, 247, 0.15); color: #c084fc; }
.tag-marketing { background: rgba(236, 72, 153, 0.15); color: #f472b6; }
.tag-core { background: rgba(16, 185, 129, 0.15); color: #34d399; }

.priority-badge {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
}

.priority-high { background: rgba(239, 68, 68, 0.2); color: #fca5a5; }
.priority-medium { background: rgba(245, 158, 11, 0.2); color: #fde047; }
.priority-low { background: rgba(16, 185, 129, 0.2); color: #6ee7b7; }

/* Main Card Content Row with Quick Checkbox */
.task-title-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.task-quick-checkbox {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  cursor: pointer;
  accent-color: var(--accent-indigo);
}

.task-card-title {
  font-size: 0.925rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--text-main);
  flex: 1;
}

.task-card-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Card Footer with One-Click Move Arrows (◀ ▶) */
.task-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 8px;
  border-top: 1px dashed var(--border-color);
  font-size: 0.78rem;
}

.task-card-left-info {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-subtle);
}

.move-controls-group {
  display: flex;
  align-items: center;
  gap: 4px;
}

.move-col-btn {
  padding: 2px 6px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  color: var(--text-muted);
  font-size: 0.725rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.move-col-btn:hover {
  background: var(--accent-indigo);
  color: #ffffff;
  border-color: var(--accent-indigo);
}

.action-btn {
  background: transparent;
  border: none;
  color: var(--text-subtle);
  font-size: 0.8rem;
  cursor: pointer;
  padding: 2px 4px;
}

.action-btn:hover { color: var(--text-main); }
.action-btn.delete:hover { color: #ef4444; }

/* LIST VIEW */
.list-view-container {
  overflow: hidden;
  padding: 0;
}

.table-responsive { width: 100%; overflow-x: auto; }

.task-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.875rem;
}

.task-table th, .task-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-color);
}

.task-table th {
  background: rgba(0, 0, 0, 0.2);
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.78rem;
  text-transform: uppercase;
}

.done-row .task-card-title {
  text-decoration: line-through;
  opacity: 0.55;
}

/* MODAL DIALOG */
.modal-backdrop {
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(10px);
  z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
}

.modal-card {
  width: 100%; max-width: 520px; padding: 28px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6);
}

.modal-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 18px; padding-bottom: 12px;
  border-bottom: 1px solid var(--border-color);
}

.close-modal-btn {
  background: transparent; border: none; color: var(--text-subtle);
  font-size: 1rem; cursor: pointer;
}

.task-form { display: flex; flex-direction: column; gap: 14px; }
.form-row { display: flex; gap: 12px; }
.flex-1 { flex: 1; }
.required { color: #ef4444; }

.modal-footer {
  display: flex; justify-content: flex-end; gap: 10px;
  margin-top: 8px; padding-top: 14px;
  border-top: 1px solid var(--border-color);
}

/* TOAST */
.toast-notification {
  position: fixed; bottom: 24px; right: 24px; z-index: 10000;
  background: rgba(15, 23, 42, 0.95); color: #fff;
  border: 1px solid var(--accent-indigo);
  padding: 12px 20px; border-radius: var(--radius-md);
  font-size: 0.875rem; font-weight: 600;
  backdrop-filter: blur(12px);
  display: flex; align-items: center; gap: 10px;
  transition: all 0.3s ease;
}

.toast-notification.hidden {
  transform: translateY(100px); opacity: 0; pointer-events: none;
}
