/* --- Global Reset & Theme --- */
@layer base {
  body {
    background-color: #020617; /* gray-950 */
    color: #f8fafc;           /* gray-50 */
    font-family: 'Inter', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    margin: 0;
    overflow-x: hidden;
  }
}

/* --- Custom Scrollbar (Pro SaaS Look) --- */
::-webkit-scrollbar {
  width: 5px;
  height: 5px;
}

::-webkit-scrollbar-track {
  background: #020617;
}

::-webkit-scrollbar-thumb {
  background: #9333ea; /* Aura Purple */
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: #a855f7;
}

/* --- Navigation & Sidebar Logic --- */
#mobile-menu {
  z-index: 50;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Utility classes for the JS toggle */
.translate-x-0 {
  transform: translateX(0);
}

.-translate-x-full {
  transform: translateX(-100%);
}

/* --- Sidebar Link Hover States --- */
nav ul li a {
  transition: all 0.2s ease-in-out;
}

nav ul li a:hover {
  background-color: rgba(30, 41, 59, 0.5); /* gray-800 with opacity */
  color: #ffffff;
}

/* --- UI Components --- */

/* Input Fields */
input, select, textarea {
  background-color: #030712 !important;
  border: 1px solid #1e293b !important;
  color: white !important;
}

input:focus, select:focus, textarea:focus {
  border-color: #9333ea !important;
  outline: none;
}

/* Custom "Glass" Cards */
.glass-card {
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(30, 41, 59, 0.5);
  backdrop-filter: blur(10px);
}

/* --- Animations --- */
@keyframes slow-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.animate-slow-pulse {
  animation: slow-pulse 3s infinite;
}

/* --- Grid & Layout Fixes --- */
.scrollbar-hide::-webkit-scrollbar {
  display: none;
}

.scrollbar-hide {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* Ensure images fit the generation grid perfectly */
.asset-grid-item {
  aspect-ratio: 9/16;
  object-fit: cover;
  border-radius: 1rem;
}

.custom-scrollbar::-webkit-scrollbar {
    width: 4px;
}
.custom-scrollbar::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.02);
}
.custom-scrollbar::-webkit-scrollbar-thumb {
    background: #9333ea;
    border-radius: 10px;
}