/* Custom global styles for the application */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

body {
    font-family: 'Inter', sans-serif;
}

/* Hide element until Alpine.js is ready */
[x-cloak] { 
    display: none !important;
}

/* Sidebar Navigation Item Styling */
.nav-item {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    margin: 0.125rem 0;
    border-radius: 0.375rem;
    text-decoration: none;
    color: #cbd5e0;
    font-weight: 500;
    transition: background-color 0.2s, color 0.2s;
}

.nav-item:hover {
    background-color: #4a5568;
    color: white;
}

/* Active navigation link */
.nav-item.active {
    background-color: #4f46e5;
    color: white;
    font-weight: 600;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
}

/* Sidebar Category Header */
.nav-category {
    padding: 0.75rem 1rem;
    font-weight: 600;
    color: #a0aec0;
    text-align: left;
    border-radius: 0.375rem;
    transition: background-color 0.2s, color 0.2s;
}

.nav-category:hover {
    background-color: #2d3748;
    color: white;
}

/* FIXED: Add margin to main content wrapper on desktop to prevent overlap */
@media (min-width: 1024px) {
    .main-content-wrapper {
        margin-left: 16rem; /* 256px, which is w-64 */
    }
}

/* Dashboard Card Styling */
.dashboard-card {
    border-radius: 0.75rem;
    padding: 1.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: transform 0.2s, box-shadow 0.2s;
}

.dashboard-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}
