:root {
  /* Colors */
  --bg-primary: #080612;
  --bg-secondary: #0f0d22;
  --bg-tertiary: #171434;
  --bg-glass: rgba(15, 13, 34, 0.65);
  --bg-glass-hover: rgba(23, 20, 52, 0.8);
  
  --border-glass: rgba(139, 92, 246, 0.18);
  --border-glass-bright: rgba(167, 139, 250, 0.4);
  
  --text-primary: #f3f1fe;
  --text-secondary: #a7a2c4;
  --text-muted: #6e698e;
  
  --purple-main: #8b5cf6;
  --purple-glow: rgba(139, 92, 246, 0.5);
  --purple-bright: #a78bfa;
  --purple-dark: #4c1d95;
  
  /* Priority Colors */
  --priority-low: #10b981;
  --priority-medium: #3b82f6;
  --priority-high: #f59e0b;
  --priority-critical: #ef4444;
  
  /* Category Colors */
  --cat-script: #06b6d4;
  --cat-bug: #ef4444;
  --cat-mapping: #a855f7;
  --cat-vehicle: #eab308;
  --cat-clothing: #10b981;
  --cat-staff: #ec4899;
  --cat-other: #64748b;

  --font-sans: var(--font-geist-sans), system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: var(--font-geist-mono), monospace;
  
  --shadow-neon: 0 0 15px rgba(139, 92, 246, 0.25);
  --shadow-neon-strong: 0 0 25px rgba(139, 92, 246, 0.4);
  --shadow-critical: 0 0 15px rgba(239, 68, 68, 0.4);
  
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
  
  --transition-fast: 0.15s ease;
  --transition-normal: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg-primary);
  background-image: 
    radial-gradient(at 0% 0%, rgba(76, 29, 149, 0.22) 0px, transparent 50%),
    radial-gradient(at 100% 0%, rgba(139, 92, 246, 0.15) 0px, transparent 50%),
    radial-gradient(at 50% 100%, rgba(15, 13, 34, 0.9) 0px, transparent 100%);
  background-attachment: fixed;
  color: var(--text-primary);
  font-family: var(--font-sans);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.5;
}

/* Scrollbar Customization */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: var(--bg-tertiary);
  border-radius: 4px;
  border: 1px solid var(--border-glass);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--purple-main);
}

/* Glassmorphism utility */
.glass-panel {
  background: var(--bg-glass);
  backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  transition: border-color var(--transition-normal), box-shadow var(--transition-normal);
}

.glass-panel:hover {
  border-color: var(--border-glass-bright);
}

/* Neon buttons */
.btn-neon {
  background: var(--purple-main);
  color: #fff;
  border: none;
  padding: 0.6rem 1.2rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: var(--shadow-neon);
  transition: transform var(--transition-fast), background var(--transition-fast), box-shadow var(--transition-fast);
  text-decoration: none;
  font-size: 0.9rem;
}

.btn-neon:hover {
  background: var(--purple-bright);
  transform: translateY(-2px);
  box-shadow: var(--shadow-neon-strong);
}

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

.btn-secondary {
  background: var(--bg-tertiary);
  color: var(--text-primary);
  border: 1px solid var(--border-glass);
  padding: 0.6rem 1.2rem;
  border-radius: var(--radius-sm);
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: background var(--transition-fast), border-color var(--transition-fast);
}

.btn-secondary:hover {
  background: rgba(139, 92, 246, 0.1);
  border-color: var(--purple-main);
}

.btn-danger {
  background: rgba(239, 68, 68, 0.15);
  color: #fca5a5;
  border: 1px solid rgba(239, 68, 68, 0.3);
  padding: 0.6rem 1.2rem;
  border-radius: var(--radius-sm);
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: background var(--transition-fast), border-color var(--transition-fast);
}

.btn-danger:hover {
  background: rgba(239, 68, 68, 0.3);
  border-color: var(--priority-critical);
}

/* Inputs */
.input-field {
  background: rgba(8, 6, 18, 0.6);
  border: 1px solid var(--border-glass);
  color: var(--text-primary);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  outline: none;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  width: 100%;
}

.input-field:focus {
  border-color: var(--purple-main);
  box-shadow: 0 0 10px rgba(139, 92, 246, 0.2);
}

.label-text {
  display: block;
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 0.4rem;
  font-weight: 500;
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.6rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: 1px solid transparent;
}

.badge-low {
  background: rgba(16, 185, 129, 0.15);
  color: #a7f3d0;
  border-color: rgba(16, 185, 129, 0.3);
}

.badge-medium {
  background: rgba(59, 130, 246, 0.15);
  color: #bfdbfe;
  border-color: rgba(59, 130, 246, 0.3);
}

.badge-high {
  background: rgba(245, 158, 11, 0.15);
  color: #fef3c7;
  border-color: rgba(245, 158, 11, 0.3);
}

.badge-critical {
  background: rgba(239, 68, 68, 0.2);
  color: #fee2e2;
  border-color: rgba(239, 68, 68, 0.4);
  animation: pulse-border 2s infinite;
}

/* Category Indicators */
.tag-category {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  border-left: 3px solid;
}

.tag-script { border-left-color: var(--cat-script); background: rgba(6, 182, 212, 0.1); color: #cffafe; }
.tag-bug { border-left-color: var(--cat-bug); background: rgba(239, 68, 68, 0.1); color: #fee2e2; }
.tag-mapping { border-left-color: var(--cat-mapping); background: rgba(168, 85, 247, 0.1); color: #f3e8ff; }
.tag-vehicle { border-left-color: var(--cat-vehicle); background: rgba(234, 179, 8, 0.1); color: #fef9c3; }
.tag-clothing { border-left-color: var(--cat-clothing); background: rgba(16, 185, 129, 0.1); color: #d1fae5; }
.tag-staff { border-left-color: var(--cat-staff); background: rgba(236, 72, 153, 0.1); color: #fce7f3; }
.tag-other { border-left-color: var(--cat-other); background: rgba(100, 116, 139, 0.1); color: #f1f5f9; }

/* User avatar dot */
.avatar-dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--purple-dark);
  color: var(--purple-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.75rem;
  border: 1px solid var(--border-glass-bright);
  text-transform: uppercase;
}

.avatar-dot.PLAYER { background: #3b82f6; color: #fff; }
.avatar-dot.STAFF { background: #ec4899; color: #fff; }
.avatar-dot.DEVELOPER { background: #10b981; color: #fff; }
.avatar-dot.OWNER { background: #8b5cf6; color: #fff; box-shadow: 0 0 8px var(--purple-glow); }

/* Keyframe animations */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

@keyframes pulse-border {
  0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4); }
  70% { box-shadow: 0 0 0 8px rgba(239, 68, 68, 0); }
  100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

/* Modal styling */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(4, 3, 9, 0.85);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  animation: fadeIn var(--transition-fast) forwards;
}

.modal-content {
  width: 100%;
  max-width: 650px;
  max-height: 90vh;
  overflow-y: auto;
  animation: modalEntry 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes modalEntry {
  from {
    opacity: 0;
    transform: scale(0.95) translateY(15px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* Board specific layout overrides */
.board-container {
  display: flex;
  gap: 1.25rem;
  overflow-x: auto;
  padding: 0.5rem 0.2rem 1.5rem;
  min-height: calc(100vh - 200px);
  align-items: flex-start;
}

/* Premium Card hover effects */
.trello-card {
  transition: transform var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast), background-color var(--transition-fast) !important;
}

.trello-card:hover {
  transform: translateY(-4px) !important;
  box-shadow: 0 10px 25px rgba(139, 92, 246, 0.25) !important;
  background-color: rgba(30, 27, 75, 0.6) !important;
  border-color: var(--purple-bright) !important;
}

/* Thumbnail image zoom on hover */
.attachmentThumbnailWrapper img {
  transition: transform var(--transition-normal);
}

.attachmentThumbnailWrapper:hover img {
  transform: scale(1.1);
}

.attachmentThumbnailWrapper:hover div {
  opacity: 1 !important;
}

/* Custom glowing borders on input focus */
.input-field {
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.input-field:focus {
  border-color: var(--purple-main);
  box-shadow: 0 0 12px rgba(139, 92, 246, 0.35);
}

/* Staggered column entry animations on page load */
@keyframes columnSlideIn {
  from {
    opacity: 0;
    transform: translateY(25px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.board-container > .glass-panel {
  animation: columnSlideIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.board-container > .glass-panel:nth-child(1) { animation-delay: 0.05s; }
.board-container > .glass-panel:nth-child(2) { animation-delay: 0.12s; }
.board-container > .glass-panel:hover { } /* Fix parsing */
.board-container > .glass-panel:nth-child(3) { animation-delay: 0.19s; }
.board-container > .glass-panel:nth-child(4) { animation-delay: 0.26s; }
.board-container > .glass-panel:nth-child(5) { animation-delay: 0.33s; }


