/* ============================================================
   SarvTools — Universal Omni-Dropzone Portal CSS
   Next-Gen Display P3 / OKLCH Ambient Glow with Glassmorphism
   Handles global viewport drag-and-drop with zero layout shift.
   ============================================================ */

:root {
  --omni-glow-p3: rgba(56, 189, 248, 0.35);
  --omni-accent-p3: #38bdf8;
  --omni-border: rgba(56, 189, 248, 0.45);
}

@supports (color: color(display-p3 1 1 1)) {
  :root {
    --omni-glow-p3: color(display-p3 0.22 0.74 0.97 / 0.4);
    --omni-accent-p3: color(display-p3 0.15 0.78 1);
    --omni-border: color(display-p3 0.22 0.74 0.97 / 0.6);
  }
}

/* Global Omni Dropzone Overlay */
.omni-dropzone-overlay {
  position: fixed;
  inset: 0;
  z-index: 999999;
  background: rgba(8, 10, 18, 0.78);
  -webkit-backdrop-filter: blur(16px) saturate(1.8);
  backdrop-filter: blur(16px) saturate(1.8);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  transform: scale(0.98);
}

.omni-dropzone-overlay.is-active {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
}

/* The Central Quantum Portal Card */
.omni-portal-card {
  position: relative;
  width: 100%;
  max-width: 620px;
  background: var(--surface, #12141c);
  border: 2px dashed var(--omni-border);
  border-radius: 24px;
  padding: 3.5rem 2.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.8),
              0 0 60px var(--omni-glow-p3);
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  overflow: hidden;
}

.omni-dropzone-overlay.is-hovering .omni-portal-card {
  border-color: var(--omni-accent-p3);
  transform: scale(1.02);
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.9),
              0 0 90px var(--omni-glow-p3);
}

/* Background animated gradient aura */
.omni-portal-card::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at center, var(--omni-glow-p3) 0%, transparent 60%);
  opacity: 0.25;
  animation: omniAuraRotate 8s linear infinite;
  pointer-events: none;
}

@keyframes omniAuraRotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Glowing Icon Ring */
.omni-icon-ring {
  position: relative;
  width: 80px;
  height: 80px;
  border-radius: 24px;
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--omni-accent-p3);
  font-size: 2.2rem;
  box-shadow: 0 0 30px rgba(56, 189, 248, 0.25);
  animation: omniPulse 2s ease-in-out infinite alternate;
}

@keyframes omniPulse {
  0% { transform: translateY(0) scale(1); box-shadow: 0 0 20px rgba(56, 189, 248, 0.2); }
  100% { transform: translateY(-4px) scale(1.06); box-shadow: 0 0 40px rgba(56, 189, 248, 0.4); }
}

/* Typography */
.omni-title {
  font-family: inherit;
  font-size: 1.5rem;
  font-weight: 700;
  color: #f8fafc;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.omni-subtitle {
  font-size: 0.92rem;
  color: var(--text-muted, #94a3b8);
  max-width: 480px;
  margin: 0;
  line-height: 1.5;
}

/* Detection Badge Pill */
.omni-detected-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 9999px;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.3);
  color: var(--omni-accent-p3);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-top: 0.5rem;
  transition: all 0.2s ease;
}

.omni-detected-pill.has-target {
  background: rgba(16, 185, 129, 0.15);
  border-color: rgba(16, 185, 129, 0.4);
  color: #10b981;
}

/* Shortcut Esc notice */
.omni-footer-hint {
  font-size: 0.78rem;
  color: #64748b;
  margin-top: 0.5rem;
}

.omni-footer-hint kbd {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 4px;
  padding: 2px 6px;
  font-family: inherit;
  color: #cbd5e1;
}
