/* ===================================
   Windows 11 Cyberpunk Edition Styles
   Monochrome with Green Highlights
   =================================== */

/* Import Nerd Fonts (fallback to system monospace if not installed) */
@import url("https://cdn.jsdelivr.net/gh/ryanoasis/nerd-fonts@master/css/nerd-fonts-generated.css");

:root {
  /* Color Palette - Monochrome + Green */
  --color-black: #000000;
  --color-dark-bg: #0a0a0a;
  --color-darker: #050505;
  --color-dark-gray: #1a1a1a;
  --color-gray: #2a2a2a;
  --color-light-gray: #c0c0c0;
  --color-lighter-gray: #e0e0e0;
  --color-white: #ffffff;

  /* Green Accent Colors */
  --color-matrix-green: #00ff41;
  --color-green-bright: #00cc33;
  --color-green-dark: #008f11;
  --color-neon-green: #39ff14;
  --color-green-glow: rgba(0, 255, 65, 0.3);

  /* Utility Colors */
  --color-cyan: #00ffff;
  --color-red: #ff0000;

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

  /* Typography */
  --font-primary: "JetBrainsMono Nerd Font", "FiraCode Nerd Font",
    "Hack Nerd Font", "Consolas", monospace;
  --font-mono: "JetBrainsMono Nerd Font", "FiraCode Nerd Font", "Hack Nerd Font",
    "Consolas", monospace;

  /* Effects */
  --glow-green: 0 0 10px var(--color-green-glow),
    0 0 20px var(--color-green-glow);
  --glow-green-strong: 0 0 5px var(--color-matrix-green),
    0 0 10px var(--color-matrix-green), 0 0 20px var(--color-matrix-green);
  --shadow-deep: 0 10px 30px rgba(0, 0, 0, 0.8);
  --border-glow: 1px solid var(--color-matrix-green);

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-medium: 0.3s ease;
  --transition-slow: 0.5s ease;
}

/* Day Theme Variables */
body[data-theme="light"] {
  --color-dark-bg: #1a1a1a;
  --color-darker: #252525;
  --color-dark-gray: #404040;
  --color-gray: #606060;
  --color-light-gray: #b0b0b0;
  --color-lighter-gray: #d0d0d0;
  --color-white: #e0e0e0;
  --color-black: #0a0a0a;
  --color-green-glow: rgba(0, 255, 65, 0.15);
  --color-matrix-green: #00ff41;
  --color-neon-green: #39ff14;
}

/* ==================
   Global Styles
   ================== */

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

body {
  font-family: var(--font-primary);
  background-color: var(--color-dark-bg);
  color: var(--color-lighter-gray);
  overflow-x: hidden;
  min-height: 100vh;
  position: relative;
}

/* ==================
   Glitch & Effects
   ================== */

.glitch-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9999;
  opacity: 0;
  background: repeating-linear-gradient(
    0deg,
    rgba(0, 255, 65, 0.03) 0px,
    transparent 2px,
    transparent 4px
  );
}

.scanlines {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9998;
  background: repeating-linear-gradient(
    0deg,
    rgba(0, 0, 0, 0.15) 0px,
    transparent 1px,
    transparent 2px
  );
  animation: scanline-move 8s linear infinite;
}

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

/* Glitch Text Effect */
.glitch-text {
  position: relative;
  font-size: 4rem;
  font-weight: 900;
  color: var(--color-neon-green);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-family: var(--font-mono);
  text-shadow: 0 0 30px rgba(57, 255, 20, 0.8), 0 0 60px rgba(57, 255, 20, 0.4);
  animation: glitch-base 6s linear infinite;
  overflow: visible;
}

/* ==================
   System-Wide Glitch / Degradation Layers
   ================== */
body.system-degrade-warning {
  animation: body-flicker-warning 9s linear infinite;
}
body.system-degrade-critical {
  animation: body-flicker-critical 5s linear infinite;
}

@keyframes body-flicker-warning {
  0%,
  92%,
  100% {
    filter: none;
  }
  10% {
    filter: hue-rotate(6deg) saturate(1.1);
  }
  22% {
    filter: contrast(1.05);
  }
  37% {
    filter: brightness(1.06) hue-rotate(-4deg);
  }
  54% {
    filter: none;
  }
  71% {
    filter: saturate(1.15) contrast(1.1);
  }
  85% {
    filter: none;
  }
}
@keyframes body-flicker-critical {
  0%,
  90%,
  100% {
    filter: none;
  }
  6% {
    filter: hue-rotate(12deg) saturate(1.25) contrast(1.15);
  }
  14% {
    filter: brightness(1.12);
  }
  23% {
    filter: contrast(1.2) saturate(1.3);
  }
  34% {
    filter: hue-rotate(-15deg) brightness(0.95);
  }
  46% {
    filter: none;
  }
  58% {
    filter: hue-rotate(18deg) saturate(1.4);
  }
  72% {
    filter: contrast(1.25);
  }
  83% {
    filter: hue-rotate(-8deg) brightness(1.08);
  }
}

/* Noise overlay for static */
#noiseOverlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9997;
  mix-blend-mode: overlay;
  background: repeating-radial-gradient(
      circle at 20% 30%,
      rgba(255, 255, 255, 0.05) 0 2px,
      transparent 3px 8px
    ),
    repeating-radial-gradient(
      circle at 80% 70%,
      rgba(0, 255, 160, 0.05) 0 2px,
      transparent 3px 9px
    ),
    repeating-linear-gradient(
      45deg,
      rgba(255, 0, 100, 0.02) 0px,
      transparent 2px,
      transparent 4px
    );
  opacity: 0;
  transition: opacity 0.25s ease-out;
  animation: noise-grain 0.1s steps(4) infinite;
}

@keyframes noise-grain {
  0%,
  100% {
    transform: translate(0, 0);
    filter: contrast(1);
  }
  25% {
    transform: translate(-1px, 1px);
    filter: contrast(1.1);
  }
  50% {
    transform: translate(1px, -1px);
    filter: contrast(0.95);
  }
  75% {
    transform: translate(-1px, -1px);
    filter: contrast(1.05);
  }
}

body.noise-burst #noiseOverlay {
  opacity: 0.3;
  animation: noise-grain 0.08s steps(8) infinite,
    noise-flicker 0.15s ease-in-out;
}

body.system-degrade-critical.noise-burst #noiseOverlay {
  opacity: 0.45;
  animation: noise-grain 0.06s steps(12) infinite,
    noise-flicker 0.12s ease-in-out;
}

@keyframes noise-flicker {
  0%,
  100% {
    opacity: 0.3;
  }
  20% {
    opacity: 0.5;
  }
  40% {
    opacity: 0.35;
  }
  60% {
    opacity: 0.45;
  }
  80% {
    opacity: 0.4;
  }
}

/* Background Audio Visualizer */
.audio-visualizer-bg {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 150px;
  pointer-events: none;
  z-index: 1;
  opacity: 0.15;
  filter: blur(2px);
}

/* Horizontal screen tearing bars */
.glitch-tear-bar {
  position: fixed;
  left: 0;
  width: 100%;
  height: 6px;
  background: linear-gradient(
    90deg,
    rgba(0, 255, 160, 0.4),
    rgba(0, 0, 0, 0) 70%
  );
  mix-blend-mode: screen;
  pointer-events: none;
  z-index: 9999;
  opacity: 0;
}
.glitch-tear-bar.active {
  animation: tear-move 0.35s ease-out forwards;
}
@keyframes tear-move {
  0% {
    opacity: 0;
    transform: translateX(-8%) skewX(-20deg) scaleX(0.8);
    filter: hue-rotate(0deg) blur(1px);
  }
  12% {
    opacity: 0.95;
    transform: translateX(5%) skewX(18deg) scaleX(1.2);
    filter: hue-rotate(15deg) blur(0px);
  }
  15% {
    opacity: 0.85;
    transform: translateX(-3%) skewX(-10deg) scaleX(0.95);
  }
  35% {
    opacity: 0.7;
    transform: translateX(2%) skewX(8deg) scaleX(1.1);
    filter: hue-rotate(-10deg) blur(0.5px);
  }
  50% {
    opacity: 0.5;
    transform: translateX(-1%) skewX(-5deg) scaleX(1);
  }
  70% {
    opacity: 0.3;
    transform: translateX(1%) skewX(3deg) scaleX(0.9);
    filter: hue-rotate(5deg) blur(1px);
  }
  100% {
    opacity: 0;
    transform: translateX(0) skewX(0deg) scaleX(0.85);
    filter: hue-rotate(0deg) blur(2px);
  }
}

/* Multi-layer channel offsets */
.glitch-text::before,
.glitch-text::after,
.glitch-text .glitch-slice {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.glitch-text::before {
  color: var(--color-cyan);
  mix-blend-mode: screen;
  animation: glitch-layer-cyan 4.2s linear infinite;
}

.glitch-text::after {
  color: var(--color-red);
  mix-blend-mode: screen;
  animation: glitch-layer-red 3.6s linear infinite;
}

.glitch-text .glitch-slice {
  color: var(--color-neon-green);
  animation: glitch-slice-shift 5.5s linear infinite;
  opacity: 0.6;
}

/* Burst state applied temporarily by JS */
.glitch-burst::before,
.glitch-burst::after {
  filter: drop-shadow(0 0 6px rgba(0, 255, 65, 0.6)) brightness(1.2);
}

.glitch-burst {
  text-shadow: 0 0 40px rgba(57, 255, 20, 0.9), 0 0 80px rgba(57, 255, 20, 0.5);
}

/* Intensity Modifiers */
.glitch-intensity-low .glitch-text::before,
.glitch-intensity-low .glitch-text::after {
  animation-duration: 7s;
}
.glitch-intensity-medium .glitch-text::before {
  animation-duration: 4s;
}
.glitch-intensity-medium .glitch-text::after {
  animation-duration: 3.4s;
}
.glitch-intensity-high .glitch-text::before {
  animation-duration: 2.2s;
}
.glitch-intensity-high .glitch-text::after {
  animation-duration: 1.9s;
}
.glitch-intensity-high .glitch-text .glitch-slice {
  animation-duration: 3s;
}

@keyframes glitch-base {
  0%,
  100% {
    filter: none;
  }
  8% {
    filter: saturate(1.3) brightness(1.1) contrast(1.15);
  }
  9% {
    filter: none;
  }
  23% {
    filter: hue-rotate(5deg) brightness(1.08);
  }
  24% {
    filter: none;
  }
  38% {
    filter: contrast(1.25) saturate(1.4);
  }
  39% {
    filter: none;
  }
  48% {
    filter: none;
  }
  49% {
    filter: saturate(1.5) brightness(1.2) contrast(1.3);
  }
  50% {
    filter: contrast(1.35) brightness(1.05) hue-rotate(-8deg);
  }
  51% {
    filter: none;
  }
  67% {
    filter: brightness(1.12) saturate(1.2);
  }
  68% {
    filter: none;
  }
  84% {
    filter: hue-rotate(-6deg) contrast(1.2);
  }
  85% {
    filter: none;
  }
}

@keyframes glitch-layer-cyan {
  0% {
    transform: translate(0, 0) skewX(0deg);
    opacity: 0.9;
  }
  5% {
    transform: translate(4px, -3px) skewX(-2deg);
    opacity: 0.95;
  }
  6% {
    transform: translate(-2px, 1px) skewX(1deg);
  }
  10% {
    transform: translate(2px, -2px) skewX(0deg);
  }
  15% {
    transform: translate(0, 0) skewX(0deg);
  }
  20% {
    transform: translate(-3px, 2px) skewX(3deg);
  }
  21% {
    transform: translate(1px, -1px) skewX(-1deg);
  }
  30% {
    transform: translate(3px, -1px) skewX(0deg);
  }
  35% {
    transform: translate(0, 0) skewX(0deg);
  }
  40% {
    transform: translate(-4px, 3px) skewX(2deg);
  }
  41% {
    transform: translate(2px, -2px) skewX(-2deg);
  }
  55% {
    transform: translate(-2px, 2px) skewX(0deg);
  }
  60% {
    transform: translate(0, 0) skewX(0deg);
  }
  70% {
    transform: translate(1px, -2px) skewX(-1deg);
  }
  71% {
    transform: translate(-3px, 3px) skewX(3deg);
  }
  85% {
    transform: translate(-3px, 1px) skewX(0deg);
  }
  90% {
    transform: translate(2px, -1px) skewX(1deg);
  }
  91% {
    transform: translate(0, 0) skewX(0deg);
  }
  100% {
    transform: translate(0, 0) skewX(0deg);
  }
}

@keyframes glitch-layer-red {
  0% {
    transform: translate(0, 0) skewX(0deg);
    opacity: 0.85;
  }
  7% {
    transform: translate(-4px, 3px) skewX(2deg);
    opacity: 0.9;
  }
  8% {
    transform: translate(2px, -2px) skewX(-2deg);
  }
  12% {
    transform: translate(-2px, 2px) skewX(0deg);
  }
  18% {
    transform: translate(0, 0) skewX(0deg);
  }
  24% {
    transform: translate(3px, -3px) skewX(-3deg);
  }
  25% {
    transform: translate(-2px, 1px) skewX(1deg);
  }
  36% {
    transform: translate(-3px, 2px) skewX(0deg);
  }
  42% {
    transform: translate(0, 0) skewX(0deg);
  }
  46% {
    transform: translate(4px, -3px) skewX(2deg);
  }
  47% {
    transform: translate(-3px, 2px) skewX(-2deg);
  }
  58% {
    transform: translate(-1px, 1px) skewX(0deg);
  }
  65% {
    transform: translate(0, 0) skewX(0deg);
  }
  72% {
    transform: translate(-3px, 4px) skewX(3deg);
  }
  73% {
    transform: translate(2px, -2px) skewX(-1deg);
  }
  76% {
    transform: translate(3px, -1px) skewX(0deg);
  }
  88% {
    transform: translate(-2px, 2px) skewX(1deg);
  }
  89% {
    transform: translate(0, 0) skewX(0deg);
  }
  100% {
    transform: translate(0, 0) skewX(0deg);
  }
}

@keyframes glitch-slice-shift {
  0%,
  100% {
    clip-path: inset(0 0 0 0);
    transform: translateX(0);
  }
  8% {
    clip-path: inset(5% 0 80% 0);
    transform: translateX(-3px);
  }
  9% {
    clip-path: inset(0 0 0 0);
    transform: translateX(0);
  }
  15% {
    clip-path: inset(10% 0 65% 0);
    transform: translateX(4px);
  }
  16% {
    clip-path: inset(0 0 0 0);
    transform: translateX(0);
  }
  23% {
    clip-path: inset(70% 0 8% 0);
    transform: translateX(-2px);
  }
  24% {
    clip-path: inset(0 0 0 0);
    transform: translateX(0);
  }
  32% {
    clip-path: inset(60% 0 15% 0);
    transform: translateX(3px);
  }
  33% {
    clip-path: inset(0 0 0 0);
    transform: translateX(0);
  }
  44% {
    clip-path: inset(25% 0 50% 0);
    transform: translateX(-4px);
  }
  45% {
    clip-path: inset(0 0 0 0);
    transform: translateX(0);
  }
  55% {
    clip-path: inset(30% 0 40% 0);
    transform: translateX(2px);
  }
  56% {
    clip-path: inset(0 0 0 0);
    transform: translateX(0);
  }
  68% {
    clip-path: inset(82% 0 3% 0);
    transform: translateX(-3px);
  }
  69% {
    clip-path: inset(0 0 0 0);
    transform: translateX(0);
  }
  78% {
    clip-path: inset(75% 0 5% 0);
    transform: translateX(4px);
  }
  79% {
    clip-path: inset(0 0 0 0);
    transform: translateX(0);
  }
  89% {
    clip-path: inset(45% 0 35% 0);
    transform: translateX(-2px);
  }
  90% {
    clip-path: inset(0 0 0 0);
    transform: translateX(0);
  }
}

@keyframes glitch-before {
  0%,
  90%,
  100% {
    transform: translate(0);
  }
  91% {
    transform: translate(-2px, 2px);
  }
  93% {
    transform: translate(2px, -2px);
  }
}

@keyframes glitch-after {
  0%,
  90%,
  100% {
    transform: translate(0);
  }
  92% {
    transform: translate(2px, -2px);
  }
  94% {
    transform: translate(-2px, 2px);
  }
}

/* Matrix Background Canvas */
.matrix-bg,
.desktop-matrix {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  opacity: 0.1;
}

/* ==================
   Landing Page
   ================== */

.landing-container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 1;
}

.landing-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--spacing-lg) var(--spacing-xl);
  background: rgba(10, 10, 10, 0.8);
  border-bottom: 1px solid var(--color-dark-gray);
  backdrop-filter: blur(10px);
}

.system-info {
  display: flex;
  gap: var(--spacing-lg);
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.9rem;
}

.system-status {
  color: var(--color-matrix-green);
  text-shadow: var(--glow-green);
}

.system-time {
  color: var(--color-light-gray);
}

/* Theme toggle uses desktop widget style - see .theme-toggle-widget */

/* Hero Section */
.hero-section {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-xxl);
  position: relative;
}

.hero-content {
  text-align: center;
  z-index: 2;
  max-width: 800px;
}

.subtitle {
  font-size: 1.5rem;
  color: var(--color-light-gray);
  margin-top: var(--spacing-md);
  letter-spacing: 0.2em;
  font-weight: 300;
}

.tagline {
  font-size: 1rem;
  color: var(--color-gray);
  margin-top: var(--spacing-sm);
  font-family: var(--font-mono);
}

.cta-container {
  margin-top: var(--spacing-xxl);
}

.cta-button {
  background: transparent;
  border: 2px solid var(--color-matrix-green);
  color: var(--color-matrix-green);
  padding: var(--spacing-md) var(--spacing-xxl);
  font-size: 1.2rem;
  font-weight: 700;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all var(--transition-medium);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-family: var(--font-mono);
}

.cta-button:hover {
  background: var(--color-matrix-green);
  color: var(--color-black);
  box-shadow: var(--glow-green-strong);
  transform: scale(1.05);
}

.cta-button::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: var(--color-neon-green);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
  z-index: -1;
  opacity: 0.3;
}

.cta-button:hover::before {
  width: 300px;
  height: 300px;
}

/* Widgets Section */
.widgets-section {
  padding: var(--spacing-xl);
  background: rgba(0, 0, 0, 0.5);
  border-top: 1px solid var(--color-dark-gray);
}

.widget-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--spacing-lg);
  max-width: 1400px;
  margin: 0 auto;
}

.widget {
  background: rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(0, 255, 65, 0.08);
  border-radius: 4px;
  padding: var(--spacing-lg);
  transition: all var(--transition-medium);
  backdrop-filter: blur(2px);
}

.widget:hover {
  border-color: rgba(0, 255, 65, 0.3);
  background: rgba(0, 255, 65, 0.03);
  box-shadow: 0 0 15px rgba(0, 255, 65, 0.15);
  transform: translateY(-2px);
}

.widget-header {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-md);
  border-bottom: 1px solid rgba(0, 255, 65, 0.1);
  padding-bottom: var(--spacing-sm);
}

.widget-icon {
  display: none;
}

.widget-header h3 {
  font-size: 0.85rem;
  color: var(--color-matrix-green);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-weight: 600;
  text-shadow: 0 0 10px rgba(0, 255, 65, 0.3);
  font-family: var(--font-mono);
}

.widget-content {
  font-family: var(--font-mono);
}

.widget-info-lines {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xs);
}

/* Clock Widget */
.digital-clock {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}

.clock-time {
  font-size: 2.5rem;
  color: var(--color-matrix-green);
  text-shadow: var(--glow-green);
  font-weight: 700;
}

.clock-date,
.clock-location {
  font-size: 0.9rem;
  color: var(--color-light-gray);
}

/* Weather Widget */
.weather-display {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

.weather-temp {
  font-size: 3rem;
  color: var(--color-matrix-green);
  font-weight: 700;
}

.weather-condition {
  font-size: 1rem;
  color: var(--color-light-gray);
}

.weather-details {
  display: flex;
  gap: var(--spacing-md);
  flex-wrap: wrap;
  margin-top: var(--spacing-sm);
  font-size: 0.9rem;
  color: var(--color-gray);
}

/* Calendar Widget */
.calendar-display {
  text-align: center;
}

.calendar-day {
  font-size: 3rem;
  color: var(--color-matrix-green);
  font-weight: 700;
}

.calendar-month {
  font-size: 1.2rem;
  color: var(--color-light-gray);
  margin-top: var(--spacing-sm);
  text-transform: uppercase;
}

.calendar-year {
  font-size: 1rem;
  color: var(--color-gray);
  margin-top: var(--spacing-xs);
}

/* Landing Footer */
.landing-footer {
  --heartbeat-duration: 2s;
  padding: var(--spacing-md) var(--spacing-lg);
  background: rgba(5, 5, 5, 0.95);
  border-top: 3px solid var(--color-matrix-green);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
  box-shadow: 0 -2px 20px rgba(0, 255, 65, 0.2);
}

/* EKG Heartbeat Line */
.landing-footer::before {
  content: "";
  position: absolute;
  top: -3px;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--color-matrix-green);
  box-shadow: 0 0 10px rgba(0, 255, 65, 0.6), 0 0 20px rgba(0, 255, 65, 0.3);
  animation: ekg-heartbeat var(--heartbeat-duration) linear infinite;
  transform-origin: left center;
}

@keyframes ekg-heartbeat {
  0% {
    clip-path: polygon(
      0% 50%,
      2% 50%,
      4% 50%,
      6% 50%,
      8% 50%,
      10% 50%,
      12% 50%,
      14% 50%,
      16% 50%,
      18% 50%,
      20% 50%,
      22% 50%,
      24% 50%,
      26% 50%,
      28% 50%,
      30% 50%,
      32% 50%,
      34% 50%,
      36% 50%,
      38% 50%,
      40% 50%,
      42% 50%,
      44% 50%,
      46% 50%,
      48% 50%,
      50% 50%,
      52% 50%,
      54% 50%,
      56% 50%,
      58% 50%,
      60% 50%,
      62% 50%,
      64% 50%,
      66% 50%,
      68% 50%,
      70% 50%,
      72% 50%,
      74% 50%,
      76% 50%,
      78% 50%,
      80% 50%,
      82% 50%,
      84% 50%,
      86% 50%,
      88% 50%,
      90% 50%,
      92% 50%,
      94% 50%,
      96% 50%,
      98% 50%,
      100% 50%,
      100% 100%,
      0% 100%
    );
  }
  5% {
    clip-path: polygon(
      0% 50%,
      2% 50%,
      4% 50%,
      6% 20%,
      8% 80%,
      10% 50%,
      12% 50%,
      14% 50%,
      16% 50%,
      18% 50%,
      20% 50%,
      22% 50%,
      24% 50%,
      26% 50%,
      28% 50%,
      30% 50%,
      32% 50%,
      34% 50%,
      36% 50%,
      38% 50%,
      40% 50%,
      42% 50%,
      44% 50%,
      46% 50%,
      48% 50%,
      50% 50%,
      52% 50%,
      54% 50%,
      56% 50%,
      58% 50%,
      60% 50%,
      62% 50%,
      64% 50%,
      66% 50%,
      68% 50%,
      70% 50%,
      72% 50%,
      74% 50%,
      76% 50%,
      78% 50%,
      80% 50%,
      82% 50%,
      84% 50%,
      86% 50%,
      88% 50%,
      90% 50%,
      92% 50%,
      94% 50%,
      96% 50%,
      98% 50%,
      100% 50%,
      100% 100%,
      0% 100%
    );
  }
  8% {
    clip-path: polygon(
      0% 50%,
      2% 50%,
      4% 50%,
      6% 50%,
      8% 50%,
      10% 50%,
      12% 0%,
      14% 100%,
      16% 50%,
      18% 50%,
      20% 50%,
      22% 50%,
      24% 50%,
      26% 50%,
      28% 50%,
      30% 50%,
      32% 50%,
      34% 50%,
      36% 50%,
      38% 50%,
      40% 50%,
      42% 50%,
      44% 50%,
      46% 50%,
      48% 50%,
      50% 50%,
      52% 50%,
      54% 50%,
      56% 50%,
      58% 50%,
      60% 50%,
      62% 50%,
      64% 50%,
      66% 50%,
      68% 50%,
      70% 50%,
      72% 50%,
      74% 50%,
      76% 50%,
      78% 50%,
      80% 50%,
      82% 50%,
      84% 50%,
      86% 50%,
      88% 50%,
      90% 50%,
      92% 50%,
      94% 50%,
      96% 50%,
      98% 50%,
      100% 50%,
      100% 100%,
      0% 100%
    );
  }
  12% {
    clip-path: polygon(
      0% 50%,
      2% 50%,
      4% 50%,
      6% 50%,
      8% 50%,
      10% 50%,
      12% 50%,
      14% 50%,
      16% 50%,
      18% 30%,
      20% 70%,
      22% 50%,
      24% 50%,
      26% 50%,
      28% 50%,
      30% 50%,
      32% 50%,
      34% 50%,
      36% 50%,
      38% 50%,
      40% 50%,
      42% 50%,
      44% 50%,
      46% 50%,
      48% 50%,
      50% 50%,
      52% 50%,
      54% 50%,
      56% 50%,
      58% 50%,
      60% 50%,
      62% 50%,
      64% 50%,
      66% 50%,
      68% 50%,
      70% 50%,
      72% 50%,
      74% 50%,
      76% 50%,
      78% 50%,
      80% 50%,
      82% 50%,
      84% 50%,
      86% 50%,
      88% 50%,
      90% 50%,
      92% 50%,
      94% 50%,
      96% 50%,
      98% 50%,
      100% 50%,
      100% 100%,
      0% 100%
    );
  }
  100% {
    clip-path: polygon(
      0% 50%,
      2% 50%,
      4% 50%,
      6% 50%,
      8% 50%,
      10% 50%,
      12% 50%,
      14% 50%,
      16% 50%,
      18% 50%,
      20% 50%,
      22% 50%,
      24% 50%,
      26% 50%,
      28% 50%,
      30% 50%,
      32% 50%,
      34% 50%,
      36% 50%,
      38% 50%,
      40% 50%,
      42% 50%,
      44% 50%,
      46% 50%,
      48% 50%,
      50% 50%,
      52% 50%,
      54% 50%,
      56% 50%,
      58% 50%,
      60% 50%,
      62% 50%,
      64% 50%,
      66% 50%,
      68% 50%,
      70% 50%,
      72% 50%,
      74% 50%,
      76% 50%,
      78% 50%,
      80% 50%,
      82% 50%,
      84% 50%,
      86% 50%,
      88% 50%,
      90% 50%,
      92% 50%,
      94% 50%,
      96% 50%,
      98% 50%,
      100% 50%,
      100% 100%,
      0% 100%
    );
  }
}

.landing-footer::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: repeating-linear-gradient(
    0deg,
    rgba(0, 255, 65, 0.02),
    rgba(0, 255, 65, 0.02) 1px,
    transparent 1px,
    transparent 2px
  );
  pointer-events: none;
  animation: scan-lines-vertical 8s linear infinite;
}

@keyframes scan-lines-vertical {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(4px);
  }
}

.footer-status {
  display: flex;
  justify-content: center;
  gap: var(--spacing-xl);
  margin-bottom: var(--spacing-sm);
  flex-wrap: wrap;
  animation: flicker-status 4s ease-in-out infinite;
}

@keyframes flicker-status {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.95;
  }
  51% {
    opacity: 1;
  }
  52% {
    opacity: 0.97;
  }
}

.status-line {
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
  animation: fade-in-up 0.5s ease-out backwards;
}

.status-line:nth-child(1) {
  animation-delay: 0.1s;
}

.status-line:nth-child(2) {
  animation-delay: 0.2s;
}

.status-line:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes fade-in-up {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.status-icon {
  color: var(--color-gray);
  font-size: 0.9rem;
}

.warning-icon {
  color: #ff9800;
  animation: pulse-warning 1.5s infinite;
  filter: drop-shadow(0 0 5px rgba(255, 152, 0, 0.6));
}

.error-icon {
  color: #ff3333;
  animation: blink 1s infinite;
  filter: drop-shadow(0 0 8px rgba(255, 51, 51, 0.8));
}

.status-text {
  color: var(--color-light-gray);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.status-text.warning {
  color: #ff9800;
  text-shadow: 0 0 10px rgba(255, 152, 0, 0.4);
  animation: warning-pulse-text 2s ease-in-out infinite;
}

@keyframes warning-pulse-text {
  0%,
  100% {
    text-shadow: 0 0 10px rgba(255, 152, 0, 0.4);
  }
  50% {
    text-shadow: 0 0 15px rgba(255, 152, 0, 0.7),
      0 0 25px rgba(255, 152, 0, 0.3);
  }
}

.status-text.error {
  color: #ff3333;
  text-shadow: 0 0 10px rgba(255, 51, 51, 0.4);
  font-weight: 700;
  animation: error-glitch 2s ease-in-out infinite;
}

@keyframes error-glitch {
  0%,
  90%,
  100% {
    transform: translateX(0);
    text-shadow: 0 0 10px rgba(255, 51, 51, 0.4);
  }
  92% {
    transform: translateX(-2px);
    text-shadow: -2px 0 10px rgba(255, 51, 51, 0.6);
  }
  94% {
    transform: translateX(2px);
    text-shadow: 2px 0 10px rgba(255, 51, 51, 0.6);
  }
}

.footer-info {
  text-align: center;
  color: var(--color-dark-gray);
  margin-top: var(--spacing-sm);
  padding-top: var(--spacing-sm);
  border-top: 1px solid rgba(0, 255, 65, 0.1);
  animation: fade-in-up 0.8s ease-out 0.5s backwards;
}

.footer-info span {
  display: inline-block;
  animation: text-flicker 5s ease-in-out infinite;
}

@keyframes text-flicker {
  0%,
  100% {
    opacity: 0.6;
  }
  50% {
    opacity: 0.8;
  }
  55% {
    opacity: 0.7;
  }
  60% {
    opacity: 0.8;
  }
}

/* Audio Visualizer Bars */
.footer-audio {
  position: absolute;
  right: var(--spacing-lg);
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  gap: 4px;
  align-items: flex-end;
  height: 30px;
  cursor: pointer;
  padding: 5px 10px;
  border: 1px solid rgba(0, 255, 65, 0.2);
  background: rgba(0, 255, 65, 0.05);
  border-radius: 4px;
  transition: all 0.3s ease;
}

.footer-audio:hover {
  border-color: var(--color-matrix-green);
  background: rgba(0, 255, 65, 0.1);
  box-shadow: 0 0 15px rgba(0, 255, 65, 0.3);
}

.audio-bar {
  width: 3px;
  height: 8px;
  background: var(--color-matrix-green);
  border-radius: 2px;
  transition: all 0.1s ease;
  box-shadow: 0 0 5px rgba(0, 255, 65, 0.5);
}

/* Playing state - animated bars */
.footer-audio.playing .audio-bar:nth-child(1) {
  animation: audio-bar-pulse 0.6s ease-in-out infinite;
  animation-delay: 0s;
}

.footer-audio.playing .audio-bar:nth-child(2) {
  animation: audio-bar-pulse 0.6s ease-in-out infinite;
  animation-delay: 0.1s;
}

.footer-audio.playing .audio-bar:nth-child(3) {
  animation: audio-bar-pulse 0.6s ease-in-out infinite;
  animation-delay: 0.2s;
}

.footer-audio.playing .audio-bar:nth-child(4) {
  animation: audio-bar-pulse 0.6s ease-in-out infinite;
  animation-delay: 0.15s;
}

.footer-audio.playing .audio-bar:nth-child(5) {
  animation: audio-bar-pulse 0.6s ease-in-out infinite;
  animation-delay: 0.05s;
}

/* Muted state - static and dimmed */
.footer-audio.muted {
  opacity: 0.4;
  border-color: rgba(255, 0, 0, 0.3);
  background: rgba(255, 0, 0, 0.05);
}

.footer-audio.muted:hover {
  opacity: 0.6;
  border-color: rgba(255, 0, 0, 0.6);
  box-shadow: 0 0 15px rgba(255, 0, 0, 0.3);
}

.footer-audio.muted .audio-bar {
  background: rgba(255, 0, 0, 0.5);
  box-shadow: 0 0 5px rgba(255, 0, 0, 0.3);
  animation: none;
}

@keyframes audio-bar-pulse {
  0%,
  100% {
    height: 8px;
    opacity: 0.7;
  }
  50% {
    height: 24px;
    opacity: 1;
  }
}

@keyframes pulse-warning {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  25% {
    opacity: 0.7;
    transform: scale(1.15);
  }
  50% {
    opacity: 0.5;
    transform: scale(1.2);
  }
  75% {
    opacity: 0.7;
    transform: scale(1.15);
  }
}

@keyframes pulse-glow {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

/* ==================
   Modal Styles
   ================== */

.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(3px);
  z-index: 10000;
  align-items: center;
  justify-content: center;
}

.modal.active {
  display: flex;
}

.modal-content {
  background: rgba(0, 0, 0, 0.92);
  border: 1px solid rgba(0, 255, 65, 0.4);
  border-radius: 0;
  max-width: 600px;
  width: 90%;
  box-shadow: 0 0 30px rgba(0, 255, 65, 0.15), 0 0 60px rgba(0, 255, 65, 0.08),
    inset 0 0 80px rgba(0, 255, 65, 0.02), var(--shadow-deep);
  animation: modal-appear 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  backdrop-filter: blur(20px);
  position: relative;
  overflow: hidden;
}

.modal-content::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--color-matrix-green),
    transparent
  );
  animation: scan-line 3s linear infinite;
}

@keyframes modal-appear {
  from {
    opacity: 0;
    transform: scale(0.95) translateY(-30px);
    filter: blur(10px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
    filter: blur(0);
  }
}

@keyframes scan-line {
  0%,
  100% {
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--spacing-lg) var(--spacing-xl);
  border-bottom: 1px solid rgba(0, 255, 65, 0.2);
  background: rgba(0, 255, 65, 0.03);
  position: relative;
}

.modal-header::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--color-matrix-green);
  box-shadow: 0 0 10px var(--color-matrix-green);
  opacity: 0.3;
}

.modal-header h2 {
  font-size: 1.4rem;
  margin: 0;
  font-family: var(--font-code);
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--color-matrix-green);
  text-shadow: 0 0 10px rgba(0, 255, 65, 0.3);
}

.modal-close {
  background: rgba(0, 255, 65, 0.05);
  border: 1px solid rgba(0, 255, 65, 0.2);
  color: var(--color-matrix-green);
  font-size: 1.5rem;
  cursor: pointer;
  transition: all var(--transition-fast);
  line-height: 1;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-code);
}

.modal-close:hover {
  background: rgba(0, 255, 65, 0.1);
  border-color: var(--color-matrix-green);
  color: var(--color-neon-green);
  transform: rotate(90deg);
  box-shadow: 0 0 15px rgba(0, 255, 65, 0.3);
}

.modal-body {
  padding: var(--spacing-xl);
  background: rgba(0, 0, 0, 0.3);
}

/* Form Styles */
.login-form,
.email-form {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-lg);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}

.form-group label {
  color: var(--color-matrix-green);
  font-family: var(--font-mono);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.form-group input,
.form-group textarea {
  background: var(--color-darker);
  border: 1px solid var(--color-dark-gray);
  color: var(--color-lighter-gray);
  padding: var(--spacing-md);
  font-family: var(--font-mono);
  font-size: 1rem;
  border-radius: 5px;
  transition: all var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-matrix-green);
  box-shadow: var(--glow-green);
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

/* Audio Consent Toggle - Redesigned */
.form-group.audio-consent {
  padding: 0;
  background: transparent;
  border: 1px solid rgba(0, 255, 65, 0.2);
  border-radius: 8px;
  margin-top: var(--spacing-lg);
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.form-group.audio-consent:hover {
  border-color: var(--color-matrix-green);
  box-shadow: 0 0 20px rgba(0, 255, 65, 0.2);
}

.audio-consent-header {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  padding: var(--spacing-lg);
  background: linear-gradient(
    135deg,
    rgba(0, 255, 65, 0.03) 0%,
    rgba(0, 255, 65, 0.08) 100%
  );
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.form-group.audio-consent:hover .audio-consent-header {
  background: linear-gradient(
    135deg,
    rgba(0, 255, 65, 0.08) 0%,
    rgba(0, 255, 65, 0.12) 100%
  );
}

.consent-icon {
  font-size: 2rem;
  color: var(--color-matrix-green);
  opacity: 0.8;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  text-shadow: 0 0 10px rgba(0, 255, 65, 0.5);
}

.form-group.audio-consent:hover .consent-icon {
  opacity: 1;
  transform: scale(1.1);
  text-shadow: 0 0 20px rgba(0, 255, 65, 0.8);
}

.audio-consent-label {
  flex: 1;
  cursor: pointer;
  margin: 0;
}

.consent-text {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-matrix-green);
  letter-spacing: 0.15em;
  display: block;
  margin-bottom: 4px;
  transition: all 0.3s ease;
}

.form-group.audio-consent:hover .consent-text {
  text-shadow: 0 0 10px rgba(0, 255, 65, 0.6);
}

.consent-description {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--color-dark-gray);
  margin: 0;
  letter-spacing: 0.05em;
  opacity: 0.8;
  transition: all 0.3s ease;
}

.form-group.audio-consent:hover .consent-description {
  opacity: 1;
  color: var(--color-light-gray);
}

/* Toggle Switch - Smooth Animated */
.toggle-switch {
  position: relative;
  width: 56px;
  height: 28px;
  flex-shrink: 0;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  border: 1.5px solid rgba(255, 0, 0, 0.4);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 28px;
  overflow: hidden;
}

.slider-button {
  position: absolute;
  height: 20px;
  width: 20px;
  left: 3px;
  top: 3px;
  background: linear-gradient(
    135deg,
    rgba(255, 0, 0, 1) 0%,
    rgba(200, 0, 0, 1) 100%
  );
  transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(255, 0, 0, 0.4),
    inset 0 1px 2px rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
}

.slider-button::before {
  content: "✕";
  font-size: 10px;
  color: rgba(255, 255, 255, 0.9);
  font-weight: bold;
}

.toggle-switch input:checked + .toggle-slider {
  background: rgba(0, 255, 65, 0.15);
  border-color: var(--color-matrix-green);
  box-shadow: inset 0 0 10px rgba(0, 255, 65, 0.3);
}

.toggle-switch input:checked + .toggle-slider .slider-button {
  transform: translateX(28px);
  background: linear-gradient(
    135deg,
    var(--color-matrix-green) 0%,
    rgba(0, 200, 50, 1) 100%
  );
  box-shadow: 0 2px 12px rgba(0, 255, 65, 0.6),
    inset 0 1px 2px rgba(255, 255, 255, 0.3);
}

.toggle-switch input:checked + .toggle-slider .slider-button::before {
  content: "✓";
  font-size: 12px;
  color: rgba(0, 0, 0, 0.8);
}

.toggle-slider::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(0, 255, 65, 0.2) 50%,
    transparent 100%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
  animation: none;
}

.toggle-switch input:checked + .toggle-slider::after {
  opacity: 1;
  animation: toggle-shimmer 2.5s ease-in-out infinite;
}

@keyframes toggle-shimmer {
  0%,
  100% {
    transform: translateX(-150%);
  }
  50% {
    transform: translateX(150%);
  }
}

.toggle-switch:hover .toggle-slider {
  transform: scale(1.05);
}

.toggle-switch input:checked:hover + .toggle-slider {
  box-shadow: inset 0 0 15px rgba(0, 255, 65, 0.4),
    0 0 20px rgba(0, 255, 65, 0.3);
}

.form-actions {
  display: flex;
  gap: var(--spacing-md);
  margin-top: var(--spacing-md);
}

.submit-btn,
.cancel-btn {
  flex: 1;
  padding: var(--spacing-md);
  border: 2px solid var(--color-matrix-green);
  background: transparent;
  color: var(--color-matrix-green);
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
  transition: all var(--transition-medium);
}

.submit-btn:hover {
  background: var(--color-matrix-green);
  color: var(--color-black);
  box-shadow: var(--glow-green-strong);
}

.cancel-btn {
  border-color: var(--color-gray);
  color: var(--color-gray);
}

.cancel-btn:hover {
  background: var(--color-gray);
  color: var(--color-black);
}

.modal-footer-text {
  margin-top: var(--spacing-lg);
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--color-gray);
}

/* ==================
   Desktop Page
   ================== */

.desktop-container {
  min-height: 100vh;
  position: relative;
  padding-bottom: 60px; /* Space for taskbar */
}

.desktop-content {
  padding: var(--spacing-xl);
  min-height: calc(100vh - 60px);
}

/* System Info Corner (Top Left) */
.system-info-corner {
  top: var(--spacing-xl);
  left: var(--spacing-xl);
  width: 280px;
}

.system-info-header {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-md);
  font-size: 1.2rem;
}

.status-indicator {
  color: var(--color-matrix-green);
  animation: pulse-indicator 2s infinite;
}

@keyframes pulse-indicator {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

.system-info-header .username-display {
  color: var(--color-matrix-green);
  text-shadow: var(--glow-green);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.system-info-stats {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xs);
  font-family: var(--font-mono);
  font-size: 0.85rem;
}

.info-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--spacing-xs) 0;
  border-bottom: 1px solid rgba(0, 255, 65, 0.1);
}

.info-label {
  color: var(--color-gray);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.info-value,
.login-count {
  color: var(--color-matrix-green);
  font-weight: 700;
}

.animated-info .info-value {
  animation: flicker-text 3s infinite;
}

@keyframes flicker-text {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
  75% {
    opacity: 1;
  }
  80% {
    opacity: 0.8;
  }
}

/* Standalone Large Clock - Centered */
.standalone-clock {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  z-index: 10;
  animation: fade-in 1s ease;
}

.standalone-clock-display {
  font-family: var(--font-mono);
}

.clock-time-large {
  font-size: 8rem;
  color: var(--color-matrix-green);
  text-shadow: var(--glow-green-strong);
  font-weight: 700;
  letter-spacing: 0.05em;
  line-height: 1;
}

.clock-time-large .separator {
  animation: blink 1s infinite;
}

.clock-date-large {
  margin-top: var(--spacing-lg);
  font-size: 1.5rem;
  color: var(--color-light-gray);
  font-family: var(--font-mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* Corner Widgets - Blended Style */
.corner-widget {
  position: fixed;
  z-index: 10;
  font-family: var(--font-mono);
  animation: fade-in 0.8s ease;
  padding: var(--spacing-lg);
}

/* Weather Corner (Bottom Left) */
.weather-corner {
  bottom: 80px;
  left: var(--spacing-xl);
}

.weather-corner .weather-main {
  margin-bottom: var(--spacing-md);
}

.weather-corner .temp-large {
  font-size: 3.5rem;
  color: var(--color-matrix-green);
  font-weight: 700;
  text-shadow: 0 0 20px rgba(0, 255, 65, 0.4);
  line-height: 1;
  opacity: 0.95;
}

.weather-corner .condition-text {
  font-size: 1rem;
  color: var(--color-light-gray);
  margin-top: var(--spacing-xs);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 0.8;
}

.weather-corner .weather-extras {
  display: flex;
  gap: var(--spacing-md);
  margin-top: var(--spacing-sm);
}

.weather-corner .weather-stat {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xs);
  font-size: 0.85rem;
  color: var(--color-gray);
  opacity: 0.85;
  transition: opacity var(--transition-fast);
}

.weather-corner .weather-stat:hover {
  opacity: 1;
}

.weather-corner .weather-stat span:first-child {
  color: var(--color-matrix-green);
  font-weight: 700;
  text-shadow: 0 0 10px rgba(0, 255, 65, 0.3);
}

.weather-corner .stat-value {
  color: var(--color-light-gray);
}

/* Calendar Corner (Bottom Right) */
.calendar-corner {
  bottom: 80px;
  right: var(--spacing-xl);
}

/* System Status Corner (Right Side) */
.system-corner {
  top: var(--spacing-xl);
  right: var(--spacing-xl);
  width: 280px;
}

.system-header {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-md);
  padding-bottom: var(--spacing-sm);
  border-bottom: 2px solid rgba(0, 255, 65, 0.2);
}

.system-header .status-indicator {
  color: var(--color-matrix-green);
  animation: pulse-indicator 2s infinite;
}

.system-title {
  color: var(--color-matrix-green);
  text-shadow: var(--glow-green);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.9rem;
}

.system-metrics {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xs);
  font-family: var(--font-mono);
  font-size: 0.85rem;
}

@keyframes fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.separator {
  animation: blink 1s infinite;
}

@keyframes blink {
  0%,
  49% {
    opacity: 1;
  }
  50%,
  100% {
    opacity: 0;
  }
}

.clock-date-display {
  margin-top: var(--spacing-md);
  font-size: 1rem;
  color: var(--color-light-gray);
  font-family: var(--font-mono);
}

/* Mini Calendar */
.mini-calendar {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: var(--spacing-xs);
  font-family: var(--font-mono);
  font-size: 0.9rem;
}

.calendar-day-cell {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(0, 255, 65, 0.1);
  border-radius: 3px;
  transition: all var(--transition-fast);
  opacity: 0.8;
}

.calendar-day-cell:hover {
  background: rgba(0, 255, 65, 0.05);
  border-color: rgba(0, 255, 65, 0.3);
  opacity: 1;
  box-shadow: 0 0 10px rgba(0, 255, 65, 0.2);
}

.calendar-day-cell.today {
  background: rgba(0, 255, 65, 0.2);
  color: var(--color-matrix-green);
  font-weight: 700;
  border-color: var(--color-matrix-green);
  box-shadow: 0 0 15px rgba(0, 255, 65, 0.4);
  opacity: 1;
}

.calendar-day-header {
  color: var(--color-matrix-green);
  font-weight: 700;
  text-shadow: 0 0 10px rgba(0, 255, 65, 0.3);
  opacity: 0.95;
}

/* Weather Desktop */
.weather-info {
  text-align: center;
}

.weather-main {
  margin-bottom: var(--spacing-lg);
}

.temp-large {
  font-size: 4rem;
  color: var(--color-matrix-green);
  font-weight: 700;
  text-shadow: var(--glow-green);
  font-family: var(--font-mono);
}

.condition-text {
  font-size: 1.1rem;
  color: var(--color-light-gray);
  margin-top: var(--spacing-sm);
}

.weather-extras {
  display: flex;
  justify-content: space-around;
  gap: var(--spacing-md);
}

.weather-stat {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xs);
  align-items: center;
  font-family: var(--font-mono);
}

.stat-value {
  color: var(--color-matrix-green);
  font-size: 0.9rem;
}

/* ==================
   Taskbar (Windows 11 Style)
   ================== */

.taskbar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 60px;
  background: rgba(10, 10, 10, 0.95);
  border-top: 1px solid var(--color-dark-gray);
  backdrop-filter: blur(20px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--spacing-lg);
  z-index: 1000;
}

.taskbar-left,
.taskbar-center,
.taskbar-right {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
}

.taskbar-button {
  background: transparent;
  border: 1px solid transparent;
  color: var(--color-light-gray);
  padding: var(--spacing-sm) var(--spacing-md);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
  font-family: var(--font-mono);
  font-size: 0.9rem;
  transition: all var(--transition-fast);
  border-radius: 5px;
}

.taskbar-button:hover {
  background: var(--color-dark-gray);
  border-color: var(--color-matrix-green);
}

.start-button {
  font-weight: 700;
  text-transform: uppercase;
  color: var(--color-matrix-green);
  text-shadow: 0 0 10px rgba(0, 255, 65, 0.5);
}

.search-button {
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.taskbar-app-button {
  background: transparent;
  border: 1px solid transparent;
  padding: var(--spacing-sm) var(--spacing-md);
  cursor: pointer;
  font-size: 0.85rem;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: all var(--transition-fast);
  border-radius: 5px;
  position: relative;
  color: var(--color-light-gray);
}

.taskbar-app-button:hover {
  background: rgba(0, 255, 65, 0.05);
  border-color: rgba(0, 255, 65, 0.3);
  color: var(--color-matrix-green);
}

.taskbar-app-button.active::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 30%;
  height: 3px;
  background: var(--color-matrix-green);
  box-shadow: var(--glow-green);
}

.system-tray {
  display: flex;
  gap: var(--spacing-xs);
}

.tray-icon {
  background: transparent;
  border: 1px solid transparent;
  color: var(--color-light-gray);
  padding: var(--spacing-xs) var(--spacing-sm);
  cursor: pointer;
  font-size: 0.8rem;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: all var(--transition-fast);
  border-radius: 4px;
}

.tray-icon:hover {
  color: var(--color-matrix-green);
  background: rgba(0, 255, 65, 0.05);
  border-color: rgba(0, 255, 65, 0.3);
  text-shadow: 0 0 10px rgba(0, 255, 65, 0.5);
}

.taskbar-clock {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--color-light-gray);
  padding-left: var(--spacing-md);
  border-left: 1px solid var(--color-dark-gray);
}

.taskbar-time {
  color: var(--color-matrix-green);
  font-weight: 700;
}

/* Taskbar Audio Visualizer */
.taskbar-audio {
  display: flex;
  gap: 3px;
  align-items: flex-end;
  height: 40px;
  padding: 8px 12px;
  margin-left: var(--spacing-md);
  border-left: 1px solid var(--color-dark-gray);
  cursor: pointer;
  transition: all 0.3s ease;
}

.taskbar-audio:hover {
  background: rgba(0, 255, 65, 0.1);
}

.taskbar-audio .audio-bar {
  width: 3px;
  height: 8px;
  background: var(--color-matrix-green);
  border-radius: 2px;
  transition: all 0.1s ease;
  box-shadow: 0 0 5px rgba(0, 255, 65, 0.5);
}

/* Playing state - animated bars */
.taskbar-audio.playing .audio-bar:nth-child(1) {
  animation: audio-bar-pulse 0.6s ease-in-out infinite;
  animation-delay: 0s;
}

.taskbar-audio.playing .audio-bar:nth-child(2) {
  animation: audio-bar-pulse 0.6s ease-in-out infinite;
  animation-delay: 0.1s;
}

.taskbar-audio.playing .audio-bar:nth-child(3) {
  animation: audio-bar-pulse 0.6s ease-in-out infinite;
  animation-delay: 0.2s;
}

.taskbar-audio.playing .audio-bar:nth-child(4) {
  animation: audio-bar-pulse 0.6s ease-in-out infinite;
  animation-delay: 0.15s;
}

.taskbar-audio.playing .audio-bar:nth-child(5) {
  animation: audio-bar-pulse 0.6s ease-in-out infinite;
  animation-delay: 0.05s;
}

/* Muted state - static and dimmed */
.taskbar-audio.muted {
  opacity: 0.5;
}

.taskbar-audio.muted .audio-bar {
  background: rgba(255, 0, 0, 0.5);
  box-shadow: 0 0 5px rgba(255, 0, 0, 0.3);
  animation: none;
}

/* Start Menu */
.start-menu {
  position: fixed;
  bottom: 70px;
  left: var(--spacing-lg);
  background: rgba(10, 10, 10, 0.98);
  border: 1px solid rgba(0, 255, 65, 0.3);
  border-radius: 8px;
  padding: var(--spacing-md);
  min-width: 280px;
  z-index: 1001;
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: all var(--transition-medium);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
}

.start-menu.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}

.start-menu-header {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-md);
  padding-bottom: var(--spacing-sm);
  border-bottom: 2px solid rgba(0, 255, 65, 0.2);
  color: var(--color-matrix-green);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.9rem;
}

.start-menu-header .status-indicator {
  animation: pulse-indicator 2s infinite;
}

.start-menu-nav {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xs);
}

.start-menu-item {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  padding: var(--spacing-sm) var(--spacing-md);
  background: transparent;
  border: 1px solid transparent;
  color: var(--color-light-gray);
  font-family: var(--font-mono);
  font-size: 0.9rem;
  cursor: pointer;
  transition: all var(--transition-fast);
  border-radius: 5px;
  text-decoration: none;
}

.start-menu-item:hover {
  background: rgba(0, 255, 65, 0.1);
  border-color: rgba(0, 255, 65, 0.3);
  color: var(--color-matrix-green);
}

.start-menu-item span:first-child {
  color: var(--color-matrix-green);
  font-size: 1.1rem;
}

.start-menu-divider {
  height: 1px;
  background: rgba(0, 255, 65, 0.2);
  margin: var(--spacing-sm) 0;
}

/* Theme Toggle Widget */
.theme-toggle-widget {
  position: fixed;
  bottom: 70px;
  right: var(--spacing-md);
  width: 32px;
  height: 32px;
  background: rgba(10, 10, 10, 0.8);
  border: 1px solid rgba(0, 255, 65, 0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-medium);
  z-index: 100;
  backdrop-filter: blur(10px);
}

.theme-toggle-widget.top-right {
  top: var(--spacing-md);
  bottom: auto;
}

.theme-toggle-widget:hover {
  background: rgba(0, 255, 65, 0.1);
  border-color: var(--color-matrix-green);
  box-shadow: 0 0 20px rgba(0, 255, 65, 0.3);
  transform: scale(1.15);
}

.theme-indicator {
  font-size: 1rem;
  color: var(--color-matrix-green);
  text-shadow: 0 0 15px rgba(0, 255, 65, 0.6);
  animation: pulse-indicator 2s infinite;
}

/* Audio Toggle Widget */
.audio-toggle-widget {
  position: fixed;
  top: var(--spacing-md);
  right: calc(var(--spacing-md) + 70px);
  z-index: 9998;
  width: 50px;
  height: 50px;
  background: rgba(0, 0, 0, 0.7);
  border: 1px solid rgba(0, 255, 65, 0.3);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.audio-toggle-widget:hover {
  background: rgba(0, 255, 65, 0.1);
  border-color: var(--color-matrix-green);
  box-shadow: 0 0 20px rgba(0, 255, 65, 0.3);
  transform: scale(1.15);
}

.audio-toggle-widget.muted {
  opacity: 0.4;
  border-color: rgba(255, 0, 0, 0.5);
}

.audio-toggle-widget.muted:hover {
  border-color: rgba(255, 0, 0, 0.8);
  box-shadow: 0 0 20px rgba(255, 0, 0, 0.3);
}

.audio-indicator {
  font-size: 1.2rem;
  color: var(--color-matrix-green);
  text-shadow: 0 0 15px rgba(0, 255, 65, 0.6);
  animation: pulse-indicator 2s infinite;
}

.audio-toggle-widget.muted .audio-indicator {
  color: rgba(255, 0, 0, 0.7);
  text-shadow: 0 0 10px rgba(255, 0, 0, 0.4);
  animation: none;
}

/* Live Terminal Widget - Blended Desktop Style */
.live-terminal-widget {
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%);
  width: 650px;
  max-width: 90vw;
}

.live-terminal-widget .info-label {
  font-size: 0.8rem;
  letter-spacing: 1.5px;
  color: var(--color-matrix-green);
  text-shadow: 0 0 10px rgba(0, 255, 65, 0.3);
}

.live-terminal-widget .info-value {
  transition: all var(--transition-fast);
}

.live-terminal-widget .info-value:hover {
  color: var(--color-neon-green);
  text-shadow: 0 0 15px rgba(0, 255, 65, 0.6);
  transform: scale(1.1);
}

.terminal-widget-output {
  max-height: 180px;
  overflow-y: auto;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  line-height: 1.6;
  color: var(--color-matrix-green);
  opacity: 0.9;
}

.terminal-widget-output::-webkit-scrollbar {
  width: 4px;
}

.terminal-widget-output::-webkit-scrollbar-track {
  background: transparent;
}

.terminal-widget-output::-webkit-scrollbar-thumb {
  background: rgba(0, 255, 65, 0.2);
  border-radius: 2px;
}

.terminal-widget-output::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 255, 65, 0.4);
}

/* Email Modal Specific */
.email-modal-content {
  max-width: 600px;
}

/* Search Modal */
.search-modal-content {
  max-width: 700px;
}

.search-container {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

.search-input {
  width: 100%;
  padding: var(--spacing-md);
  background: rgba(5, 5, 5, 0.5);
  border: 1px solid rgba(0, 255, 65, 0.3);
  border-radius: 5px;
  color: var(--color-matrix-green);
  font-family: var(--font-mono);
  font-size: 1rem;
  outline: none;
  transition: all var(--transition-fast);
}

.search-input:focus {
  border-color: var(--color-matrix-green);
  box-shadow: 0 0 15px rgba(0, 255, 65, 0.3);
}

.search-results {
  min-height: 200px;
  padding: var(--spacing-md);
  background: rgba(5, 5, 5, 0.3);
  border: 1px solid rgba(0, 255, 65, 0.1);
  border-radius: 5px;
}

/* Files Modal */
.files-modal-content {
  max-width: 800px;
}

.file-manager {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

.file-path {
  display: flex;
  gap: var(--spacing-sm);
  padding: var(--spacing-sm) var(--spacing-md);
  background: rgba(5, 5, 5, 0.5);
  border: 1px solid rgba(0, 255, 65, 0.2);
  border-radius: 5px;
  font-family: var(--font-mono);
  font-size: 0.9rem;
}

.file-browser-header {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  padding: var(--spacing-sm) var(--spacing-md);
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(0, 255, 65, 0.25);
  margin: 0 0 var(--spacing-md);
  border-radius: 4px;
}

.file-browser-nav {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
}

.file-back-btn {
  background: rgba(0, 255, 65, 0.05);
  border: 1px solid rgba(0, 255, 65, 0.3);
  color: var(--color-matrix-green);
  font-family: var(--font-code);
  font-size: 0.7rem;
  letter-spacing: 1px;
  padding: 6px 10px;
  cursor: pointer;
  text-transform: uppercase;
  position: relative;
  overflow: hidden;
  transition: all var(--transition-fast);
}

.file-back-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, rgba(0, 255, 65, 0.2), transparent 70%);
  opacity: 0;
  transform: translateX(-20%);
  transition: all var(--transition-fast);
}

.file-back-btn:hover {
  background: rgba(0, 255, 65, 0.12);
  box-shadow: 0 0 15px rgba(0, 255, 65, 0.3);
  border-color: var(--color-matrix-green);
}

.file-back-btn:hover::before {
  opacity: 1;
  transform: translateX(0);
}

.file-icon-glow {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  font-size: 0.85rem;
  color: var(--color-matrix-green);
  text-shadow: 0 0 8px rgba(0, 255, 65, 0.5);
}

.file-icon-glow::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(0, 255, 65, 0.3);
  box-shadow: 0 0 10px rgba(0, 255, 65, 0.3),
    inset 0 0 6px rgba(0, 255, 65, 0.2);
  opacity: 0.4;
  border-radius: 4px;
}

.file-item.directory .file-icon-glow {
  color: var(--color-neon-green);
  text-shadow: 0 0 10px rgba(57, 255, 20, 0.6);
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
  font-family: var(--font-code);
  font-size: 0.85rem;
  color: var(--color-matrix-green);
}

.breadcrumb-item {
  cursor: pointer;
  transition: all var(--transition-fast);
}

.breadcrumb-item:hover {
  color: var(--color-neon-green);
  text-shadow: 0 0 10px rgba(0, 255, 65, 0.5);
}

.breadcrumb-separator {
  color: var(--color-gray);
}

.file-list {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xs);
  max-height: 500px;
  overflow-y: auto;
}

.file-list::-webkit-scrollbar {
  width: 8px;
}

.file-list::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.3);
}

.file-list::-webkit-scrollbar-thumb {
  background: rgba(0, 255, 65, 0.3);
  border-radius: 4px;
}

.file-list::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 255, 65, 0.5);
}

.file-item {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  padding: var(--spacing-sm) var(--spacing-md);
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(0, 255, 65, 0.15);
  cursor: pointer;
  transition: all var(--transition-fast);
  position: relative;
  overflow: hidden;
}

.file-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--color-matrix-green);
  transform: translateX(-3px);
  transition: transform var(--transition-fast);
}

.file-item:hover {
  background: rgba(0, 255, 65, 0.08);
  border-color: rgba(0, 255, 65, 0.4);
  box-shadow: 0 0 15px rgba(0, 255, 65, 0.1);
}

.file-item:hover::before {
  transform: translateX(0);
}

.file-icon {
  color: var(--color-matrix-green);
  font-size: 1.3rem;
  min-width: 24px;
  text-align: center;
  text-shadow: 0 0 8px rgba(0, 255, 65, 0.3);
}

.file-name {
  flex: 1;
  color: var(--color-light-gray);
  font-family: var(--font-code);
  font-size: 0.9rem;
}

.file-meta {
  color: var(--color-gray);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-align: right;
}

.file-item.directory .file-name {
  color: var(--color-matrix-green);
  font-weight: 600;
}

.file-item.directory .file-icon {
  font-size: 1.4rem;
}

/* Terminal Modal */
.terminal-modal-content {
  max-width: 1000px;
  width: 95%;
}

.terminal {
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(0, 255, 65, 0.2);
  padding: var(--spacing-md);
  font-family: var(--font-mono);
  min-height: 450px;
  display: flex;
  flex-direction: column;
  position: relative;
}

.terminal::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: repeating-linear-gradient(
    0deg,
    rgba(0, 255, 65, 0.03) 0px,
    transparent 1px,
    transparent 2px,
    rgba(0, 255, 65, 0.03) 3px
  );
  pointer-events: none;
  animation: scan-lines 8s linear infinite;
}

@keyframes scan-lines {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(4px);
  }
}

.terminal-output {
  flex: 1;
  overflow-y: auto;
  margin-bottom: var(--spacing-md);
  max-height: 350px;
}

.terminal-line {
  display: flex;
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-xs);
  animation: terminal-fade-in 0.3s ease;
}

@keyframes terminal-fade-in {
  from {
    opacity: 0;
    transform: translateX(-10px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.terminal-prompt {
  color: var(--color-matrix-green);
  font-weight: 700;
  text-shadow: 0 0 10px rgba(0, 255, 65, 0.4);
}

.terminal-text {
  color: var(--color-light-gray);
  animation: terminal-type 0.5s ease;
}

@keyframes terminal-type {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.terminal-input-line {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  border-top: 1px solid rgba(0, 255, 65, 0.2);
  padding-top: var(--spacing-sm);
}

.terminal-input {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--color-light-gray);
  font-family: var(--font-mono);
  font-size: 0.95rem;
  outline: none;
  caret-color: var(--color-matrix-green);
}

.terminal-input::placeholder {
  color: var(--color-dark-gray);
}

/* ==================
   Responsive Design
   ================== */

@media (max-width: 768px) {
  .glitch-text {
    font-size: 2.5rem;
  }

  .subtitle {
    font-size: 1.2rem;
  }

  .widget-grid {
    grid-template-columns: 1fr;
  }

  .standalone-clock {
    position: relative;
    left: auto;
    top: auto;
    transform: none;
    margin: var(--spacing-xl) 0;
  }

  .clock-time-large {
    font-size: 4rem;
  }

  .corner-widget {
    position: relative;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    top: auto !important;
    margin: var(--spacing-lg) 0;
    width: 100% !important;
  }

  .weather-corner .temp-large {
    font-size: 2.5rem;
  }

  .system-corner {
    width: 100% !important;
  }

  .system-info-corner {
    width: 100% !important;
  }

  .taskbar {
    height: auto;
    flex-direction: column;
    padding: var(--spacing-sm);
    gap: var(--spacing-sm);
  }

  .taskbar-left,
  .taskbar-center,
  .taskbar-right {
    width: 100%;
    justify-content: center;
  }

  .desktop-content {
    padding-bottom: 150px;
  }
}

@media (max-width: 480px) {
  .glitch-text {
    font-size: 2rem;
  }

  .hero-section {
    padding: var(--spacing-lg);
  }

  .modal-content {
    width: 95%;
  }

  .clock-display {
    font-size: 2rem;
  }

  .temp-large {
    font-size: 3rem;
  }
}

/* ==================
   Utility Classes
   ================== */

.text-center {
  text-align: center;
}
.text-mono {
  font-family: var(--font-mono);
}
.text-glow {
  text-shadow: var(--glow-green);
}
.hidden {
  display: none !important;
}
.fade-in {
  animation: fade-in 0.5s ease;
}

/* Crash Overlay */
.system-crash {
  position: fixed;
  inset: 0;
  background: radial-gradient(
    circle at 50% 50%,
    rgba(0, 0, 0, 0.85),
    rgba(0, 0, 0, 0.98)
  );
  backdrop-filter: blur(10px);
  z-index: 11000;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.8s ease;
}
.system-crash.active {
  opacity: 1;
  pointer-events: all;
}
.system-crash .crash-content {
  text-align: center;
  max-width: 520px;
  padding: 30px 40px;
  border: 1px solid rgba(255, 0, 70, 0.4);
  border-radius: 14px;
  background: rgba(20, 0, 10, 0.6);
  box-shadow: 0 0 40px rgba(255, 0, 80, 0.5);
  animation: crash-pulse 2.8s ease-in-out infinite;
}
.system-crash .crash-msg {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  color: var(--color-light-gray);
  margin: 18px 0 24px;
}
@keyframes crash-pulse {
  0%,
  100% {
    box-shadow: 0 0 40px rgba(255, 0, 80, 0.5);
  }
  50% {
    box-shadow: 0 0 60px rgba(255, 0, 80, 0.9);
  }
}
