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

/* --- 1. Enable Cross-Page Animations --- */
@view-transition {
  navigation: auto;
}

/* --- 2. Navigation Container --- */
/* Ensure the nav text allows the pill to slide under it */
.nav-item {
    color: #64748b; /* slate-500 */
    text-decoration: none;
    font-weight: 500;
    letter-spacing: 0.01em;
    position: relative;
    transition: color 0.2s ease;
    padding: 0.375rem 1rem;
    z-index: 1; /* Text sits ON TOP of the sliding pill */
}

/* --- 3. The "Pill" (Background Layer) --- */
.nav-item .nav-glass {
    position: absolute;
    inset: 0;
    border-radius: 9999px;
    z-index: -1; /* Sits BEHIND the text */
    
    /* Default: Transparent (blends into gray track) */
    background-color: transparent;
    opacity: 0;
    transition: background-color 0.2s ease, opacity 0.2s ease;
}

/* Hover State: Subtle darkening */
.nav-item:hover {
    color: #1e293b; /* slate-800 */
}
.nav-item:hover .nav-glass {
    opacity: 1;
    background-color: rgba(255, 255, 255, 0.5); /* Semi-transparent white on hover */
}

/* --- 4. Active State (The Sliding Part) --- */
.nav-item.active {
    color: #0f172a; /* slate-900 */
    font-weight: 600;
}

.nav-item.active .nav-glass {
    opacity: 1;
    background-color: #ffffff;
    box-shadow: 
        0 1px 3px 0 rgba(0, 0, 0, 0.1), 
        0 1px 2px -1px rgba(0, 0, 0, 0.06);
    
    /* THIS IS THE MAGIC KEYWORD FOR ANIMATION */
    view-transition-name: active-nav-pill;
}

/* --- 5. Submenus --- */
.submenu-item .nav-glass {
    view-transition-name: none; /* Don't animate submenu items globally */
}

/* --- Brand & Logo Styles --- */
.rx-brand {
    color: #800000; /* Brand Maroon */
}

.gradient-text {
    background: linear-gradient(to right, #334155, #0f172a);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
}

/* --- Responsive Data Grid Styles --- */
