@tailwind base;
@tailwind components;
@tailwind utilities;

@layer base {
  :root {
    --background: 0 0% 100%;
    --foreground: 0 0% 3.9%;
    --card: 0 0% 100%;
    --card-foreground: 0 0% 3.9%;
    --popover: 0 0% 100%;
    --popover-foreground: 0 0% 3.9%;
    --primary: 0 0% 9%;
    --primary-foreground: 0 0% 98%;
    --secondary: 0 0% 96.1%;
    --secondary-foreground: 0 0% 9%;
    --muted: 0 0% 96.1%;
    --muted-foreground: 0 0% 45.1%;
    --accent: 0 0% 96.1%;
    --accent-foreground: 0 0% 9%;
    --destructive: 0 84.2% 60.2%;
    --destructive-foreground: 0 0% 98%;
    --border: 0 0% 89.8%;
    --input: 0 0% 89.8%;
    --ring: 0 0% 3.9%;
    --radius: 0.5rem;
  }

  /* OASIS DARK MODE - ATMOSPHERIC GRADIENTS */
  .dark {
    /* Base colors for Tailwind utilities */
    --background: 0 0% 8%;
    --foreground: 0 0% 98%;
    --card: 0 0% 10%;
    --card-foreground: 0 0% 98%;
    --popover: 0 0% 10%;
    --popover-foreground: 0 0% 98%;
    --primary: 265 89% 70%;
    --primary-foreground: 0 0% 98%;
    --secondary: 0 0% 18%;
    --secondary-foreground: 0 0% 98%;
    --muted: 0 0% 18%;
    --muted-foreground: 0 0% 65%;
    --accent: 0 0% 18%;
    --accent-foreground: 0 0% 98%;
    --destructive: 0 62.8% 30.6%;
    --destructive-foreground: 0 0% 98%;
    --border: 0 0% 20%;
    --input: 0 0% 18%;
    --ring: 265 89% 70%;

    /* OASIS ATMOSPHERIC BACKGROUND */
    background:
      radial-gradient(circle at 20% 80%, rgba(124, 58, 237, 0.15) 0%, transparent 50%),
      radial-gradient(circle at 80% 20%, rgba(236, 72, 153, 0.12) 0%, transparent 50%),
      radial-gradient(circle at 40% 40%, rgba(59, 130, 246, 0.08) 0%, transparent 50%),
      linear-gradient(135deg, #0f0f0f 0%, #1a1a1a 50%, #0f0f0f 100%) !important;
    background-attachment: fixed !important;
  }
}

@layer base {
  * {
    @apply border-border;
  }
  body {
    @apply bg-background text-foreground;
  }
}

/* OASIS EFFECTS - HIGHEST PRIORITY AFTER TAILWIND */
@layer utilities {
  /* Authentic Oasis atmospheric background */
  .dark {
    background:
      radial-gradient(circle at 20% 80%, rgba(124, 58, 237, 0.15) 0%, transparent 50%),
      radial-gradient(circle at 80% 20%, rgba(236, 72, 153, 0.12) 0%, transparent 50%),
      radial-gradient(circle at 40% 40%, rgba(59, 130, 246, 0.08) 0%, transparent 50%),
      linear-gradient(135deg, #0f0f0f 0%, #1a1a1a 50%, #0f0f0f 100%) !important;
    background-attachment: fixed !important;
    min-height: 100vh !important;
  }

  /* Oasis glassmorphism cards */
  .dark .bg-card {
    background: rgba(255, 255, 255, 0.05) !important;
    backdrop-filter: blur(20px) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    box-shadow:
      0 8px 32px rgba(0, 0, 0, 0.4),
      0 0 16px rgba(124, 58, 237, 0.1),
      inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
  }

  /* Oasis sidebar glassmorphism */
  .dark aside {
    background: rgba(0, 0, 0, 0.4) !important;
    backdrop-filter: blur(20px) !important;
    border-right: 1px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: 2px 0 20px rgba(0, 0, 0, 0.5) !important;
  }

  /* Oasis button effects */
  .dark button {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    backdrop-filter: blur(10px) !important;
  }

  .dark button:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    border-color: rgba(124, 58, 237, 0.3) !important;
    box-shadow:
      0 4px 16px rgba(0, 0, 0, 0.4),
      0 0 12px rgba(124, 58, 237, 0.2) !important;
    transform: translateY(-1px) !important;
  }

  /* Oasis primary button glow */
  .dark .bg-primary {
    background: linear-gradient(135deg,
      rgba(124, 58, 237, 0.8) 0%,
      rgba(147, 51, 234, 0.9) 100%) !important;
    box-shadow:
      0 4px 16px rgba(124, 58, 237, 0.3),
      0 0 20px rgba(124, 58, 237, 0.2) !important;
    border: 1px solid rgba(124, 58, 237, 0.5) !important;
  }

  /* Oasis stat cards with enhanced effects */
  .oasis-stat-card {
    transition: all 0.3s ease;
  }

  .oasis-stat-card:hover {
    transform: translateY(-2px);
  }

  .dark .oasis-stat-card {
    background: rgba(255, 255, 255, 0.05) !important;
    backdrop-filter: blur(20px) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    box-shadow:
      0 8px 32px rgba(0, 0, 0, 0.4),
      0 0 16px rgba(124, 58, 237, 0.1) !important;
  }

  .dark .oasis-stat-card:hover {
    box-shadow:
      0 12px 48px rgba(0, 0, 0, 0.5),
      0 0 24px rgba(124, 58, 237, 0.2) !important;
    border-color: rgba(124, 58, 237, 0.3) !important;
  }

  /* Oasis icon containers */
  .oasis-icon-container {
    padding: 12px;
    border-radius: 12px;
    background: rgba(124, 58, 237, 0.1);
    transition: all 0.3s ease;
  }

  .dark .oasis-icon-container {
    background: rgba(124, 58, 237, 0.2) !important;
    box-shadow: 0 0 16px rgba(124, 58, 237, 0.3) !important;
  }
}

