/*!*************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ./node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[14].oneOf[10].use[2]!./node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[14].oneOf[10].use[3]!./app/globals.css ***!
  \*************************************************************************************************************************************************************************************************************************************************************/
/* ===========================
   DO-IT-QUIC Design System
   Premium Dark Theme
   =========================== */

/* --- Google Font Import --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* --- Design Tokens --- */
:root {
  /* Background layers */
  --bg-base: hsl(220, 25%, 6%);
  --bg-surface: hsl(220, 20%, 10%);
  --bg-elevated: hsl(220, 18%, 14%);
  --bg-glass: hsla(220, 20%, 16%, 0.6);
  --bg-glass-hover: hsla(220, 20%, 20%, 0.7);

  /* Accent Colors */
  --accent-cyan: hsl(185, 85%, 55%);
  --accent-cyan-dim: hsl(185, 70%, 35%);
  --accent-violet: hsl(265, 80%, 65%);
  --accent-violet-dim: hsl(265, 60%, 40%);
  --accent-gradient: linear-gradient(135deg, var(--accent-cyan), var(--accent-violet));
  --accent-gradient-hover: linear-gradient(135deg, hsl(185, 90%, 60%), hsl(265, 85%, 70%));

  /* Severity Colors */
  --severity-optimal: hsl(145, 70%, 50%);
  --severity-degraded: hsl(40, 90%, 55%);
  --severity-impaired: hsl(0, 75%, 55%);

  /* Text */
  --text-primary: hsl(220, 15%, 93%);
  --text-secondary: hsl(220, 12%, 60%);
  --text-muted: hsl(220, 10%, 40%);

  /* Borders */
  --border-subtle: hsla(220, 15%, 30%, 0.4);
  --border-glass: hsla(220, 15%, 40%, 0.25);

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;

  /* Radii */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-glow-cyan: 0 0 20px hsla(185, 85%, 55%, 0.15);
  --shadow-glow-violet: 0 0 20px hsla(265, 80%, 65%, 0.15);
  --shadow-glow-accent: 0 0 30px hsla(225, 80%, 60%, 0.1);
  --shadow-card: 0 4px 24px hsla(0, 0%, 0%, 0.3);
  --shadow-elevated: 0 8px 32px hsla(0, 0%, 0%, 0.4);

  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 400ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-spring: 500ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  color-scheme: dark;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg-base);
  color: var(--text-primary);
  min-height: 100vh;
  line-height: 1.6;
  overflow-x: hidden;
}

/* Animated background mesh */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(ellipse 600px 600px at 20% 20%, hsla(185, 80%, 50%, 0.04) 0%, transparent 70%),
    radial-gradient(ellipse 500px 500px at 80% 80%, hsla(265, 80%, 60%, 0.04) 0%, transparent 70%),
    radial-gradient(ellipse 400px 400px at 50% 50%, hsla(220, 60%, 40%, 0.03) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
  animation: meshShift 20s ease-in-out infinite alternate;
}

@keyframes meshShift {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-20px, 15px) scale(1.05); }
  100% { transform: translate(10px, -10px) scale(1); }
}

/* --- Layout --- */
.app-container {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto;
  padding: var(--space-2xl) var(--space-lg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
}

/* --- Header --- */
.app-header {
  text-align: center;
  padding: var(--space-xl) 0;
  animation: fadeInDown 0.6s var(--transition-base);
}

.app-header__icon {
  font-size: 2.5rem;
  margin-bottom: var(--space-sm);
  display: block;
  animation: pulse 3s ease-in-out infinite;
}

.app-header__title {
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
}

.app-header__subtitle {
  font-size: 0.95rem;
  color: var(--text-secondary);
  font-weight: 400;
  margin-top: var(--space-xs);
  letter-spacing: 0.02em;
}

/* --- Glass Card --- */
.glass-card {
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  box-shadow: var(--shadow-card);
  transition: all var(--transition-base);
  animation: fadeInUp 0.5s var(--transition-base) both;
}

.glass-card:hover {
  background: var(--bg-glass-hover);
  border-color: hsla(220, 15%, 45%, 0.3);
  box-shadow: var(--shadow-elevated);
}

/* --- Slider Component --- */
.slider-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.slider-card:nth-child(1) { animation-delay: 0.1s; }
.slider-card:nth-child(2) { animation-delay: 0.2s; }

.slider__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.slider__label-group {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.slider__icon {
  font-size: 1.3rem;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: hsla(220, 20%, 20%, 0.5);
  transition: transform var(--transition-spring);
}

.slider-card:hover .slider__icon {
  transform: scale(1.1);
}

.slider__label {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
}

.slider__value-display {
  display: flex;
  align-items: baseline;
  gap: 2px;
}

.slider__value {
  font-size: 1.8rem;
  font-weight: 700;
  font-feature-settings: "tnum";
  font-variant-numeric: tabular-nums;
  transition: color var(--transition-base);
  line-height: 1;
}

.slider__unit {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-secondary);
}

/* Severity Colors */
.slider__value--optimal { color: var(--severity-optimal); }
.slider__value--degraded { color: var(--severity-degraded); }
.slider__value--impaired { color: var(--severity-impaired); }

/* --- Range Input --- */
.slider__input-wrapper {
  position: relative;
  padding: var(--space-xs) 0;
}

.slider__input {
  -webkit-appearance: none;
  -moz-appearance: none;
       appearance: none;
  width: 100%;
  height: 6px;
  border-radius: var(--radius-full);
  outline: none;
  cursor: pointer;
  transition: all var(--transition-base);
}

/* Track - WebKit */
.slider__input::-webkit-slider-runnable-track {
  height: 6px;
  border-radius: var(--radius-full);
  background: var(--bg-elevated);
}

/* Thumb - WebKit */
.slider__input::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--text-primary);
  border: 3px solid var(--bg-base);
  box-shadow: 0 0 0 3px hsla(220, 15%, 50%, 0.3), 0 2px 8px hsla(0, 0%, 0%, 0.3);
  margin-top: -8px;
  cursor: -webkit-grab;
  cursor: grab;
  -webkit-transition: all var(--transition-fast);
  transition: all var(--transition-fast);
}

.slider__input::-webkit-slider-thumb:hover {
  transform: scale(1.15);
  box-shadow: 0 0 0 4px hsla(185, 80%, 55%, 0.3), 0 2px 12px hsla(0, 0%, 0%, 0.4);
}

.slider__input::-webkit-slider-thumb:active {
  cursor: -webkit-grabbing;
  cursor: grabbing;
  transform: scale(1.05);
}

/* Thumb - Firefox */
.slider__input::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--text-primary);
  border: 3px solid var(--bg-base);
  box-shadow: 0 0 0 3px hsla(220, 15%, 50%, 0.3), 0 2px 8px hsla(0, 0%, 0%, 0.3);
  cursor: grab;
  -moz-transition: all var(--transition-fast);
  transition: all var(--transition-fast);
}

.slider__input::-moz-range-thumb:hover {
  transform: scale(1.15);
}

/* Track - Firefox */
.slider__input::-moz-range-track {
  height: 6px;
  border-radius: var(--radius-full);
  background: var(--bg-elevated);
  border: none;
}

.slider__input::-moz-range-progress {
  height: 6px;
  border-radius: var(--radius-full);
}

/* Gradient progress fill via inline style on the input */
.slider__input.slider__input--cyan::-moz-range-progress {
  background: linear-gradient(90deg, var(--accent-cyan-dim), var(--accent-cyan));
}

.slider__input.slider__input--violet::-moz-range-progress {
  background: linear-gradient(90deg, var(--accent-violet-dim), var(--accent-violet));
}

.slider__range-labels {
  display: flex;
  justify-content: space-between;
  margin-top: var(--space-xs);
}

.slider__range-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-weight: 500;
  font-feature-settings: "tnum";
  font-variant-numeric: tabular-nums;
}

/* --- Status Indicator --- */
.status-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-lg);
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: var(--bg-glass);
  -webkit-backdrop-filter: blur(12px);
          backdrop-filter: blur(12px);
  border: 1px solid var(--border-glass);
  animation: fadeIn 0.4s ease both;
  align-self: center;
  width: -moz-fit-content;
  width: fit-content;
}

.status-bar__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  animation: statusPulse 2s ease-in-out infinite;
}

.status-bar--optimal .status-bar__dot {
  background: var(--severity-optimal);
  box-shadow: 0 0 8px var(--severity-optimal);
}

.status-bar--degraded .status-bar__dot {
  background: var(--severity-degraded);
  box-shadow: 0 0 8px var(--severity-degraded);
}

.status-bar--impaired .status-bar__dot {
  background: var(--severity-impaired);
  box-shadow: 0 0 8px var(--severity-impaired);
}

.status-bar--optimal { color: var(--severity-optimal); }
.status-bar--degraded { color: var(--severity-degraded); }
.status-bar--impaired { color: var(--severity-impaired); }

/* --- Controls Grid --- */
.controls-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-gap: var(--space-md);
  gap: var(--space-md);
}

@media (max-width: 600px) {
  .controls-grid {
    grid-template-columns: 1fr;
  }
}

/* --- Action Buttons --- */
.actions {
  display: flex;
  gap: var(--space-md);
  animation: fadeInUp 0.5s var(--transition-base) 0.3s both;
}

.btn {
  flex: 1 1;
  padding: var(--space-md) var(--space-lg);
  border: none;
  border-radius: var(--radius-md);
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-base);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  position: relative;
  overflow: hidden;
}

.btn--primary {
  background: var(--accent-gradient);
  color: hsl(220, 25%, 6%);
  box-shadow: 0 4px 16px hsla(225, 80%, 60%, 0.25);
}

.btn--primary:hover:not(:disabled) {
  background: var(--accent-gradient-hover);
  box-shadow: 0 6px 24px hsla(225, 80%, 60%, 0.35);
  transform: translateY(-1px);
}

.btn--primary:active:not(:disabled) {
  transform: translateY(0);
}

.btn--secondary {
  background: var(--bg-elevated);
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
}

.btn--secondary:hover:not(:disabled) {
  background: hsla(220, 18%, 18%, 1);
  color: var(--text-primary);
  border-color: hsla(220, 15%, 40%, 0.5);
  transform: translateY(-1px);
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Loading Spinner */
.btn__spinner {
  width: 16px;
  height: 16px;
  border: 2px solid transparent;
  border-top-color: currentColor;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

/* Success / Error Flash */
.btn--success {
  background: var(--severity-optimal) !important;
  box-shadow: 0 4px 16px hsla(145, 70%, 50%, 0.3) !important;
}

.btn--error {
  background: var(--severity-impaired) !important;
  box-shadow: 0 4px 16px hsla(0, 75%, 55%, 0.3) !important;
}

/* --- Packet Flow Visualization --- */
.packet-viz {
  position: relative;
  overflow: hidden;
  height: 60px;
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  border: 1px solid var(--border-glass);
  animation: fadeInUp 0.5s var(--transition-base) 0.4s both;
}

.packet-viz__label {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  z-index: 2;
  pointer-events: none;
}

.packet-viz__track {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
}

.packet-dot {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-cyan);
  box-shadow: 0 0 6px var(--accent-cyan);
  animation: packetMove var(--packet-speed, 3s) linear infinite;
  opacity: var(--packet-opacity, 1);
}

.packet-dot--dropped {
  animation: packetDrop var(--packet-speed, 3s) linear infinite;
}

@keyframes packetMove {
  0% {
    left: -8px;
    opacity: 0;
  }
  5% {
    opacity: var(--packet-opacity, 1);
  }
  95% {
    opacity: var(--packet-opacity, 1);
  }
  100% {
    left: calc(100% + 8px);
    opacity: 0;
  }
}

@keyframes packetDrop {
  0% {
    left: -8px;
    opacity: 0;
    transform: translateY(0);
  }
  5% {
    opacity: 0.6;
  }
  40% {
    opacity: 0.6;
    transform: translateY(0);
  }
  60% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    left: calc(100% + 8px);
    opacity: 0;
    transform: translateY(20px);
  }
}

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

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

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}

@keyframes statusPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* --- Footer --- */
.app-footer {
  text-align: center;
  padding: var(--space-lg) 0;
  margin-top: auto;
  animation: fadeIn 0.6s ease 0.5s both;
}

.app-footer__text {
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

/* --- Navigation --- */
.top-nav {
  display: flex;
  justify-content: center;
  gap: var(--space-md);
  padding: var(--space-md);
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-glass);
}

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 600;
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.nav-link:hover {
  background: var(--bg-elevated);
  color: var(--text-primary);
}

/* --- Resilient Radio Layout & Components --- */
.radio-container {
  max-width: 800px;
}

.showcase-card {
  border-left: 4px solid var(--accent-cyan);
  padding: var(--space-md) var(--space-lg);
  margin-bottom: var(--space-sm);
  background: rgba(6, 182, 212, 0.03);
}

.showcase-card__title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: var(--space-xs);
  color: var(--accent-cyan);
}

.showcase-card__text {
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--text-secondary);
}

.radio-panels {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.audio-panel {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  padding: var(--space-lg);
}

.audio-panel--websocket {
  border-left: 4px solid var(--accent-cyan);
}

.audio-panel--webtransport {
  border-left: 4px solid var(--accent-violet);
}

.audio-panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.audio-panel__title {
  font-size: 1.25rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.audio-panel__icon {
  font-size: 1.5rem;
}

/* Status Badges */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  background: var(--bg-elevated);
}

.status-badge__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.status-badge--connected {
  color: var(--severity-optimal);
  border: 1px solid rgba(34, 197, 94, 0.2);
}
.status-badge--connected .status-badge__dot {
  background: var(--severity-optimal);
  box-shadow: 0 0 6px var(--severity-optimal);
  animation: statusPulse 2s infinite;
}

.status-badge--connecting {
  color: var(--severity-degraded);
  border: 1px solid rgba(234, 179, 8, 0.2);
}
.status-badge--connecting .status-badge__dot {
  background: var(--severity-degraded);
  box-shadow: 0 0 6px var(--severity-degraded);
  animation: statusPulse 1s infinite;
}

.status-badge--disconnected {
  color: var(--severity-impaired);
  border: 1px solid rgba(239, 68, 68, 0.2);
}
.status-badge--disconnected .status-badge__dot {
  background: var(--severity-impaired);
}

.status-badge--idle {
  color: var(--text-muted);
  border: 1px solid var(--border-subtle);
}
.status-badge--idle .status-badge__dot {
  background: var(--text-muted);
}

/* Waveform Canvas */
.audio-panel__waveform-container {
  width: 100%;
  height: 120px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  background: rgba(10, 10, 18, 0.4);
}

.audio-panel__canvas {
  width: 100%;
  height: 100%;
  display: block;
}

/* Controls */
.audio-panel__controls {
  display: flex;
  gap: var(--space-md);
}

/* Metrics Grid */
.audio-panel__metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-gap: var(--space-md);
  gap: var(--space-md);
  padding-top: var(--space-xs);
  border-top: 1px solid var(--border-subtle);
}

@media (max-width: 650px) {
  .audio-panel__metrics {
    grid-template-columns: 1fr 1fr;
  }
}

.metric-box {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.metric-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  font-weight: 500;
}

.metric-value {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  font-feature-settings: "tnum";
  font-variant-numeric: tabular-nums;
}

.metric-value--highlight {
  color: var(--accent-cyan);
}
.audio-panel--webtransport .metric-value--highlight {
  color: var(--accent-violet);
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-violet));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

