/* WorldPolicy-Env V6.1 — Liquid Glass + Skeuomorphism Design System */

@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;600;700&family=Inter:wght@400;500;600;700&display=swap');

:root {
  --glass-bg:             rgba(255, 255, 255, 0.05);
  --glass-bg-hover:       rgba(255, 255, 255, 0.09);
  --glass-bg-active:      rgba(255, 255, 255, 0.13);
  --glass-border:         rgba(255, 255, 255, 0.12);
  --glass-border-bright:  rgba(255, 255, 255, 0.25);
  --glass-blur:           blur(24px);
  --glass-blur-heavy:     blur(40px);

  --shadow-glass:         0 8px 32px rgba(0,0,0,0.45),
                          inset 0 1px 0 rgba(255,255,255,0.10),
                          inset 0 -1px 0 rgba(0,0,0,0.20);
  --shadow-glass-raised:  0 16px 48px rgba(0,0,0,0.6),
                          inset 0 2px 0 rgba(255,255,255,0.15),
                          inset 0 -2px 0 rgba(0,0,0,0.25);
  --shadow-button:        0 4px 12px rgba(0,0,0,0.4),
                          inset 0 1px 0 rgba(255,255,255,0.18),
                          inset 0 -1px 0 rgba(0,0,0,0.3);

  --led-off:              radial-gradient(circle at 35% 35%, #2a2a2a, #111111);
  --led-green:            radial-gradient(circle at 35% 35%, #4ade80, #16a34a);
  --led-green-glow:       0 0 8px #22c55e, 0 0 16px rgba(34,197,94,0.4);
  --led-red:              radial-gradient(circle at 35% 35%, #f87171, #dc2626);
  --led-red-glow:         0 0 8px #ef4444, 0 0 16px rgba(239,68,68,0.4);
  --led-amber:            radial-gradient(circle at 35% 35%, #fbbf24, #d97706);
  --led-amber-glow:       0 0 8px #f59e0b, 0 0 16px rgba(245,158,11,0.4);
  --led-blue:             radial-gradient(circle at 35% 35%, #60a5fa, #2563eb);
  --led-blue-glow:        0 0 8px #3b82f6, 0 0 16px rgba(59,130,246,0.4);

  --accent-blue:   #3b82f6;
  --accent-green:  #22c55e;
  --accent-red:    #ef4444;
  --accent-amber:  #f59e0b;
  --accent-teal:   #14b8a6;
  --accent-violet: #8b5cf6;

  --font-mono:     'JetBrains Mono', 'Fira Code', monospace;
  --font-ui:       'Inter', system-ui, sans-serif;

  --bg-deep:       #050810;
  --bg-surface:    #0a0e1a;
  --globe-bg:      #080d1a;
}

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

body {
  background: var(--bg-deep);
  color: rgba(255,255,255,0.85);
  font-family: var(--font-ui);
  overflow: hidden;
  height: 100vh;
}

/* Glass Panel */
.glass-panel {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  box-shadow: var(--shadow-glass);
  position: relative;
}
.glass-panel::before {
  content: '';
  position: absolute;
  top: 0; left: 12px; right: 12px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3) 20%, rgba(255,255,255,0.5) 50%, rgba(255,255,255,0.3) 80%, transparent);
  border-radius: 16px 16px 0 0;
  pointer-events: none;
}

/* Buttons */
.btn-skeu {
  background: linear-gradient(180deg, rgba(255,255,255,0.12) 0%, rgba(255,255,255,0.04) 100%);
  border: 1px solid var(--glass-border-bright);
  border-radius: 10px;
  box-shadow: var(--shadow-button);
  padding: 8px 20px;
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.3px;
  color: rgba(255,255,255,0.9);
  transition: all 0.15s ease;
  cursor: pointer;
  user-select: none;
}
.btn-skeu:hover { background: linear-gradient(180deg, rgba(255,255,255,0.18) 0%, rgba(255,255,255,0.08) 100%); }
.btn-skeu:active {
  background: linear-gradient(180deg, rgba(0,0,0,0.1) 0%, rgba(255,255,255,0.06) 100%);
  box-shadow: 0 2px 8px rgba(0,0,0,0.4), inset 0 2px 4px rgba(0,0,0,0.3);
  transform: translateY(1px);
}
.btn-skeu-primary {
  background: linear-gradient(180deg, #4f9eff 0%, #1d6fda 60%, #1558b8 100%);
  border-color: rgba(100, 170, 255, 0.4);
  box-shadow: 0 4px 16px rgba(29,111,218,0.5), inset 0 1px 0 rgba(255,255,255,0.25);
}
.btn-skeu-primary:hover {
  background: linear-gradient(180deg, #6ab0ff 0%, #2a7de8 60%, #1a65c8 100%);
}
.btn-skeu-danger {
  background: linear-gradient(180deg, #f87171 0%, #dc2626 60%, #b91c1c 100%);
  border-color: rgba(255, 100, 100, 0.4);
  box-shadow: 0 4px 16px rgba(220,38,38,0.5), inset 0 1px 0 rgba(255,255,255,0.2);
}

/* LED */
.led {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--led-off);
  border: 1px solid rgba(0,0,0,0.5);
  box-shadow: inset 0 1px 2px rgba(255,255,255,0.1);
  flex-shrink: 0;
  transition: all 0.4s ease;
}
.led-green  { background: var(--led-green);  box-shadow: var(--led-green-glow); }
.led-red    { background: var(--led-red);    box-shadow: var(--led-red-glow); }
.led-amber  { background: var(--led-amber);  box-shadow: var(--led-amber-glow); }
.led-blue   { background: var(--led-blue);   box-shadow: var(--led-blue-glow); }

@keyframes led-pulse {
  0%, 100% { opacity: 1.0; }
  50%      { opacity: 0.4; }
}
.led-pulse { animation: led-pulse 1.5s ease-in-out infinite; }

@keyframes glass-appear {
  from { opacity: 0; transform: translateY(8px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.glass-appear { animation: glass-appear 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards; }

/* Scrollbar */
.panel-scroll::-webkit-scrollbar { width: 4px; }
.panel-scroll::-webkit-scrollbar-track { background: transparent; }
.panel-scroll::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 2px; }
.panel-scroll { scrollbar-width: thin; scrollbar-color: rgba(255,255,255,0.1) transparent; }
