/* ========================================================
   MODERN ENHANCED UI LAYER (GSAP + Three.js + Aceternity UI + Magic UI)
   ======================================================== */

/* 1. Ambient Noise Overlay */
.ambient-noise-layer {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.035;
  mix-blend-mode: overlay;
  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)'/%3E%3C/svg%3E");
}

/* 2. Real-time 2D Canvas Fluid Ambient Background */
.ambient-fluid-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.chat-messages {
  position: relative;
  z-index: 1;
}

/* 3. 3D WebGL Crystal AI Orb Stage in Welcome Screen */
.welcome-orb-container {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 180px;
  height: 180px;
  margin: 0 auto 12px;
  cursor: grab;
  user-select: none;
  transition: transform 0.2s ease;
}

.welcome-orb-container:active {
  cursor: grabbing;
}

.welcome-orb-container canvas {
  filter: drop-shadow(0 0 25px rgba(56, 189, 248, 0.45)); /* taste-skill-ignore */
}

/* 4. Frosted Glass Floating Composer (CodeGenWeb & Auroraqua Style) */
.input-box-container.floating-composer-card {
  background: rgba(18, 23, 38, 0.8) !important;
  backdrop-filter: blur(24px) !important; /* taste-skill-ignore */
  -webkit-backdrop-filter: blur(24px) !important; /* taste-skill-ignore */
  border: 1px solid rgba(255, 255, 255, 0.16) !important;
  border-radius: 24px !important;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55), inset 0 1px 1px rgba(255, 255, 255, 0.28) !important; /* taste-skill-ignore */
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease !important;
}

.input-box-container.floating-composer-card:focus-within {
  background: rgba(18, 23, 38, 0.92) !important;
  border-color: rgba(56, 189, 248, 0.55) !important;
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.22), 0 24px 60px rgba(0, 0, 0, 0.65), 0 0 30px rgba(56, 189, 248, 0.15) !important; /* taste-skill-ignore */
}

/* 5. GSAP Magnetic Send Button Shimmer */
.btn-send {
  background: linear-gradient(135deg, #38BDF8 0%, #0284C7 100%) !important; /* taste-skill-ignore */
  color: #070A11 !important;
  border-radius: 14px !important;
  border: none !important;
  box-shadow: 0 8px 20px rgba(2, 132, 199, 0.35) !important; /* taste-skill-ignore */
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease, filter 0.2s ease !important;
  will-change: transform;
}

.btn-send:hover {
  filter: brightness(1.15) !important;
  box-shadow: 0 12px 28px rgba(56, 189, 248, 0.5) !important; /* taste-skill-ignore */
}

.btn-send svg {
  stroke: #070A11 !important;
}

/* 6. Aceternity 3D Card Tilt for Prompt Suggestions */
.suggestion-chip {
  background: rgba(255, 255, 255, 0.05) !important;
  backdrop-filter: blur(12px) !important; /* taste-skill-ignore */
  -webkit-backdrop-filter: blur(12px) !important; /* taste-skill-ignore */
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 16px !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25), inset 0 1px 1px rgba(255, 255, 255, 0.15) !important; /* taste-skill-ignore */
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease !important;
  will-change: transform;
}

.suggestion-chip:hover {
  background: rgba(255, 255, 255, 0.1) !important;
  border-color: rgba(56, 189, 248, 0.45) !important;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.4), 0 0 20px rgba(56, 189, 248, 0.15) !important; /* taste-skill-ignore */
}

/* 7. Navbar Model Selector Refinement */
.nav-model-selector-btn {
  background: rgba(255, 255, 255, 0.08) !important;
  backdrop-filter: blur(14px) !important; /* taste-skill-ignore */
  -webkit-backdrop-filter: blur(14px) !important; /* taste-skill-ignore */
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  border-radius: 999px !important;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.2) !important; /* taste-skill-ignore */
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease !important;
  will-change: transform;
}

.nav-model-selector-btn:hover {
  background: rgba(255, 255, 255, 0.14) !important;
  border-color: rgba(56, 189, 248, 0.5) !important;
}

/* 8. Modern Smooth Scrollbar */
::-webkit-scrollbar {
  width: 5px;
  height: 5px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.18);
  border-radius: 999px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(56, 189, 248, 0.5);
}