/* ApexPOS tokens for the Flutter splash (from pos-styles.css). */
:root {
  --que-primary: #2563eb;
  --que-page: #f8fafc;
  --que-ink: #0f172a;
  --que-muted: #64748b;
}

html,
body {
  background: var(--que-page) !important;
  color: var(--que-ink);
  font-family: Inter, system-ui, -apple-system, sans-serif;
}

body {
  background-image:
    radial-gradient(ellipse 80% 50% at 10% -10%, rgba(59, 130, 246, 0.16), transparent),
    radial-gradient(ellipse 70% 45% at 100% 0%, rgba(6, 182, 212, 0.10), transparent) !important;
}

.splash-shell {
  font-family: Inter, system-ui, -apple-system, sans-serif;
}

.splash-card {
  border-color: #e2e8f0 !important;
  background: rgba(255, 255, 255, 0.85) !important;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.03) !important;
  border-radius: 16px !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  animation: QueFadeSlide 0.25s ease-out;
}

.splash-brand {
  color: var(--que-primary) !important;
  font-family: Inter, system-ui, sans-serif !important;
}

.splash-tagline,
.splash-hint {
  color: var(--que-muted) !important;
}

.splash-spinner {
  display: none !important;
}

.que-loader {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 28px auto 0;
  height: 42px;
}

.que-loader > .dot {
  height: 10px;
  width: 10px;
  border-radius: 50%;
  background-color: var(--que-primary);
  margin: 0 2px;
  animation: shadow-bounce 0.52s infinite ease alternate;
}

.que-loader > .dot:nth-child(1) { animation-delay: -0.09s; }
.que-loader > .dot:nth-child(2) { animation-delay: -0.17s; }
.que-loader > .dot:nth-child(3) { animation-delay: -0.26s; }
.que-loader > .dot:nth-child(4) { animation-delay: -0.35s; }

@keyframes shadow-bounce {
  0% {
    transform: translateY(0);
    box-shadow: 0 2.5px 1px rgba(37, 99, 235, 0.2);
  }
  100% {
    transform: translateY(-20px);
    box-shadow: 0 50px 8px rgba(0, 0, 0, 0.05);
  }
}

@keyframes QueFadeSlide {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-color-scheme: dark) {
  :root {
    --que-page: #020617;
    --que-ink: #f8fafc;
    --que-muted: #94a3b8;
    --que-primary: #3b82f6;
  }

  body {
    background-image:
      radial-gradient(ellipse 80% 50% at 10% -10%, rgba(59, 130, 246, 0.18), transparent),
      radial-gradient(ellipse 70% 45% at 100% 0%, rgba(6, 182, 212, 0.10), transparent) !important;
  }

  .splash-card {
    border-color: rgba(255, 255, 255, 0.08) !important;
    background: rgba(15, 23, 42, 0.75) !important;
  }
}
