/* Continuum Breach - Cyberpunk Theme Based on Mockup */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@100..900&display=swap');

:root {
  --radius: 0.625rem;
  /* Cyberpunk Dark Theme - Exact colors from mockup */
  --background: #0A0A0F;
  --foreground: #FFFFFF;
  --card: #1A1A2E;
  --card-foreground: #FFFFFF;
  --popover: #1A1A2E;
  --popover-foreground: #FFFFFF;
  --primary: #00FF41;
  --primary-foreground: #0A0A0F;
  --secondary: #39FF14;
  --secondary-foreground: #0A0A0F;
  --muted: #2A2A3E;
  --muted-foreground: #CCCCCC;
  --accent: #00FF41;
  --accent-foreground: #0A0A0F;
  --destructive: #FF4444;
  --border: #333344;
  --input: #2A2A3E;
  --ring: #00FF41;
  --chart-1: #00FF41;
  --chart-2: #39FF14;
  --chart-3: #66FF66;
  --chart-4: #00CC33;
  --chart-5: #00AA22;
  --sidebar: #1A1A2E;
  --sidebar-foreground: #FFFFFF;
  --sidebar-primary: #00FF41;
  --sidebar-primary-foreground: #0A0A0F;
  --sidebar-accent: #2A2A3E;
  --sidebar-accent-foreground: #FFFFFF;
  --sidebar-border: #333344;
  --sidebar-ring: #00FF41;
}

/* Enhanced Checkbox Styling - High Specificity Override */
html body input[type="checkbox"],
html body .checkbox,
html body input[type="checkbox"].checkbox,
html body input[type="checkbox"].checkbox-sm,
html body .note-card input[type="checkbox"],
html body .campaign-edit input[type="checkbox"],
html body form input[type="checkbox"] {
  appearance: none !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  width: 18px !important;
  height: 18px !important;
  min-width: 18px !important;
  min-height: 18px !important;
  border: 2px solid #00FF41 !important;
  border-radius: 3px !important;
  background: rgba(10, 10, 15, 0.8) !important;
  cursor: pointer !important;
  position: relative !important;
  transition: all 0.2s ease !important;
  box-shadow: 0 0 8px rgba(0, 255, 65, 0.3) !important;
  margin: 0 !important;
  padding: 0 !important;
  flex-shrink: 0 !important;
}

html body input[type="checkbox"]:hover,
html body .checkbox:hover,
html body input[type="checkbox"].checkbox:hover,
html body input[type="checkbox"].checkbox-sm:hover,
html body .note-card input[type="checkbox"]:hover,
html body .campaign-edit input[type="checkbox"]:hover,
html body form input[type="checkbox"]:hover {
  box-shadow: 0 0 12px rgba(0, 255, 65, 0.5) !important;
  border-color: #39FF14 !important;
  transform: none !important;
}

html body input[type="checkbox"]:checked,
html body .checkbox:checked,
html body input[type="checkbox"].checkbox:checked,
html body input[type="checkbox"].checkbox-sm:checked,
html body .note-card input[type="checkbox"]:checked,
html body .campaign-edit input[type="checkbox"]:checked,
html body form input[type="checkbox"]:checked {
  background: #00FF41 !important;
  background-color: #00FF41 !important;
  border-color: #00FF41 !important;
  box-shadow: 0 0 15px rgba(0, 255, 65, 0.6) !important;
}

html body input[type="checkbox"]:checked::after,
html body .checkbox:checked::after,
html body input[type="checkbox"].checkbox:checked::after,
html body input[type="checkbox"].checkbox-sm:checked::after,
html body .note-card input[type="checkbox"]:checked::after,
html body .campaign-edit input[type="checkbox"]:checked::after,
html body form input[type="checkbox"]:checked::after {
  content: "✓" !important;
  position: absolute !important;
  top: -2px !important;
  left: 2px !important;
  color: #0A0A0F !important;
  font-size: 14px !important;
  font-weight: bold !important;
  display: block !important;
  line-height: 1 !important;
}

html body input[type="checkbox"]:focus,
html body .checkbox:focus,
html body input[type="checkbox"].checkbox:focus,
html body input[type="checkbox"].checkbox-sm:focus,
html body .note-card input[type="checkbox"]:focus,
html body .campaign-edit input[type="checkbox"]:focus,
html body form input[type="checkbox"]:focus {
  outline: none !important;
  box-shadow: 0 0 15px rgba(0, 255, 65, 0.7) !important;
}

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

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
  color: var(--foreground);
  background-color: var(--background);
  line-height: 1.5;
  min-height: 100vh;
}

/* Custom Cyberpunk Styles */
.neon-glow {
  box-shadow: 0 0 20px rgba(0, 255, 65, 0.5), 0 0 40px rgba(0, 255, 65, 0.3), 0 0 60px rgba(0, 255, 65, 0.1);
}

.neon-text {
  color: var(--primary);
  text-shadow: 0 0 10px rgba(0, 255, 65, 0.8), 0 0 20px rgba(0, 255, 65, 0.6), 0 0 30px rgba(0, 255, 65, 0.4);
}

.cyber-border {
  border: 2px solid transparent;
  background: linear-gradient(45deg, #00FF41, #39FF14) border-box;
  -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}

.energy-pulse {
  animation: energyPulse 2s ease-in-out infinite alternate;
}

.glitch-effect {
  position: relative;
  color: var(--primary);
  text-shadow: 
    0 0 10px rgba(0, 255, 65, 0.8),
    0 0 20px rgba(0, 255, 65, 0.6),
    0 0 30px rgba(0, 255, 65, 0.4);
}

.glitch-effect::before,
.glitch-effect::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.glitch-effect::before {
  animation: glitch-1 0.5s infinite;
  color: #00FF41;
  z-index: -1;
  text-shadow: none;
}

.glitch-effect::after {
  animation: glitch-2 0.5s infinite;
  color: #FF00FF;
  z-index: -2;
  text-shadow: none;
}

/* Layered hero text effect like in mockup */
.hero-layered-text {
  position: relative;
  color: #00FF41;
  text-shadow: 
    0 0 10px rgba(0, 255, 65, 0.8),
    0 0 20px rgba(0, 255, 65, 0.6),
    0 0 30px rgba(0, 255, 65, 0.4),
    0 0 40px rgba(0, 255, 65, 0.2);
}

.hero-layered-text::before {
  content: attr(data-text);
  position: absolute;
  top: 4px;
  left: 4px;
  color: rgba(128, 128, 128, 0.6);
  z-index: -1;
  text-shadow: none;
}

.circuit-pattern {
  background-image: 
    linear-gradient(90deg, rgba(0, 255, 65, 0.1) 1px, transparent 1px),
    linear-gradient(rgba(0, 255, 65, 0.1) 1px, transparent 1px),
    radial-gradient(circle at 25% 25%, rgba(0, 255, 65, 0.1) 2px, transparent 2px),
    radial-gradient(circle at 75% 75%, rgba(0, 255, 65, 0.05) 1px, transparent 1px);
  background-size: 20px 20px, 20px 20px, 40px 40px, 60px 60px;
  background-position: 0 0, 0 0, 0 0, 30px 30px;
}

.hero-gradient {
  background: linear-gradient(135deg, #0A0A0F 0%, #1A1A2E 50%, #0A0A0F 100%);
}

.command-terminal {
  background: #000;
  border: 2px solid #00FF41;
  font-family: 'Courier New', monospace;
  color: #00FF41;
  box-shadow: 
    0 0 20px rgba(0, 255, 65, 0.5),
    inset 0 0 20px rgba(0, 255, 65, 0.1);
  position: relative;
}

.command-terminal::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg, #00FF41, #39FF14, #00FF41, #39FF14);
  border-radius: inherit;
  z-index: -1;
  animation: borderGlow 2s ease-in-out infinite alternate;
}

@keyframes borderGlow {
  0% {
    opacity: 0.5;
  }
  100% {
    opacity: 1;
  }
}

.terminal-prompt {
  color: #00FF41;
}

.terminal-command {
  color: #39FF14;
}

.terminal-description {
  color: #888;
}

/* Animations */
@keyframes energyPulse {
  0% {
    box-shadow: 0 0 20px rgba(0, 255, 65, 0.5);
  }
  100% {
    box-shadow: 0 0 40px rgba(0, 255, 65, 0.8), 0 0 60px rgba(0, 255, 65, 0.6);
  }
}

@keyframes glitch-1 {
  0%, 100% {
    transform: translate(0);
  }
  20% {
    transform: translate(-2px, 2px);
  }
  40% {
    transform: translate(-2px, -2px);
  }
  60% {
    transform: translate(2px, 2px);
  }
  80% {
    transform: translate(2px, -2px);
  }
}

@keyframes glitch-2 {
  0%, 100% {
    transform: translate(0);
  }
  20% {
    transform: translate(2px, -2px);
  }
  40% {
    transform: translate(2px, 2px);
  }
  60% {
    transform: translate(-2px, -2px);
  }
  80% {
    transform: translate(-2px, 2px);
  }
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #1A1A2E;
}

::-webkit-scrollbar-thumb {
  background: #00FF41;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #39FF14;
}

/* Text selection */
::selection {
  background: rgba(0, 255, 65, 0.3);
  color: var(--foreground);
  text-shadow: 0 0 8px rgba(0, 255, 65, 0.8);
}

::-moz-selection {
  background: rgba(0, 255, 65, 0.3);
  color: var(--foreground);
  text-shadow: 0 0 8px rgba(0, 255, 65, 0.8);
}

/* Utility Classes */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.flex {
  display: flex;
}

.flex-col {
  flex-direction: column;
}

.items-center {
  align-items: center;
}

.justify-center {
  justify-content: center;
}

.justify-between {
  justify-content: space-between;
}

.text-center {
  text-align: center;
}

.space-x-3 > * + * {
  margin-left: 0.75rem;
}

.space-x-4 > * + * {
  margin-left: 1rem;
}

.space-x-6 > * + * {
  margin-left: 1.5rem;
}

.space-y-2 > * + * {
  margin-top: 0.5rem;
}

.space-y-4 > * + * {
  margin-top: 1rem;
}

.space-y-6 > * + * {
  margin-top: 1.5rem;
}

.space-y-8 > * + * {
  margin-top: 2rem;
}

.gap-4 {
  gap: 1rem;
}

.gap-6 {
  gap: 1.5rem;
}

.gap-8 {
  gap: 2rem;
}

.gap-12 {
  gap: 3rem;
}

/* Grid */
.grid {
  display: grid;
}

.grid-cols-1 {
  grid-template-columns: repeat(1, minmax(0, 1fr));
}

.grid-cols-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-cols-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-cols-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (min-width: 768px) {
  .md\\:grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .md\\:grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .md\\:flex-row {
    flex-direction: row;
  }
  .md\\:text-5xl {
    font-size: 3rem;
    line-height: 1;
  }
  .md\\:text-8xl {
    font-size: 6rem;
    line-height: 1;
  }
}

@media (min-width: 1024px) {
  .lg\\:grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .lg\\:grid-cols-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* Sizing */
.w-4 { width: 1rem; }
.w-5 { width: 1.25rem; }
.w-8 { width: 2rem; }
.w-10 { width: 2.5rem; }
.w-12 { width: 3rem; }
.w-16 { width: 4rem; }
.w-32 { width: 8rem; }
.w-full { width: 100%; }

.h-4 { height: 1rem; }
.h-5 { height: 1.25rem; }
.h-8 { height: 2rem; }
.h-10 { height: 2.5rem; }
.h-12 { height: 3rem; }
.h-16 { height: 4rem; }
.h-32 { height: 8rem; }

.max-w-2xl { max-width: 42rem; }
.max-w-4xl { max-width: 56rem; }
.max-w-6xl { max-width: 72rem; }
.max-w-md { max-width: 28rem; }

.min-h-screen { min-height: 100vh; }

/* Spacing */
.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }

.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-8 { padding-left: 2rem; padding-right: 2rem; }
.px-12 { padding-left: 3rem; padding-right: 3rem; }

.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }
.py-16 { padding-top: 4rem; padding-bottom: 4rem; }
.py-20 { padding-top: 5rem; padding-bottom: 5rem; }

.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-12 { margin-bottom: 3rem; }
.mb-16 { margin-bottom: 4rem; }

.mt-8 { margin-top: 2rem; }
.mt-12 { margin-top: 3rem; }
.mt-16 { margin-top: 4rem; }

.mx-auto { margin-left: auto; margin-right: auto; }

/* Typography */
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-base { font-size: 1rem; line-height: 1.5rem; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.text-2xl { font-size: 1.5rem; line-height: 2rem; }
.text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
.text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
.text-5xl { font-size: 3rem; line-height: 1; }
.text-6xl { font-size: 3.75rem; line-height: 1; }
.text-8xl { font-size: 6rem; line-height: 1; }

.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }

.text-foreground { color: var(--foreground); }
.text-muted-foreground { color: var(--muted-foreground); }
.text-primary { color: var(--primary); }
.text-secondary { color: var(--secondary); }

/* Letter spacing */
.tracking-widest { letter-spacing: 0.1em; }

/* Position */
.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }

.top-0 { top: 0; }
.left-0 { left: 0; }
.right-0 { right: 0; }
.bottom-8 { bottom: 2rem; }

.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }

.z-10 { z-index: 10; }
.z-50 { z-index: 50; }

/* Background */
.bg-background { background-color: var(--background); }
.bg-card { background-color: var(--card); }
.bg-primary { background-color: var(--primary); }
.bg-black { background-color: #000; }
.bg-cover { background-size: cover; }
.bg-center { background-position: center; }
.bg-no-repeat { background-repeat: no-repeat; }

/* Background opacity variants */
.bg-background\/80 { background-color: rgba(10, 10, 15, 0.8); }
.bg-black\/80 { background-color: rgba(0, 0, 0, 0.8); }
.bg-primary\/20 { background-color: rgba(0, 255, 65, 0.2); }
.bg-card\/50 { background-color: rgba(26, 26, 46, 0.5); }

/* Border */
.border { border-width: 1px; }
.border-b { border-bottom-width: 1px; }
.border-border { border-color: var(--border); }
.border-primary { border-color: var(--primary); }

.rounded-lg { border-radius: var(--radius); }

/* Effects */
.backdrop-blur-md { backdrop-filter: blur(12px); }
.shadow-xl { box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04); }

.transition-all { transition: all 0.3s ease; }
.transition-colors { transition-property: color, background-color, border-color; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }

.duration-300 { transition-duration: 300ms; }
.duration-1000 { transition-duration: 1000ms; }

.opacity-0 { opacity: 0; }
.opacity-100 { opacity: 1; }

.translate-y-0 { transform: translateY(0); }
.translate-y-10 { transform: translateY(2.5rem); }
.-translate-x-1\/2 { transform: translateX(-50%); }
.transform { transform: none; }

.animate-bounce {
  animation: bounce 1s infinite;
}

@keyframes bounce {
  0%, 100% {
    transform: translateY(-25%);
    animation-timing-function: cubic-bezier(0.8, 0, 1, 1);
  }
  50% {
    transform: none;
    animation-timing-function: cubic-bezier(0, 0, 0.2, 1);
  }
}

/* Overflow */
.overflow-hidden { overflow: hidden; }

/* Display */
.hidden { display: none; }
.block { display: block; }
.inline-block { display: inline-block; }
.flex { display: flex; }
.inline-flex { display: inline-flex; }

/* Responsive Display Utilities */
@media (max-width: 639px) {
  .sm\\:hidden { display: none !important; }
}

@media (min-width: 640px) {
  .sm\\:block { display: block !important; }
  .sm\\:flex { display: flex !important; }
  .sm\\:inline-flex { display: inline-flex !important; }
  .sm\\:hidden { display: none !important; }
}

@media (max-width: 767px) {
  .md\\:hidden { display: none !important; }
}

@media (min-width: 768px) {
  .md\\:block { display: block !important; }
  .md\\:flex { display: flex !important; }
  .md\\:inline-flex { display: inline-flex !important; }
  .md\\:hidden { display: none !important; }
}

@media (max-width: 1023px) {
  .lg\\:hidden { display: none !important; }
}

@media (min-width: 1024px) {
  .lg\\:block { display: block !important; }
  .lg\\:flex { display: flex !important; }
  .lg\\:inline-flex { display: inline-flex !important; }
  .lg\\:hidden { display: none !important; }
}

/* Navigation */
.navbar {
  background-color: rgba(10, 10, 15, 0.8);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 500;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background-color: var(--card);
  color: var(--foreground);
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  white-space: nowrap;
}

.btn:hover {
  background-color: var(--muted);
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: var(--primary-foreground);
  border-color: var(--primary);
  font-weight: 600;
  box-shadow: 0 0 20px rgba(0, 255, 65, 0.3);
}

.btn-primary:hover {
  box-shadow: 0 0 30px rgba(0, 255, 65, 0.6), 0 4px 12px rgba(0, 0, 0, 0.4);
  transform: translateY(-2px);
  animation: energyPulse 1s ease-in-out infinite alternate;
}

.btn-outline {
  background-color: transparent;
  border-color: var(--primary);
  color: var(--primary);
}

.btn-outline:hover {
  background-color: rgba(0, 255, 65, 0.1);
  color: var(--primary);
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.125rem;
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

.btn-xs {
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
  min-height: 1.5rem;
}

.btn-ghost {
  background-color: transparent;
  border-color: transparent;
  color: var(--muted-foreground);
}

.btn-ghost:hover {
  background-color: var(--muted);
  border-color: var(--border);
  color: var(--foreground);
}

/* Form inputs */
.input-sm, .select-sm {
  padding: 0.25rem 0.5rem;
  font-size: 0.875rem;
  min-height: 2rem;
}

/* Cards */
.card {
  padding: 0.5rem 0.5rem 0.5rem 0.5rem;
  background: linear-gradient(145deg, var(--card) 0%, rgba(26, 26, 46, 0.8) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all 0.4s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--primary) 50%, transparent 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  border-color: var(--primary);
}

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

.card-header {
  padding: 1.5rem 1.5rem 1.5rem 1.5rem;
}

.card-content {
  padding: 1.5rem;
}

.card-title {
  font-size: 1.25rem;
  font-weight: 600;
  vertical-align: middle;
  margin-bottom: 0.5rem;
  padding-right: 1.5rem;
  color: var(--foreground);
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

/* Sidebar */
.sidebar {
  width: 14rem;
  background: linear-gradient(180deg, var(--sidebar) 0%, rgba(26, 26, 46, 0.9) 100%);
  border-right: 1px solid var(--sidebar-border);
  padding: 1.5rem;
  position: fixed;
  top: 4rem;
  left: 0;
  height: calc(100vh - 4rem);
  overflow-y: auto;
  z-index: 50;
  transition: all 0.3s ease;
}

.sidebar.collapsed {
  width: 4rem;
  padding: 1rem 0.5rem;
}

.sidebar.collapsed:hover {
  width: 14rem;
  padding: 1.5rem;
  box-shadow: 4px 0 16px rgba(0, 255, 65, 0.1);
}

.sidebar.collapsed .sidebar-section-title {
  display: none;
}

.sidebar.collapsed:hover .sidebar-section-title {
  display: flex;
}

.sidebar.collapsed .sidebar-link {
  justify-content: center;
  padding: 0.75rem;
}

.sidebar.collapsed:hover .sidebar-link {
  justify-content: flex-start;
  padding: 0.75rem 1rem;
  gap: 0.75rem;
}

.sidebar.collapsed .sidebar-link span {
  display: none;
}

.sidebar.collapsed:hover .sidebar-link span {
  display: inline;
}

.sidebar-nav {
  list-style: none;
}

.sidebar-section {
  margin-bottom: 2rem;
}

.sidebar-section-title {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted-foreground);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.75rem;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 1rem;
  color: var(--sidebar-foreground);
  border-radius: calc(var(--radius) - 4px);
  margin-bottom: 2px;
  transition: all 0.3s ease;
  text-decoration: none;
  font-weight: 500;
  position: relative;
  overflow: hidden;
}

.sidebar-link span {
  transition: opacity 0.3s ease;
}

.sidebar-link:hover {
  background-color: var(--sidebar-accent);
  color: var(--sidebar-accent-foreground);
}

.sidebar-link.active {
  background: linear-gradient(135deg, var(--sidebar-primary) 0%, var(--secondary) 100%);
  color: var(--sidebar-primary-foreground);
  box-shadow: 0 0 15px rgba(0, 255, 65, 0.3);
}

.sidebar-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* App Header */
.app-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 4rem;
  background: linear-gradient(90deg, var(--sidebar) 0%, rgba(26, 26, 46, 0.95) 100%);
  border-bottom: 1px solid var(--sidebar-border);
  backdrop-filter: blur(12px);
  z-index: 100;
  display: flex;
  align-items: center;
  padding: 0 1.5rem;
  gap: 1rem;
}

.app-header-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--sidebar-primary);
  text-decoration: none;
  font-size: 1.25rem;
  font-weight: 700;
  text-shadow: 0 0 10px var(--sidebar-primary);
}

.sidebar-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  background: rgba(0, 255, 65, 0.1);
  border: 1px solid var(--primary);
  border-radius: var(--radius);
  color: var(--primary);
  cursor: pointer;
  transition: all 0.3s ease;
}

/* Hide sidebar toggle on mobile */
@media (max-width: 1023px) {
  .app-header .sidebar-toggle {
    display: none !important;
  }
}

/* Show sidebar toggle on desktop */
@media (min-width: 1024px) {
  .app-header .sidebar-toggle {
    display: flex !important;
  }
}

.sidebar-toggle:hover {
  background: rgba(0, 255, 65, 0.2);
  box-shadow: 0 0 15px rgba(0, 255, 65, 0.3);
  transform: scale(1.05);
}

.sidebar-toggle svg {
  width: 1.25rem;
  height: 1.25rem;
}

/* Dashboard Content */
.dashboard-layout {
  display: flex;
  min-height: 100vh;
  background-color: var(--background);
  padding-top: 4rem;
}

.dashboard-content {
  flex: 1;
  margin-left: 14rem;
  padding: 2rem;
  background-color: var(--background);
  min-height: calc(100vh - 4rem);
  transition: margin-left 0.3s ease;
}

.dashboard-content.sidebar-collapsed {
  margin-left: 4rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    width: 16rem;
    z-index: 200;
    box-shadow: 4px 0 12px rgba(0, 0, 0, 0.3);
  }
  
  .sidebar.open {
    transform: translateX(0);
  }
  
  .sidebar.collapsed {
    width: 16rem;
    padding: 1.5rem;
  }
  
  .sidebar.collapsed .sidebar-section-title {
    display: block;
  }
  
  .sidebar.collapsed .sidebar-link {
    justify-content: flex-start;
    padding: 0.5rem 1rem;
  }
  
  .sidebar.collapsed .sidebar-link span {
    display: inline;
  }
  
  .dashboard-content {
    margin-left: 0;
  }
  
  .dashboard-content.sidebar-collapsed {
    margin-left: 0;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 1rem;
  }
  
  .text-6xl {
    font-size: 3rem;
  }
  
  .text-8xl {
    font-size: 4rem;
  }
  
  .dashboard-content {
    padding: 1rem;
  }
}

/* Alerts */
.alert {
  padding: 1rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  margin-bottom: 1rem;
}

.alert-success {
  background-color: rgba(0, 255, 65, 0.1);
  border-color: var(--primary);
  color: var(--primary);
}

.alert-error {
  background-color: rgba(255, 68, 68, 0.1);
  border-color: var(--destructive);
  color: var(--destructive);
}

.alert-info {
  background-color: rgba(23, 162, 184, 0.1);
  border-color: #17a2b8;
  color: #17a2b8;
}

/* Form Elements */
input, textarea, select {
  background-color: var(--input);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--foreground);
  padding: 0.75rem;
  font-size: 1rem;
  transition: all 0.3s ease;
  width: 100%;
  box-sizing: border-box;
}

input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(0, 255, 65, 0.2), 0 0 10px rgba(0, 255, 65, 0.4);
}

input::placeholder, textarea::placeholder {
  color: var(--muted-foreground);
}

label {
  color: var(--foreground);
  font-weight: 500;
  margin-bottom: 0.5rem;
  display: block;
}

.form-group {
  margin-bottom: 1.5rem;
}

/* Footer */
.footer {
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.5) 100%);
  border-top: 1px solid var(--border);
  padding: 3rem 0;
  margin-top: 4rem;
}

.footer-content {
  text-align: center;
}

.footer-links {
  display: flex;
  gap: 2rem;
  justify-content: center;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.footer-link {
  color: var(--muted-foreground);
  font-weight: 500;
  transition: all 0.2s ease;
}

.footer-link:hover {
  color: var(--primary);
}

.footer-copyright {
  color: var(--muted-foreground);
  font-size: 0.875rem;
}

/* Bright green statistics badges like in mockup */
.stats-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.75rem 1.5rem;
  background: linear-gradient(135deg, #00FF41 0%, #39FF14 100%);
  color: #000;
  font-weight: 700;
  border-radius: 2rem;
  font-size: 0.875rem;
  box-shadow: 
    0 0 20px rgba(0, 255, 65, 0.5),
    0 4px 8px rgba(0, 0, 0, 0.3);
  text-shadow: none;
}

.stats-badge svg {
  margin-right: 0.5rem;
  width: 1rem;
  height: 1rem;
}

/* Additional cyberpunk enhancements */
.data-stream {
  position: relative;
  overflow: hidden;
}

.data-stream::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0, 255, 65, 0.1), transparent);
  animation: dataFlow 3s linear infinite;
}

@keyframes dataFlow {
  0% {
    left: -100%;
  }
  100% {
    left: 100%;
  }
}

/* Enhanced card hover effects */
.card:hover {
  transform: translateY(-4px);
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.5),
    0 0 20px rgba(0, 255, 65, 0.2);
  border-color: var(--primary);
}

/* Card with transparent background support */
.card.bg-card\/50 {
  background: rgba(26, 26, 46, 0.5);
  backdrop-filter: blur(8px);
}

.card.bg-card\/50:hover {
  background: rgba(26, 26, 46, 0.7);
}

/* Improved neon glow animations */
.neon-glow {
  box-shadow: 
    0 0 5px rgba(0, 255, 65, 0.5),
    0 0 10px rgba(0, 255, 65, 0.3),
    0 0 15px rgba(0, 255, 65, 0.2),
    0 0 20px rgba(0, 255, 65, 0.1);
  transition: all 0.3s ease;
}

.neon-glow:hover {
  box-shadow: 
    0 0 10px rgba(0, 255, 65, 0.8),
    0 0 20px rgba(0, 255, 65, 0.6),
    0 0 30px rgba(0, 255, 65, 0.4),
    0 0 40px rgba(0, 255, 65, 0.2);
}

/* Missing Utility Classes - TailwindCSS Compatible */

/* Base colors and content */
.bg-base-200 { background-color: var(--card); }
.bg-base-content { background-color: var(--foreground); }
.text-base-content { color: var(--foreground); }
.text-base-content\/70 { color: rgba(255, 255, 255, 0.7); }

/* Flex utilities */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-row { flex-direction: row; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }

/* Margin and padding utilities */
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mr-2 { margin-right: 0.5rem; }
.mr-3 { margin-right: 0.75rem; }

/* Text utilities */
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-2xl { font-size: 1.5rem; line-height: 2rem; }
.text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
.font-bold { font-weight: 700; }

/* Width and height utilities */
.w-5 { width: 1.25rem; }
.h-5 { height: 1.25rem; }

/* Grid utilities */
.grid { display: grid; }
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* Responsive grid */
@media (min-width: 768px) {
  .md\\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .md\\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 1024px) {
  .lg\\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lg\\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* Gap utilities */
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }

/* Dashboard specific styles */
.dashboard-header {
  margin-bottom: 2rem;
}

.dashboard-title {
  font-size: 2.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--foreground);
}

.dashboard-subtitle {
  color: var(--muted-foreground);
  font-size: 1.125rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.feature-icon {
  width: 2rem;
  height: 2rem;
  color: var(--primary);
  margin: 0 auto 0.75rem auto;
}

.feature-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--foreground);
  margin-bottom: 0.25rem;
}

.text-muted {
  color: var(--muted-foreground);
  font-size: 0.875rem;
}

/* DaisyUI Compatible Component Classes */

/* Badge Components */
.badge {
  display: inline-flex;
  align-items: center;
  vertical-align: middle;
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 9999px;
  border: 1px solid transparent;
  line-height: 1;
}

.badge-primary {
  background-color: var(--primary);
  color: var(--primary-foreground);
}

.badge-secondary {
  background-color: var(--secondary);
  color: var(--secondary-foreground);
}

.badge-success {
  background-color: #22c55e;
  color: #ffffff;
}

.badge-warning {
  background-color: #f59e0b;
  color: #ffffff;
}

.badge-error {
  background-color: var(--destructive);
  color: #ffffff;
}

.badge-info {
  background-color: #3b82f6;
  color: #ffffff;
}

.badge-accent {
  background-color: var(--accent);
  color: var(--accent-foreground);
}

.badge-outline {
  background-color: transparent;
  border-color: var(--border);
  color: var(--foreground);
}

.badge-sm {
  padding: 0.125rem 0.375rem;
  font-size: 0.625rem;
}

.badge-xs {
  padding: 0.0625rem 0.25rem;
  font-size: 0.5rem;
}

/* Card Body Component */
.card-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.card-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 0.5rem;
}

.card-actions.justify-end {
  justify-content: flex-end;
}

/* Steps Component */
.steps {
  display: inline-grid;
  grid-auto-flow: column;
  overflow: hidden;
  overflow-x: auto;
  counter-reset: step;
  grid-auto-columns: 1fr;
}

.step {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(0, 1fr));
  place-items: center;
  text-align: center;
  min-height: 4rem;
  position: relative;
  color: var(--muted-foreground);
}

.step:before {
  content: counter(step);
  counter-increment: step;
  z-index: 1;
  position: relative;
  display: grid;
  place-items: center;
  color: inherit;
  width: 2rem;
  height: 2rem;
  border-radius: 9999px;
  background-color: var(--muted);
  border: 2px solid var(--border);
  grid-column-start: 1;
  grid-row-start: 1;
}

.step-primary {
  color: var(--primary);
}

.step-primary:before {
  background-color: var(--primary);
  color: var(--primary-foreground);
  border-color: var(--primary);
}

/* Form Controls */
.form-control {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.label {
  display: flex;
  user-select: none;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0.25rem;
}

.label-text {
  font-size: 0.875rem;
  line-height: 1.25rem;
  color: var(--foreground);
}

.label-text-alt {
  font-size: 0.75rem;
  line-height: 1rem;
  color: var(--muted-foreground);
}

/* Input Components */
.input {
  flex-shrink: 1;
  appearance: none;
  height: 3rem;
  padding-left: 1rem;
  padding-right: 1rem;
  font-size: 1rem;
  line-height: 2;
  border-radius: var(--radius);
  border-width: 1px;
  border-color: var(--border);
  background-color: var(--input);
  color: var(--foreground);
}

.input-bordered {
  border-color: var(--border);
}

.input:focus {
  outline: 2px solid var(--ring);
  outline-offset: 2px;
  border-color: var(--primary);
}

/* Textarea */
textarea.textarea {
  min-height: 3rem;
  padding: 0.75rem 1rem;
  line-height: 1.25;
  border-radius: var(--radius);
  border-width: 1px;
  border-color: var(--border);
  background-color: var(--input);
  color: var(--foreground);
}

/* Select */
.select {
  display: inline-flex;
  cursor: pointer;
  user-select: none;
  appearance: none;
  height: 3rem;
  padding-left: 1rem;
  padding-right: 2.5rem;
  font-size: 0.875rem;
  line-height: 1.25rem;
  min-height: 3rem;
  border-radius: var(--radius);
  border-width: 1px;
  border-color: var(--border);
  background-color: var(--input);
  color: var(--foreground);
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
  background-position: right 0.5rem center;
  background-repeat: no-repeat;
  background-size: 1.5em 1.5em;
}

/* Checkbox */
.checkbox {
  flex-shrink: 0;
  appearance: none;
  cursor: pointer;
  height: 1.5rem;
  width: 1.5rem;
  border-radius: var(--radius);
  border-width: 1px;
  border-color: var(--border);
  background-color: var(--input);
}

.checkbox:checked {
  background-color: var(--primary);
  border-color: var(--primary);
  background-image: url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M12.207 4.793a1 1 0 010 1.414l-5 5a1 1 0 01-1.414 0l-2-2a1 1 0 011.414-1.414L6.5 9.086l4.293-4.293a1 1 0 011.414 0z'/%3e%3c/svg%3e");
}

.checkbox-primary:checked {
  background-color: var(--primary);
  border-color: var(--primary);
}

.checkbox-sm {
  height: 1.25rem;
  width: 1.25rem;
}

/* Stats */
.stat {
  display: inline-grid;
  place-items: center;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  padding: 1rem;
  text-align: center;
}

.stat-title {
  grid-column-start: 1;
  grid-row-start: 1;
  font-size: 0.875rem;
  color: var(--muted-foreground);
  font-weight: 600;
}

.stat-value {
  grid-column-start: 1;
  grid-row-start: 2;
  font-size: 2rem;
  font-weight: 800;
  color: var(--foreground);
}

/* Dropdown */
.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-content {
  position: absolute;
  top: 100%;
  z-index: 50;
  opacity: 0;
  visibility: hidden;
  transform-origin: top;
  transform: scale(0.95);
  transition: all 0.1s ease;
}

.dropdown:focus-within .dropdown-content,
.dropdown:hover .dropdown-content {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
}

.dropdown-end .dropdown-content {
  right: 0;
}

.dropdown-top .dropdown-content {
  top: auto;
  bottom: 100%;
  transform-origin: bottom;
}

/* Menu */
.menu {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  font-size: 0.875rem;
  padding: 0.5rem;
}

.menu li {
  list-style: none;
}

.menu li > * {
  display: flex;
  align-items: center;
  cursor: pointer;
  padding: 0.5rem 0.75rem;
  color: var(--foreground);
  border-radius: var(--radius);
  text-decoration: none;
  transition: all 0.2s ease;
}

.menu li > *:hover {
  background-color: var(--muted);
}

/* Join (Button Group) */
.join {
  display: inline-flex;
  align-items: stretch;
  border-radius: var(--radius);
}

.join-item {
  border-start-start-radius: 0;
  border-end-start-radius: 0;
  border-start-end-radius: 0;
  border-end-end-radius: 0;
}

.join-item:first-child {
  border-start-start-radius: var(--radius);
  border-end-start-radius: var(--radius);
}

.join-item:last-child {
  border-start-end-radius: var(--radius);
  border-end-end-radius: var(--radius);
}

/* Additional button group styles */
.btn-group {
  display: inline-flex;
  align-items: stretch;
  border-radius: var(--radius);
}

.btn-group .btn:not(:first-child) {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
  border-left-width: 0;
}

.btn-group .btn:not(:last-child) {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}

.btn-active {
  background-color: var(--primary);
  color: var(--primary-foreground);
  border-color: var(--primary);
}

/* Progress bars */
.progress {
  position: relative;
  width: 100%;
  appearance: none;
  overflow: hidden;
  border-radius: var(--radius);
  background-color: var(--muted);
  height: 0.5rem;
}

/* Alert styles */
.alert {
  display: grid;
  width: 100%;
  grid-auto-flow: row;
  align-content: flex-start;
  align-items: center;
  justify-items: start;
  gap: 1rem;
  text-align: left;
  border-radius: var(--radius);
  border-width: 1px;
  padding: 1rem;
  grid-template-columns: auto minmax(0, 1fr) auto;
}

.alert > :not([hidden]) ~ :not([hidden]) {
  --tw-space-y-reverse: 0;
  margin-top: calc(1rem * calc(1 - var(--tw-space-y-reverse)));
  margin-bottom: calc(1rem * var(--tw-space-y-reverse));
}

/* Fixed positioning utilities */
.fixed {
  position: fixed;
}

.bottom-6 {
  bottom: 1.5rem;
}

.right-6 {
  right: 1.5rem;
}

/* Text truncation */
.truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.line-clamp-2 {
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.line-clamp-3 {
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

/* Compact layout improvements */
.character-card:hover {
  transform: translateY(-1px);
  transition: all 0.2s ease;
}

.character-card .dropdown:hover .dropdown-content {
  opacity: 1;
  visibility: visible;
}

/* Skills selector improvements */
.skills-selector {
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.skill-category {
  border-bottom: 1px solid var(--border);
  padding-bottom: 1rem;
}

.skill-category:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.skill-item:hover {
  background-color: var(--muted);
  transform: translateX(2px);
  transition: all 0.15s ease;
}

.skill-checkbox:checked + div {
  color: var(--primary);
}

.skill-checkbox:disabled + div {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Button group improvements */
.btn-group .btn {
  border-radius: 0;
}

.btn-group .btn:first-child {
  border-top-left-radius: var(--radius);
  border-bottom-left-radius: var(--radius);
}

.btn-group .btn:last-child {
  border-top-right-radius: var(--radius);
  border-bottom-right-radius: var(--radius);
}

/* Dropdown improvements */
.dropdown-content {
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
  transform: translateY(-10px);
}

.dropdown:hover .dropdown-content,
.dropdown:focus-within .dropdown-content {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Grid layout improvements */
@media (max-width: 640px) {
  .grid {
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 0.5rem;
  }
}

@media (min-width: 641px) and (max-width: 768px) {
  .grid.grid-cols-1.sm\:grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Status indicators */
.status-indicator {
  display: inline-flex;
  align-items: center;
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.125rem 0.5rem;
  border-radius: 9999px;
}

.status-indicator.critical {
  background-color: #dc2626;
  color: white;
}

.status-indicator.injured {
  background-color: #f59e0b;
  color: white;
}

.status-indicator.tired {
  background-color: #6b7280;
  color: white;
}

/* Card hover effects */
.card:hover {
  box-shadow: 0 10px 25px -3px rgba(0, 255, 65, 0.1), 0 4px 6px -2px rgba(0, 255, 65, 0.05);
  border-color: var(--primary);
  transition: all 0.2s ease;
}

/* Square Character Cards */
.character-card-square {
  aspect-ratio: 1;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(145deg, var(--card) 0%, rgba(26, 26, 46, 0.8) 100%);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.character-card-square:hover {
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(0, 255, 65, 0.1);
  transform: translateY(-2px);
}

.character-card-content {
  padding: 0.75rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.character-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.5rem;
}

.character-info {
  flex: 1;
  min-width: 0;
}

.character-name {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary);
  text-shadow: 0 0 5px rgba(0, 255, 65, 0.3);
  line-height: 1.2;
  margin-bottom: 0.25rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.character-subtitle {
  font-size: 0.625rem;
  color: var(--muted-foreground);
  line-height: 1.1;
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.character-menu {
  flex-shrink: 0;
}

.character-menu-btn {
  width: 1.5rem;
  height: 1.5rem;
  padding: 0;
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--border);
}

.character-menu-btn:hover {
  background-color: var(--primary);
  color: var(--background);
}

.character-stats {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
  margin-bottom: 0.5rem;
}

.stat-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.625rem;
}

.stat-label {
  color: var(--muted-foreground);
  font-weight: 500;
}

.stat-value {
  color: var(--foreground);
  font-weight: 600;
}

.character-status {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  margin-bottom: 0.5rem;
}

.status-critical {
  font-size: 0.5rem;
  padding: 0.125rem 0.25rem;
  background-color: var(--destructive);
  color: white;
  border-radius: 0.25rem;
  font-weight: 600;
}

.status-injured {
  font-size: 0.5rem;
  padding: 0.125rem 0.25rem;
  background-color: #f59e0b;
  color: white;
  border-radius: 0.25rem;
  font-weight: 600;
}

.status-tired {
  font-size: 0.5rem;
  padding: 0.125rem 0.25rem;
  background-color: #6b7280;
  color: white;
  border-radius: 0.25rem;
  font-weight: 600;
}

.character-actions {
  display: flex;
  gap: 0.25rem;
  margin-top: auto;
}

.character-actions .btn {
  flex: 1;
  font-size: 0.625rem;
  padding: 0.25rem 0.5rem;
  min-height: 1.25rem;
}

/* Characters Page Layout */
.characters-page {
  max-width: 100%;
  margin: 0 auto;
  padding: 0;
}

/* Page Header */
.page-header {
  margin-bottom: 2rem;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  flex-wrap: wrap;
}

.header-info {
  flex: 1;
  min-width: 0;
}

.page-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
  text-shadow: 0 0 10px rgba(0, 255, 65, 0.3);
  margin-bottom: 0.5rem;
  line-height: 1.2;
}

.page-subtitle {
  color: var(--muted-foreground);
  font-size: 0.875rem;
  margin: 0;
}

.header-actions {
  flex-shrink: 0;
}

/* Controls Section */
.controls-section {
  margin-bottom: 1.5rem;
}

.controls-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.75rem;
}

.search-filters {
  flex: 1;
  min-width: 0;
}

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

.search-input-group {
  display: flex;
  min-width: 200px;
}

.search-input {
  flex: 1;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--border);
  border-right: none;
  border-radius: var(--radius) 0 0 var(--radius);
  background: var(--input);
  color: var(--foreground);
  font-size: 0.875rem;
  transition: border-color 0.2s ease;
}

.search-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 1px var(--primary);
}

.search-btn {
  padding: 0.5rem 0.75rem;
  background: var(--primary);
  color: var(--primary-foreground);
  border: 1px solid var(--primary);
  border-radius: 0 var(--radius) var(--radius) 0;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.search-btn:hover {
  background: var(--secondary);
  border-color: var(--secondary);
  box-shadow: 0 0 10px rgba(0, 255, 65, 0.3);
}

.filter-group {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.filter-group select {
  padding: 0.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--input);
  color: var(--foreground);
  font-size: 0.875rem;
  min-width: 120px;
}

.clear-filters-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: transparent;
  color: var(--muted-foreground);
  transition: all 0.2s ease;
  text-decoration: none;
}

.clear-filters-btn:hover {
  background: var(--destructive);
  border-color: var(--destructive);
  color: white;
}

/* View Toggle */
.view-toggle {
  display: flex;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.view-btn {
  padding: 0.5rem;
  background: transparent;
  border: none;
  color: var(--muted-foreground);
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  border-right: 1px solid var(--border);
}

.view-btn:last-child {
  border-right: none;
}

.view-btn:hover {
  background: var(--muted);
  color: var(--foreground);
}

.view-btn-active {
  background: var(--primary);
  color: var(--primary-foreground);
}

.view-btn-active:hover {
  background: var(--primary);
  color: var(--primary-foreground);
}

/* Characters Container */
.characters-content {
  margin-bottom: 2rem;
}

.characters-container {
  transition: all 0.3s ease;
}

/* Grid View */
.characters-container.view-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
}

/* List View */
.characters-container.view-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.characters-container.view-list .character-card {
  aspect-ratio: unset;
}

.characters-container.view-list .character-card-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem;
}

.characters-container.view-list .character-header {
  flex: 1;
  margin-bottom: 0;
}

.characters-container.view-list .character-stats {
  display: flex;
  gap: 1rem;
  margin-bottom: 0;
}

.characters-container.view-list .character-status {
  margin-bottom: 0;
}

.characters-container.view-list .character-actions {
  margin-top: 0;
  flex-direction: row;
  gap: 0.5rem;
}

/* Character Cards */
.character-card {
  aspect-ratio: 1;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.character-card:hover {
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(0, 255, 65, 0.1);
  transform: translateY(-2px);
}

.character-card-inner {
  padding: 0.75rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Character Header */
.character-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.5rem;
}

.character-info {
  flex: 1;
  min-width: 0;
}

.character-name {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary);
  text-shadow: 0 0 5px rgba(0, 255, 65, 0.3);
  line-height: 1.2;
  margin-bottom: 0.25rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.character-meta {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}

.character-origin,
.character-path {
  font-size: 0.625rem;
  color: var(--muted-foreground);
  line-height: 1.1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Character Menu */
.character-menu {
  position: relative;
  flex-shrink: 0;
}

.menu-trigger {
  width: 1.5rem;
  height: 1.5rem;
  padding: 0;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--muted-foreground);
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.menu-trigger:hover {
  background: var(--primary);
  color: var(--background);
  border-color: var(--primary);
}

.menu-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 0.25rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  z-index: 50;
  min-width: 140px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.2s ease;
}

.menu-dropdown.menu-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.menu-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  color: var(--foreground);
  text-decoration: none;
  font-size: 0.75rem;
  transition: background-color 0.2s ease;
}

.menu-item:hover {
  background: var(--muted);
}

.menu-item-danger {
  color: var(--destructive);
}

.menu-item-danger:hover {
  background: rgba(255, 68, 68, 0.1);
}

.menu-divider {
  height: 1px;
  background: var(--border);
  margin: 0.25rem 0;
}

/* Character Stats */
.character-stats {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
  margin-bottom: 0.5rem;
}

.stat-group {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.625rem;
}

.stat-label {
  color: var(--muted-foreground);
  font-weight: 500;
}

.stat-value {
  color: var(--foreground);
  font-weight: 600;
}

.stat-value-primary {
  color: var(--primary);
}

/* Character Status */
.character-status {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  margin-bottom: 0.5rem;
}

.status-badge {
  font-size: 0.5rem;
  padding: 0.125rem 0.25rem;
  border-radius: 0.25rem;
  font-weight: 600;
  line-height: 1;
}

.status-critical {
  background-color: var(--destructive);
  color: white;
}

.status-injured {
  background-color: #f59e0b;
  color: white;
}

.status-tired {
  background-color: #6b7280;
  color: white;
}

/* Character Actions */
.character-actions {
  display: flex;
  gap: 0.25rem;
  margin-top: auto;
}

.action-btn {
  flex: 1;
  padding: 0.25rem 0.5rem;
  font-size: 0.625rem;
  font-weight: 500;
  text-align: center;
  text-decoration: none;
  border-radius: var(--radius);
  transition: all 0.2s ease;
  border: 1px solid transparent;
}

.action-btn-primary {
  background: var(--primary);
  color: var(--primary-foreground);
  border-color: var(--primary);
}

.action-btn-primary:hover {
  background: var(--secondary);
  border-color: var(--secondary);
  box-shadow: 0 0 8px rgba(0, 255, 65, 0.3);
}

.action-btn-secondary {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}

.action-btn-secondary:hover {
  background: rgba(0, 255, 65, 0.1);
}

/* Pagination */
.pagination-nav {
  margin-top: 2rem;
  display: flex;
  justify-content: center;
}

.pagination-container {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.25rem;
}

.pagination-btn {
  padding: 0.5rem 0.75rem;
  background: transparent;
  color: var(--muted-foreground);
  text-decoration: none;
  border-radius: calc(var(--radius) - 0.25rem);
  transition: all 0.2s ease;
  font-size: 0.875rem;
}

.pagination-btn:hover {
  background: var(--muted);
  color: var(--foreground);
}

.pagination-btn-edge {
  font-weight: 600;
}

.pagination-current {
  padding: 0.5rem 1rem;
  background: var(--primary);
  color: var(--primary-foreground);
  border-radius: calc(var(--radius) - 0.25rem);
  font-size: 0.875rem;
  font-weight: 500;
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 4rem 1rem;
}

.empty-state-icon {
  margin: 0 auto 1.5rem;
  color: var(--muted-foreground);
  opacity: 0.3;
}

.empty-state-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  text-shadow: 0 0 10px rgba(0, 255, 65, 0.3);
  margin-bottom: 1rem;
}

.empty-state-message {
  color: var(--muted-foreground);
  margin-bottom: 2rem;
  max-width: 28rem;
  margin-left: auto;
  margin-right: auto;
}

.empty-state-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Screen reader only */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
  .page-title {
    font-size: 1.5rem;
  }
  
  .header-content {
    flex-direction: column;
    align-items: stretch;
  }
  
  .controls-content {
    flex-direction: column;
    gap: 1rem;
    align-items: stretch;
  }
  
  .search-form {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .search-input-group {
    min-width: auto;
  }
  
  .filter-group {
    justify-content: center;
  }
  
  .view-toggle {
    align-self: center;
  }
  
  .characters-container.view-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 0.75rem;
  }
  
  .character-card-inner {
    padding: 0.5rem;
  }
  
  .character-name {
    font-size: 0.75rem;
  }
  
  .character-origin,
  .character-path {
    font-size: 0.5rem;
  }
  
  .stat-group {
    font-size: 0.5rem;
  }
  
  .action-btn {
    font-size: 0.5rem;
    padding: 0.25rem;
  }
}

@media (max-width: 480px) {
  .characters-container.view-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .empty-state-actions {
    flex-direction: column;
    align-items: center;
  }
}

/* Missing utility classes */
.btn-ghost {
  background-color: transparent;
  border: 1px solid transparent;
  color: var(--foreground);
}

.btn-ghost:hover {
  background-color: var(--muted);
  border-color: var(--border);
}

.btn-xs {
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
  line-height: 1rem;
  border-radius: 0.375rem;
}

.btn-square {
  width: 2rem;
  height: 2rem;
  padding: 0;
}

.aspect-square {
  aspect-ratio: 1;
}

.bg-muted {
  background-color: var(--muted);
}

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

.bg-card {
  background-color: var(--card);
}

.bg-popover {
  background-color: var(--popover);
}

.text-destructive {
  color: var(--destructive);
}

.bg-destructive {
  background-color: var(--destructive);
}

.text-destructive-foreground {
  color: var(--primary-foreground);
}

.bg-accent {
  background-color: var(--accent);
}

.text-accent-foreground {
  color: var(--accent-foreground);
}
