/* ==========================================================================
   AETHER // BEAUTIFUL GLASSMORPHIC RTL DESIGN
   ========================================================================== */

:root {
  /* Rich Gradient Palette */
  --bg-void: #030014;
  --surface-monolith: rgba(10, 10, 15, 0.6);
  --surface-raised: rgba(20, 20, 30, 0.4);
  
  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-tertiary: #94a3b8;

  --accent-glow: rgba(139, 92, 246, 0.2);
  --accent-border: rgba(255, 255, 255, 0.08);
  --accent-primary: #8b5cf6;
  --accent-secondary: #0ea5e9;

  --font-sans: 'IBM Plex Sans Arabic', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-arabic: 'IBM Plex Sans Arabic', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'IBM Plex Sans Arabic', monospace;

  --ease-fluid: cubic-bezier(0.16, 1, 0.3, 1);

  /* Environment tokens: these defaults are space; the other environments override them in
     components.css (section 13). Colors are "r, g, b" so they can take any alpha. */
  --accent-rgb: 139, 92, 246;
  --accent-2-rgb: 14, 165, 233;
  --accent-hi-rgb: 168, 85, 247;
  --dock-rgb: 14, 15, 26;
  --bezel-rgb: 24, 16, 46;
  --bezel-focus-rgb: 32, 20, 58;
  --bubble-rgb: 22, 23, 38;
  --bubble-alpha: 0.55;
  --menu-rgb: 15, 16, 28;

  /* Deep physical shadows */
  --shadow-monolith: 
    0 40px 100px -20px rgba(0, 0, 0, 0.6),
    0 0 0 1px var(--accent-border),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: var(--bg-void);
  transition: background-color 0.4s ease;
  font-family: var(--font-sans);
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* Ensure all interactive and form elements inherit the unified Arabic typography */
button, input, textarea, select, dialog {
  font-family: inherit;
}

/* Standardize Arabic letter-spacing: prevent broken ligatures */
h1, h2, h3, h4, h5, h6, p, span, a, button, input, textarea, label {
  letter-spacing: normal;
}

/* Deep Space Cinematic Background */
.clouds-bg-layer {
  display: none;
}

.background-mesh {
  display: none;
}

/* The SVG sprite holding the environment icons takes no space */
.icon-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

#canvas-stage {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
  opacity: 1;
}



/* Modern Full Viewport Stage */
.stage-viewport, .stage-3d-wrapper {
  position: relative;
  width: 100vw;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  z-index: 10;
  overflow: hidden;
}

/* Utilities */
::-webkit-scrollbar {
  width: 4px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.3);
}
