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

@layer components {
  /* Liquid-glass admin theme — mirrors the AavionD admin palette so the
     two panels feel related. Used by the Admin:: namespace layout
     (app/views/layouts/admin.html.erb) and any future admin views. */

  .glass-bg {
    background-color: #07070d;
    background-image:
      radial-gradient(ellipse at 20% 20%, rgba(99, 102, 241, 0.12) 0%, transparent 50%),
      radial-gradient(ellipse at 80% 10%, rgba(129, 140, 248, 0.08) 0%, transparent 45%),
      radial-gradient(ellipse at 60% 80%, rgba(139, 92, 246, 0.08) 0%, transparent 50%),
      radial-gradient(ellipse at 10% 70%, rgba(165, 180, 252, 0.06) 0%, transparent 45%),
      radial-gradient(ellipse at 90% 60%, rgba(232, 121, 249, 0.04) 0%, transparent 40%);
    min-height: 100vh;
  }

  .glass-nav {
    background: rgb(10, 10, 20);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }

  .glass-card {
    background: rgba(255, 255, 255, 0.05);
    -webkit-backdrop-filter: blur(40px) saturate(180%);
    backdrop-filter: blur(40px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow:
      0 8px 32px rgba(0, 0, 0, 0.25),
      0 2px 8px rgba(0, 0, 0, 0.15),
      inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
  }

  .glass-card-hover:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.14);
    box-shadow:
      0 16px 48px rgba(0, 0, 0, 0.35),
      0 4px 12px rgba(0, 0, 0, 0.2),
      inset 0 1px 0 rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
  }
}
