/* ==========================================================================
   PII Sentinel - Cyber Core / Tactical HUD Styling System
   ========================================================================== */

/* CRT Scanline Overlay */
.crt-overlay {
  background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.35) 50%),
              linear-gradient(90deg, rgba(203, 255, 182, 0.03), rgba(0, 224, 255, 0.02), rgba(255, 0, 127, 0.03));
  background-size: 100% 4px, 4px 100%;
  pointer-events: none;
  z-index: 40;
}

/* Background Noise Texture */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 1;
}

/* Glitch Hover Animation */
.glitch-hover:hover {
  animation: glitch-anim 0.25s cubic-bezier(.25, .46, .45, .94) both infinite;
}

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

/* Glow Effects */
.toxic-glow {
  box-shadow: 0 0 15px rgba(203, 255, 182, 0.35), inset 0 0 10px rgba(203, 255, 182, 0.08);
}

.text-glow {
  text-shadow: 0 0 8px rgba(203, 255, 182, 0.6);
}

.cyan-glow {
  box-shadow: 0 0 15px rgba(0, 224, 255, 0.35);
}

.pink-glow {
  box-shadow: 0 0 15px rgba(255, 0, 127, 0.35);
}

.warning-glow {
  text-shadow: 0 0 12px rgba(203, 255, 182, 0.8);
  animation: blink 1.2s step-end infinite;
}

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

/* Laser Sweep Scan Animation */
.sweep-line {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: rgba(203, 255, 182, 0.7);
  box-shadow: 0 0 12px #CBFFB6, 0 0 20px #00E0FF;
  animation: sweep 3.5s linear infinite;
  z-index: 15;
  pointer-events: none;
}

@keyframes sweep {
  0% { top: -5%; opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { top: 105%; opacity: 0; }
}

/* Tactical HUD Corner Brackets */
.hud-corner {
  position: absolute;
  width: 8px;
  height: 8px;
  border-color: #8c9386;
  border-style: solid;
  pointer-events: none;
  z-index: 10;
}

.hud-tl { top: -1px; left: -1px; border-width: 2px 0 0 2px; }
.hud-tr { top: -1px; right: -1px; border-width: 2px 2px 0 0; }
.hud-bl { bottom: -1px; left: -1px; border-width: 0 0 2px 2px; }
.hud-br { bottom: -1px; right: -1px; border-width: 0 2px 2px 0; }

.hud-panel {
  position: relative;
  background: #121212;
  border: 1px solid #353534;
  transition: all 0.2s ease;
}

.hud-panel:hover {
  border-color: #8c9386;
}

.hud-tag {
  position: absolute;
  top: 0;
  left: 0;
  background: #353534;
  color: #050505;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 700;
  padding: 1px 6px;
  letter-spacing: 0.08em;
  z-index: 10;
}

/* Custom Tactical Scrollbars */
.custom-scroll::-webkit-scrollbar {
  width: 5px;
  height: 5px;
}
.custom-scroll::-webkit-scrollbar-track {
  background: #0e0e0e;
}
.custom-scroll::-webkit-scrollbar-thumb {
  background: #353534;
  border-radius: 0px;
}
.custom-scroll::-webkit-scrollbar-thumb:hover {
  background: #CBFFB6;
}

/* Sample preset chips */
.sample-chip {
  padding: 0.3rem 0.65rem;
  font-size: 0.7rem;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  background: #1c1b1b;
  border: 1px solid #353534;
  color: #c2c9ba;
  transition: all 0.15s ease;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.sample-chip:hover {
  background: rgba(203, 255, 182, 0.12);
  border-color: #CBFFB6;
  color: #CBFFB6;
  box-shadow: 0 0 10px rgba(203, 255, 182, 0.25);
  transform: translateY(-1px);
}

/* Style radio label buttons */
.style-radio-label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.55rem;
  background: #1c1b1b;
  border: 1px solid #353534;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.style-radio-label:hover {
  border-color: #00E0FF;
  color: #00E0FF;
}
.style-radio-label:has(input:checked) {
  border-color: #CBFFB6;
  background: rgba(203, 255, 182, 0.1);
  color: #CBFFB6;
  box-shadow: inset 0 0 8px rgba(203, 255, 182, 0.15);
}

/* Interactive PII highlight tags */
.pii-highlight {
  display: inline-block;
  padding: 1px 5px;
  margin: 1px 0;
  border-radius: 0px;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  position: relative;
  cursor: pointer;
  transition: all 0.15s ease;
}
.pii-highlight:hover {
  transform: scale(1.03);
  filter: brightness(1.25);
  box-shadow: 0 0 10px rgba(203, 255, 182, 0.5);
}

/* Comparison curtain slider */
.curtain-input-slider {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: ew-resize;
  z-index: 20;
}
