/* AEGIS — classic Y2K motion
   Snappy window opens, gentle CRT-style hovers, marquee ticks. */

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes fadeOut {
  from { opacity: 1; }
  to { opacity: 0; }
}
@keyframes slideUp {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
@keyframes slideDown {
  from { transform: translateY(-20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
@keyframes scaleIn {
  from { transform: scale(0.9); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}
@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 10px #6cb6ff, 0 0 20px #6cb6ff; }
  50% { box-shadow: 0 0 20px #ffd700, 0 0 40px #ffd700; }
}
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
@keyframes blink {
  0%, 50% { opacity: 1; }
  50.01%, 100% { opacity: 0; }
}
@keyframes spin {
  to { transform: rotate(360deg); }
}
@keyframes shake {
  0%, 100% { transform: translate(0, 0); }
  25% { transform: translate(-2px, 1px); }
  50% { transform: translate(2px, -1px); }
  75% { transform: translate(-1px, -2px); }
}
@keyframes typewriter {
  from { width: 0; }
  to { width: 100%; }
}
@keyframes scanline {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(100vh); }
}

/* CRT scanline overlay for fun (subtle) */
.crt-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9998;
  background: repeating-linear-gradient(
    0deg,
    rgba(0, 0, 0, 0.05) 0,
    rgba(0, 0, 0, 0.05) 1px,
    transparent 1px,
    transparent 3px
  );
  opacity: 0.4;
}

/* Window open animation */
.xp-window.anim-open {
  animation: scaleIn 0.18s ease-out;
}

/* Tooltip */
.aegis-tooltip {
  position: absolute;
  background: #ffffe0;
  border: 1px solid #000;
  padding: 3px 8px;
  font-size: 11px;
  color: #000;
  z-index: 10000;
  box-shadow: 1px 1px 2px rgba(0,0,0,0.3);
  pointer-events: none;
  white-space: nowrap;
  animation: fadeIn 0.15s;
}

/* Loading spinner (Win XP style) */
.xp-spinner {
  width: 16px; height: 16px;
  background: conic-gradient(from 0deg, transparent 0%, #1f4fb8 25%, transparent 50%);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  display: inline-block;
}
.xp-spinner-lg {
  width: 48px; height: 48px;
  background: conic-gradient(from 0deg, transparent 0%, #1f4fb8 25%, transparent 50%);
  border-radius: 50%;
  animation: spin 1.5s linear infinite;
  display: inline-block;
  position: relative;
}
.xp-spinner-lg::after {
  content: '';
  position: absolute;
  inset: 4px;
  background: #fff;
  border-radius: 50%;
}

/* Marquee for trust ticker */
.marquee {
  overflow: hidden;
  white-space: nowrap;
  background: #000;
  color: #6cd06c;
  font-family: "Lucida Console", monospace;
  font-size: 11px;
  padding: 4px 0;
  border-top: 1px solid #444;
  border-bottom: 1px solid #444;
  position: relative;
}
.marquee-content {
  display: inline-block;
  animation: marquee 60s linear infinite;
  padding-left: 100%;
}
.marquee-content span { margin-right: 50px; }

/* Status pulse dot */
.pulse-dot {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #2d8a2d;
  animation: pulse 1.5s infinite;
  box-shadow: 0 0 6px #2d8a2d;
}
.pulse-dot.warn { background: #c89020; box-shadow: 0 0 6px #c89020; }
.pulse-dot.err { background: #c02020; box-shadow: 0 0 6px #c02020; }

/* Dropdown menu */
.xp-dropdown {
  position: absolute;
  background: #fff;
  border: 1px solid #888;
  box-shadow: 2px 2px 4px rgba(0,0,0,0.3);
  z-index: 9000;
  min-width: 180px;
  font-size: 11px;
  padding: 2px 0;
}
.xp-dropdown-item {
  padding: 4px 20px 4px 24px;
  cursor: pointer;
  position: relative;
}
.xp-dropdown-item:hover {
  background: linear-gradient(180deg, #6cb6ff 0%, #245edb 100%);
  color: #fff;
}
.xp-dropdown-sep {
  height: 1px;
  background: #ccc;
  margin: 2px 0;
}
.xp-dropdown-item .shortcut {
  float: right;
  color: #888;
  margin-left: 20px;
  font-size: 10px;
}
.xp-dropdown-item:hover .shortcut { color: #fff; }

/* Slide-in panel */
.xp-slide {
  animation: slideUp 0.25s ease-out;
}

/* Field focus glow */
.xp-input:focus, .xp-textarea:focus, .xp-select:focus {
  box-shadow: inset 1px 1px 0 #888, 0 0 4px #6cb6ff;
}

/* Hover for tables */
.xp-table tr {
  transition: background 0.1s;
}

/* ============================================
   ZYANIX SPLASH SCREEN
   ============================================ */
@keyframes zyanixFadeIn {
  0%   { opacity: 0; transform: scale(0.92); }
  100% { opacity: 1; transform: scale(1); }
}
@keyframes zyanixFadeOut {
  0%   { opacity: 1; transform: scale(1); }
  100% { opacity: 0; transform: scale(1.04); }
}
@keyframes zyanixBarFill {
  0%   { width: 0%; }
  100% { width: 100%; }
}
@keyframes zyanixGlow {
  0%, 100% { text-shadow: 0 0 18px rgba(108,182,255,0.7), 0 0 40px rgba(108,182,255,0.3); }
  50%       { text-shadow: 0 0 32px rgba(108,182,255,1),   0 0 70px rgba(31,79,184,0.6); }
}
@keyframes zyanixLineExpand {
  from { width: 0; opacity: 0; }
  to   { width: 100%; opacity: 1; }
}

.zyanix-splash {
  position: fixed;
  inset: 0;
  z-index: 9998;
  background: radial-gradient(ellipse at 50% 40%, #0a1f5c 0%, #000820 60%, #000 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: zyanixFadeIn 0.5s ease-out forwards;
}
.zyanix-splash.fade-out {
  animation: zyanixFadeOut 0.6s ease-in forwards;
}

.zyanix-splash-box {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.zyanix-logo-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.zyanix-logo-text {
  font-size: 62px;
  font-weight: 900;
  font-family: "Trebuchet MS", "Franklin Gothic Medium", Arial, sans-serif;
  letter-spacing: 12px;
  color: #fff;
  background: linear-gradient(135deg, #ffffff 0%, #6cb6ff 40%, #1f4fb8 70%, #6cb6ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: zyanixGlow 2s ease-in-out infinite;
  filter: drop-shadow(0 2px 8px rgba(108,182,255,0.5));
}

.zyanix-logo-line {
  height: 2px;
  background: linear-gradient(90deg, transparent, #6cb6ff, #fff, #6cb6ff, transparent);
  border-radius: 2px;
  animation: zyanixLineExpand 0.6s 0.3s ease-out both;
  width: 0;
  align-self: stretch;
}

.zyanix-sub {
  font-size: 11px;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: #6cb6ff;
  font-family: "Tahoma", sans-serif;
  opacity: 0.9;
}

.zyanix-product {
  font-size: 20px;
  font-weight: bold;
  color: #fff;
  font-family: "Trebuchet MS", sans-serif;
  letter-spacing: 2px;
  margin-top: 4px;
  text-shadow: 0 1px 10px rgba(108,182,255,0.6);
}

.zyanix-owner {
  font-size: 12px;
  color: #aac8ff;
  letter-spacing: 1px;
  font-family: "Tahoma", sans-serif;
}
.zyanix-owner strong {
  color: #fff;
  font-size: 13px;
}

.zyanix-bar-wrap {
  width: 220px;
  height: 3px;
  background: rgba(255,255,255,0.12);
  border-radius: 2px;
  overflow: hidden;
  margin-top: 16px;
}
.zyanix-bar {
  height: 100%;
  background: linear-gradient(90deg, #1f4fb8, #6cb6ff, #fff);
  border-radius: 2px;
  animation: zyanixBarFill 1.6s 0.2s ease-out both;
}
