:root {
  /* Fonts — matches settings.ini (AI Studio design tokens) */
  --font-family-mono: "Ubuntu Mono", monospace;
  --font-size-base: 36px;

  /* Dimensions — matches settings.ini */
  --logo-width: 321px;
  --header-height: 321px;
  --button-height: 40px;
  --button-padding-x: 16px;

  /* Colors */
  --color-bg-primary: #0f172a;
  --color-accent-cyan: #67e8f9;
  --color-accent-cyan-strong: #00FFFF;
  --color-accent-purple: #c4b5fd;
}

/*
   DYNAMIC ROOT SCALING
   Tailwind rem units (text-*, p-*, max-w-*, etc.) all scale from this root.
   AI Studio / settings.ini use 36px so fullscreen matches the design preview.
*/
html {
  font-size: var(--font-size-base);
}

body {
  font-family: var(--font-family-mono);
  background-color: #000000;
  line-height: 1.2;
  font-size: 1rem;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Brand logo sizing from design tokens */
.epg-logo {
  width: var(--logo-width);
  max-width: min(var(--logo-width), 90vw);
  height: auto;
  display: inline-block;
}

/* Icon scaling for the (legacy) editor grids only — do NOT clobber lucide w-* classes */
.groups-grid svg,
.channels-grid svg,
.epg-grid svg {
  width: 1.1em;
  height: 1.1em;
}

/* Layout Padding & Tables */
.groups-grid td,
.channels-grid td,
.epg-grid td {
  padding: 0.5rem 0.5rem !important;
  vertical-align: middle;
  border-bottom: 1px solid #1e293b;
}

.grid-header th {
  padding: 0.5rem !important;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
}

/* Custom Scrollbar Styling */
::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}

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

::-webkit-scrollbar-thumb {
  background-color: #475569;
  border-radius: 6px;
  border: 3px solid #1e293b;
}

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

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

.animate-fade-in {
  animation: fadeIn 0.5s ease-in-out forwards;
}

.animate-float {
  animation: float 4s ease-in-out infinite;
}

.neon-glow {
  filter: drop-shadow(0 0 10px rgba(0, 255, 255, 0.4))
    drop-shadow(0 0 20px rgba(0, 255, 255, 0.2));
  transform: scale(1.05);
}
