/* CSS Variables for Theme Support */
:root {
  /* Dark theme (default) */
  --bg-primary: #0b0d10;
  --bg-secondary: #11151a;
  --bg-tertiary: #0e1318;
  --text-primary: #e6e8eb;
  --text-secondary: #9aa4b2;
  --text-muted: #6b7280;
  --border-color: #1f252d;
  --accent-color: #2563eb;
  --accent-hover: #1d4ed8;
  --button-bg: #2563eb;
  --button-disabled: #334155;
  --input-bg: #0b0d10;
  --input-border: #1f252d;
  --card-bg: #0e1318;
  --modal-bg: #11151a;
  --modal-overlay: rgba(0, 0, 0, 0.5);
  --scrollbar-track: #1f252d;
  --scrollbar-thumb: #374151;
  --scrollbar-thumb-hover: #4b5563;
  --priority-immediate: #ef4444;
  --priority-high: #f97316;
  --priority-normal: #16a34a;
  --priority-low: #0891b2;
  --overdue-color: #ef4444;
  --assignee-highlight: #fbbf24;
  --qa-highlight: #10fb08;
  --reporter-highlight: #7210b9;
  --env-highlight: #f50db7;
}

[data-theme="light"] {
  /* Light theme */
  --bg-primary: #ffffff;
  --bg-secondary: #f8fafc;
  --bg-tertiary: #f1f5f9;
  --text-primary: #1e293b;
  --text-secondary: #64748b;
  --text-muted: #94a3b8;
  --border-color: #e2e8f0;
  --accent-color: #2563eb;
  --accent-hover: #1d4ed8;
  --button-bg: #2563eb;
  --button-disabled: #cbd5e1;
  --input-bg: #ffffff;
  --input-border: #d1d5db;
  --card-bg: #ffffff;
  --modal-bg: #ffffff;
  --modal-overlay: rgba(0, 0, 0, 0.3);
  --scrollbar-track: #f1f5f9;
  --scrollbar-thumb: #cbd5e1;
  --scrollbar-thumb-hover: #94a3b8;
  --priority-immediate: #dc2626;
  --priority-high: #ea580c;
  --priority-normal: #16a34a;
  --priority-low: #0891b2;
  --overdue-color: #dc2626;
  --assignee-highlight: #d97706;
  --qa-highlight: #10fb08;
  --reporter-highlight: #7210b9;
  --env-highlight: #2e000e;
}

* { box-sizing: border-box; }
body { 
  margin: 0; 
  font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica, Arial, sans-serif; 
  background: var(--bg-primary); 
  color: var(--text-primary);
  transition: background-color 0.3s ease, color 0.3s ease;
}
.header { 
  display: flex; 
  align-items: center; 
  justify-content: space-between; 
  padding: 12px 16px; 
  background: var(--bg-secondary); 
  border-bottom: 1px solid var(--border-color); 
  position: sticky; 
  top: 0; 
  z-index: 10;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}
.header h1 { font-size: 18px; margin: 0; }
.actions { display: flex; gap: 12px; align-items: center; }
button { 
  background: var(--button-bg); 
  color: white; 
  border: 0; 
  padding: 8px 12px; 
  border-radius: 6px; 
  cursor: pointer; 
  font-weight: 600;
  transition: background-color 0.3s ease;
}
button:hover { background: var(--accent-hover); }
button:disabled { background: var(--button-disabled); cursor: not-allowed; }
#status { font-size: 12px; color: var(--text-secondary); }

input[type="text"], input[type="password"], input[type="date"], select {
  outline: none;
  background: var(--input-bg);
  border: 1px solid var(--input-border);
  color: var(--text-primary);
  transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

.board { 
  display: grid; 
  grid-template-columns: repeat(8, 260px); 
  gap: 12px; 
  padding: 12px; 
  overflow-x: auto;
  min-width: max-content;
  scrollbar-width: thin;
  scrollbar-color: #374151 #1f252d;
}

/* Custom scrollbar for webkit browsers */
.board::-webkit-scrollbar {
  height: 8px;
}

.board::-webkit-scrollbar-track {
  background: var(--scrollbar-track);
  border-radius: 4px;
}

.board::-webkit-scrollbar-thumb {
  background: var(--scrollbar-thumb);
  border-radius: 4px;
}

.board::-webkit-scrollbar-thumb:hover {
  background: var(--scrollbar-thumb-hover);
}
.column { 
  background: var(--bg-secondary); 
  border: 1px solid var(--border-color); 
  border-radius: 8px; 
  display: flex; 
  flex-direction: column; 
  min-height: 70vh;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}
.column h2 { 
  margin: 0; 
  padding: 10px 12px; 
  font-size: 14px; 
  border-bottom: 1px solid var(--border-color); 
  color: var(--text-primary);
  transition: border-color 0.3s ease, color 0.3s ease;
}
.column-body { padding: 10px; display: flex; flex-direction: column; gap: 8px; }
.card { 
  background: var(--card-bg); 
  border: 1px solid var(--border-color); 
  border-radius: 8px; 
  padding: 10px;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}
.card-title { font-size: 13px; margin: 0 0 6px 0; color: var(--text-primary); }
.meta { font-size: 11px; color: var(--text-secondary); display: flex; flex-wrap: wrap; gap: 8px; }
.badge { 
  display: inline-block; 
  padding: 2px 6px; 
  border-radius: 999px; 
  font-size: 10px; 
  background: var(--bg-tertiary); 
  border: 1px solid var(--border-color); 
  color: var(--text-secondary);
  transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

/* Priority coloring */
.priority-immediate { border-color: var(--priority-immediate); box-shadow: inset 0 0 0 1px var(--priority-immediate); }
.priority-high { border-color: var(--priority-high); box-shadow: inset 0 0 0 1px var(--priority-high); }
.priority-normal { border-color: var(--priority-normal); box-shadow: inset 0 0 0 1px var(--priority-normal); }
.priority-low { border-color: var(--priority-low); box-shadow: inset 0 0 0 1px var(--priority-low); }

/* Overdue styling */
.overdue { position: relative; }
.overdue::after { content: ""; position: absolute; inset: 0; pointer-events: none; border: 1px dashed var(--overdue-color); border-radius: 8px; }
.badge-overdue { 
  color: var(--overdue-color); 
  border-color: var(--overdue-color); 
  background: var(--bg-tertiary);
}
.badge-priority { color: var(--text-primary); }
.badge-priority.immediate { 
  background: var(--bg-tertiary); 
  border-color: var(--priority-immediate); 
  color: var(--priority-immediate); 
}
.badge-priority.high { 
  background: var(--bg-tertiary); 
  border-color: var(--priority-high); 
  color: var(--priority-high); 
}
.badge-priority.normal { 
  background: var(--bg-tertiary); 
  border-color: var(--priority-normal); 
  color: var(--priority-normal); 
}
.badge-priority.low { 
  background: var(--bg-tertiary); 
  border-color: var(--priority-low); 
  color: var(--priority-low); 
}

/* Bold assignee styling */
.assignee-bold { font-weight: bold; color: var(--assignee-highlight); }

/* Bold QA styling */
.qa-bold { font-weight: bold; color: var(--qa-highlight); }

/* Bold QA styling */
.reporter-bold { font-weight: bold; color: var(--reporter-highlight); }

.env-bold { font-weight: bold; color: var(--env-highlight); }


/* Task type badge styling */
.badge-type {
  color: white;
  font-weight: 600;
}

/* Override general badge background for task type badges */
.badge.badge-type {
  background: inherit !important;
  border-color: inherit !important;
  color: inherit !important;
}

/* Task type specific colors - Maximum specificity to override all conflicts */
.badge.badge-type.bug {
  background: #f44336 !important;
  border-color: #f44336 !important;
  color: white !important;
}

.badge.badge-type.epic {
  background: #7C4DFF !important;
  border-color: #7C4DFF !important;
  color: white !important;
}

.badge.badge-type.story {
  background: #2196F3 !important;
  border-color: #2196F3 !important;
  color: white !important;
}

.badge.badge-type.task {
  background: #26A69A !important;
  border-color: #26A69A !important;
  color: white !important;
}

.badge.badge-type.sub-task {
  background: #A5D6A7 !important;
  border-color: #A5D6A7 !important;
  color: #2E7D32 !important;
}

.badge.badge-type.peak {
  background: var(--priority-high) !important;
  border-color: var(--priority-high) !important;
  color: white !important;
}

.badge.badge-type.default {
  background: var(--priority-normal) !important;
  border-color: var(--priority-normal) !important;
  color: white !important;
}

/* Additional specificity rules to ensure colors are applied */
span.badge.badge-type.bug,
span.badge.badge-type.epic,
span.badge.badge-type.story,
span.badge.badge-type.task,
span.badge.badge-type.sub-task,
span.badge.badge-type.peak,
span.badge.badge-type.default {
  background: inherit !important;
  border-color: inherit !important;
  color: inherit !important;
}

/* Specific task type color overrides */
span.badge.badge-type.bug {
  background: #f44336 !important;
  border-color: #f44336 !important;
  color: white !important;
}

span.badge.badge-type.epic {
  background: #7C4DFF !important;
  border-color: #7C4DFF !important;
  color: white !important;
}

span.badge.badge-type.story {
  background: #2196F3 !important;
  border-color: #2196F3 !important;
  color: white !important;
}

span.badge.badge-type.task {
  background: #26A69A !important;
  border-color: #26A69A !important;
  color: white !important;
}

span.badge.badge-type.sub-task {
  background: #A5D6A7 !important;
  border-color: #A5D6A7 !important;
  color: #2E7D32 !important;
}

span.badge.badge-type.peak {
  background: var(--priority-high) !important;
  border-color: var(--priority-high) !important;
  color: white !important;
}

span.badge.badge-type.default {
  background: var(--priority-normal) !important;
  border-color: var(--priority-normal) !important;
  color: white !important;
}

/* Team badge styling */
.badge.team-badge {
  margin-left: 6px;
}

.badge.team-badge:first-child {
  margin-left: 0;
}

/* Task tree specific styling */
.task-tree-container {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.4;
  color: var(--text-primary);
}

.task-node {
  margin: 8px 0;
  padding: 12px;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  background: var(--card-bg);
  position: relative;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.task-node:hover {
  background: var(--bg-secondary);
  border-color: var(--accent-color);
}

.task-node[data-level="0"] {
  margin-left: 0;
  border-left: 4px solid var(--accent-color);
}

.task-node[data-level="1"] { 
  margin-left: 20px; 
  border-left: 4px solid #28a745;
}

.task-node[data-level="2"] { 
  margin-left: 40px; 
  border-left: 4px solid #ffc107;
}

.task-node[data-level="3"] { 
  margin-left: 60px; 
  border-left: 4px solid #dc3545;
}

.task-node[data-level="4"] { 
  margin-left: 80px; 
  border-left: 4px solid #6f42c1;
}

.task-node[data-level="5"] { 
  margin-left: 100px; 
  border-left: 4px solid #20c997;
}

.task-link {
  color: inherit;
  text-decoration: none;
}

.task-link:hover {
  text-decoration: underline;
}

.task-meta-left {
  text-align: left;
}

.task-tags {
  margin-top: 6px;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.task-children {
  display: block;
  margin-left: 20px;
  border-left: 2px solid var(--border-color);
  padding-left: 16px;
}

.task-separator {
  height: 2px;
  background: var(--border-color);
  margin: 20px 0;
}

.children-count {
  font-size: 12px;
  color: var(--accent-color);
  background: var(--bg-tertiary);
  padding: 2px 8px;
  border-radius: 12px;
  display: inline-block;
  margin-top: 4px;
  border: 1px solid var(--border-color);
}

.expand-btn {
  background: var(--button-bg);
  color: white;
  border: none;
  padding: 4px 8px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 10px;
  font-weight: bold;
  margin-left: 8px;
  transition: background-color 0.3s ease;
}

.expand-btn:hover {
  background: var(--accent-hover);
}

.badge-spaced {
  margin-left: 6px;
}

/* Hamburger button styling */
.hamburger-btn {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  width: 24px;
  height: 24px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 10;
}

.hamburger-btn span {
  width: 100%;
  height: 2px;
  background: var(--text-primary);
  border-radius: 1px;
  transition: all 0.3s linear;
  position: relative;
  transform-origin: 1px;
}

.hamburger-btn:hover span {
  background: var(--text-secondary);
}

/* Column configuration modal */
.column-config-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--modal-overlay);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.column-config-content {
  background: var(--modal-bg);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  width: 90%;
  max-width: 400px;
  max-height: 80vh;
  overflow-y: auto;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.column-config-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-color);
}

.column-config-header h3 {
  margin: 0;
  color: var(--text-primary);
  font-size: 16px;
}

.close-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 24px;
  cursor: pointer;
  padding: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.3s ease;
}

.close-btn:hover {
  color: var(--text-primary);
}

.column-config-body {
  padding: 20px;
}

.column-toggles {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.column-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  color: var(--text-primary);
  font-size: 14px;
  transition: color 0.3s ease;
}

.column-toggle input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--accent-color);
  cursor: pointer;
}

.column-toggle:hover {
  color: var(--text-secondary);
}

/* Hidden column styling */
.column.hidden {
  display: none;
}

/* Theme toggle button */
.theme-toggle {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 6px 8px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  min-width: 32px;
  height: 32px;
}

.theme-toggle:hover {
  background: var(--bg-secondary);
  border-color: var(--accent-color);
}

.theme-icon {
  transition: transform 0.3s ease;
}

.theme-toggle:hover .theme-icon {
  transform: scale(1.1);
}

/* View toggle button */
.view-toggle {
  background: var(--button-bg);
  color: white;
  border: 0;
  padding: 8px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  transition: background-color 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

.view-toggle:hover {
  background: var(--accent-hover);
}

/* Enhanced filter styling for all filters */
.filter-container {
  position: relative;
  display: block;
  width: 100%;
}

.filter-search {
  background: var(--input-bg);
  border: 2px solid var(--border-color);
  color: var(--text-primary);
  font-weight: 500;
  transition: all 0.3s ease;
  padding: 8px 12px;
  border-radius: 6px;
  width: 100%;
  font-size: 12px;
  height: 36px;
  box-sizing: border-box;
}

.filter-search:focus {
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
  outline: none;
}

.filter-search::placeholder {
  color: var(--text-muted);
  font-style: italic;
}

.filter-dropdown {
  background: var(--card-bg);
  border: 2px solid var(--border-color);
  border-radius: 8px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  max-height: 300px;
  min-width: 280px;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 1000;
  display: none;
}

.filter-dropdown .dropdown-item {
  padding: 12px 16px;
  font-size: 14px;
  border-bottom: 1px solid var(--border-color);
  transition: all 0.2s ease;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
}

.filter-dropdown .dropdown-item:hover {
  background: var(--bg-secondary);
  transform: translateX(4px);
}

.filter-dropdown .dropdown-item:last-child {
  border-bottom: none;
}

.filter-dropdown .dropdown-item.all-option {
  background: var(--bg-tertiary);
  font-weight: 700;
  font-size: 15px;
  border-bottom: 2px solid var(--border-color);
}

.filter-dropdown .dropdown-item.all-option:hover {
  background: var(--accent-color);
  color: white;
  transform: translateX(4px);
}

.filter-dropdown .dropdown-item input[type="checkbox"] {
  margin: 0;
}

/* Filter label styling */
.filter-label {
  font-weight: 600;
  color: var(--text-primary);
  transition: color 0.3s ease;
}

/* Specific filter styling */
#teamSearch, #assigneeSearch, #reporterSearch, #typeSearch, #rootTaskSearch {
  background: var(--input-bg);
  border: 2px solid var(--border-color);
  color: var(--text-primary);
  font-weight: 500;
  transition: all 0.3s ease;
  padding: 8px 12px;
  border-radius: 6px;
  width: 200px;
}

#teamSearch:focus, #assigneeSearch:focus, #reporterSearch:focus, #typeSearch:focus, #rootTaskSearch:focus {
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
  outline: none;
}

#teamFilter, #assigneeFilter, #reporterFilter, #typeFilter, #rootTaskFilter {
  background: var(--card-bg);
  border: 2px solid var(--border-color);
  border-radius: 8px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  max-height: 300px;
  min-width: 280px;
}

#teamFilter .dropdown-item, #assigneeFilter .dropdown-item, #reporterFilter .dropdown-item, #typeFilter .dropdown-item, #rootIdFilter .dropdown-item, #rootTaskFilter .dropdown-item {
  padding: 12px 16px;
  font-size: 14px;
  border-bottom: 1px solid var(--border-color);
  transition: all 0.2s ease;
}

#teamFilter .dropdown-item:hover, #assigneeFilter .dropdown-item:hover, #reporterFilter .dropdown-item:hover, #typeFilter .dropdown-item:hover, #rootIdFilter .dropdown-item:hover, #rootTaskFilter .dropdown-item:hover {
  background: var(--bg-secondary);
  transform: translateX(4px);
}

#teamFilter .dropdown-item.all-option, #assigneeFilter .dropdown-item.all-option, #reporterFilter .dropdown-item.all-option, #typeFilter .dropdown-item.all-option, #rootIdFilter .dropdown-item.all-option, #rootTaskFilter .dropdown-item.all-option {
  background: var(--bg-tertiary);
  font-weight: 700;
  font-size: 15px;
  border-bottom: 2px solid var(--border-color);
}

#teamFilter .dropdown-item.all-option:hover, #assigneeFilter .dropdown-item.all-option:hover, #reporterFilter .dropdown-item.all-option:hover, #typeFilter .dropdown-item.all-option:hover, #rootIdFilter .dropdown-item.all-option:hover, #rootTaskFilter .dropdown-item.all-option:hover {
  background: var(--accent-color);
  color: white;
  transform: translateX(4px);
}

/* Text utility classes */
.filter-label {
  color: var(--text-secondary);
  transition: color 0.3s ease;
}

.text-secondary {
  color: var(--text-secondary);
  transition: color 0.3s ease;
}

.text-muted {
  color: var(--text-muted);
  transition: color 0.3s ease;
}

@media (max-width: 1920px) { 
  .board { 
    grid-template-columns: repeat(8, 260px); 
  } 
}
@media (max-width: 1100px) { 
  .board { 
    grid-template-columns: repeat(8, 200px); 
  } 
}
@media (max-width: 720px) { 
  .board { 
    grid-template-columns: repeat(8, 180px); 
  } 
}

/* Multi-select filter styling */
.filter-label input[type="checkbox"] {
  margin-right: 6px;
}

/* Custom dropdown styling */
.custom-dropdown {
  background: var(--dropdown-bg, #ffffff);
  border: 1px solid var(--dropdown-border, #d1d5db);
  border-radius: 6px;
  max-height: 200px;
  overflow-y: auto;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.custom-dropdown .dropdown-item {
  padding: 8px 12px;
  cursor: pointer;
  border-bottom: 1px solid var(--dropdown-item-border, #f3f4f6);
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--dropdown-text, #374151);
  transition: background-color 0.2s ease;
}

.custom-dropdown .dropdown-item:last-child {
  border-bottom: none;
}

.custom-dropdown .dropdown-item:hover {
  background-color: var(--dropdown-hover, #f9fafb);
}

.custom-dropdown .dropdown-item.selected {
  background-color: var(--dropdown-selected, #dbeafe);
  font-weight: 500;
  color: var(--dropdown-selected-text, #1e40af);
}

.custom-dropdown .dropdown-item.all-option {
  font-weight: bold;
  border-bottom: 1px solid var(--dropdown-separator, #e5e7eb);
  margin-bottom: 2px;
  background-color: var(--dropdown-all-bg, #f8fafc);
}

/* Dark mode support */
[data-theme="dark"] .custom-dropdown {
  --dropdown-bg: #1f2937;
  --dropdown-border: #374151;
  --dropdown-item-border: #374151;
  --dropdown-text: #f9fafb;
  --dropdown-hover: #374151;
  --dropdown-selected: #1e3a8a;
  --dropdown-selected-text: #93c5fd;
  --dropdown-separator: #4b5563;
  --dropdown-all-bg: #111827;
}

/* Fallback for systems without data-theme attribute */
@media (prefers-color-scheme: dark) {
  .custom-dropdown {
    --dropdown-bg: #1f2937;
    --dropdown-border: #374151;
    --dropdown-item-border: #374151;
    --dropdown-text: #f9fafb;
    --dropdown-hover: #374151;
    --dropdown-selected: #1e3a8a;
    --dropdown-selected-text: #93c5fd;
    --dropdown-separator: #4b5563;
    --dropdown-all-bg: #111827;
  }
}

/* Search input styling for multi-select */
input[placeholder*="selected"] {
  background-color: #f0f9ff;
  border-color: #0ea5e9;
}

input[placeholder*="selected"]:focus {
  background-color: #e0f2fe;
  border-color: #0284c7;
  box-shadow: 0 0 0 2px rgba(14, 165, 233, 0.1);
}

/* ACK Button Styles */
.ack-button {
  margin-left: 8px !important;
  padding: 2px 6px !important;
  font-size: 10px !important;
  background: #3b82f6 !important;
  color: white !important;
  border: none !important;
  border-radius: 3px !important;
  cursor: pointer !important;
  font-weight: bold !important;
  transition: all 0.2s ease !important;
  display: inline-block !important;
  line-height: 1.2 !important;
  min-width: 30px !important;
  text-align: center !important;
}

.ack-button:hover {
  background: #2563eb !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 2px 4px rgba(59, 130, 246, 0.3) !important;
}

.ack-button:active {
    transform: translateY(0) !important;
    background: #1d4ed8 !important;
}

/* ACK All button styling */
#ackAllBtn {
    background: #dc2626 !important;
    color: white !important;
    border: none !important;
    padding: 6px 12px !important;
    border-radius: 4px !important;
    font-size: 12px !important;
    font-weight: bold !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
}

#ackAllBtn:hover {
    background: #b91c1c !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 2px 4px rgba(220, 38, 38, 0.3) !important;
}

#ackAllBtn:active {
    transform: translateY(0) !important;
    background: #991b1b !important;
}

/* Dark theme ACK All button */
[data-theme="dark"] #ackAllBtn {
    background: #dc2626 !important;
    color: white !important;
}

[data-theme="dark"] #ackAllBtn:hover {
    background: #b91c1c !important;
}

/* Light theme ACK All button */
[data-theme="light"] #ackAllBtn {
    background: #dc2626 !important;
    color: white !important;
}

[data-theme="light"] #ackAllBtn:hover {
    background: #b91c1c !important;
}

/* Dark theme ACK button */
[data-theme="dark"] .ack-button {
  background: #3b82f6 !important;
  color: white !important;
}

[data-theme="dark"] .ack-button:hover {
  background: #2563eb !important;
}

/* Light theme ACK button */
[data-theme="light"] .ack-button {
  background: #2563eb !important;
  color: white !important;
}

[data-theme="light"] .ack-button:hover {
  background: #1d4ed8 !important;
}

/* Loading Overlay Styles */
.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--modal-overlay);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  backdrop-filter: blur(4px);
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.loading-overlay.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loading-container {
  background: var(--modal-bg);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 40px;
  text-align: center;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  min-width: 300px;
  max-width: 400px;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.loading-spinner {
  width: 50px;
  height: 50px;
  border: 4px solid var(--border-color);
  border-top: 4px solid var(--accent-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 20px;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.loading-text {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 20px;
  transition: color 0.3s ease;
}

.loading-progress {
  width: 100%;
  height: 4px;
  background: var(--bg-tertiary);
  border-radius: 2px;
  overflow: hidden;
  transition: background-color 0.3s ease;
}

.loading-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-color), var(--accent-hover));
  border-radius: 2px;
  animation: loading-progress 2s ease-in-out infinite;
  width: 0%;
}

@keyframes loading-progress {
  0% {
    width: 0%;
    transform: translateX(-100%);
  }
  50% {
    width: 70%;
    transform: translateX(0%);
  }
  100% {
    width: 100%;
    transform: translateX(100%);
  }
}

/* Loading states for different phases */
.loading-overlay.authenticating .loading-text::after {
  content: "Authenticating...";
}

.loading-overlay.fetching .loading-text::after {
  content: "Fetching data...";
}

.loading-overlay.rendering .loading-text::after {
  content: "Rendering board...";
}

.loading-overlay.processing .loading-text::after {
  content: "Processing changes...";
}

/* Pulse animation for loading text */
.loading-text {
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}

/* Enhanced spinner with multiple rings */
.loading-spinner::before {
  content: '';
  position: absolute;
  top: -8px;
  left: -8px;
  right: -8px;
  bottom: -8px;
  border: 2px solid transparent;
  border-top: 2px solid var(--accent-hover);
  border-radius: 50%;
  animation: spin 1.5s linear infinite reverse;
}

/* Loading overlay theme support */
[data-theme="light"] .loading-overlay {
  background: rgba(255, 255, 255, 0.9);
}

[data-theme="dark"] .loading-overlay {
  background: rgba(0, 0, 0, 0.8);
}

/* Responsive loading overlay */
@media (max-width: 768px) {
  .loading-container {
    margin: 20px;
    padding: 30px 20px;
    min-width: auto;
  }
  
  .loading-spinner {
    width: 40px;
    height: 40px;
    border-width: 3px;
  }
  
  .loading-text {
    font-size: 16px;
  }
}

