html, body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    height: 100%;
    background-color: #f5f5f5;
}

#app {
    height: 100%;
}

/* Error UI Styling */
#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}

/* Loading States */
.loading-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 300px;
}

/* Page Not Found */
.page-not-found {
    padding-top: 60px;
}

/* Responsive utilities */
.d-none-mobile {
    display: block;
}

@media (max-width: 600px) {
    .d-none-mobile {
        display: none !important;
    }
    
    .d-block-mobile {
        display: block !important;
    }
}

/* =========================
   LAYOUT STYLES - Session 2
   ========================= */

/* AppBar Styling */
.app-bar {
    background: linear-gradient(135deg, var(--mud-palette-primary), var(--mud-palette-secondary)) !important;
    color: white !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1) !important;
}

.app-logo {
    font-size: 1.5rem;
    color: inherit;
}

.app-title {
    font-weight: 600;
    color: inherit;
}

.app-title-mobile {
    font-weight: 600;
    color: inherit;
    font-size: 1.1rem;
}

.hamburger-btn {
    color: white !important;
}

/* Navigation Drawer */
.nav-drawer {
    border-right: 1px solid rgba(0,0,0,0.12);
    background-color: #ffffff;
}

/* Main Content */
.main-content {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    min-height: 100vh;
    padding-top: 0;
}

.content-container {
    padding: 2rem 1rem;
    max-width: 1400px;
}

/* MudNavMenu personnalisé */
.mud-nav-menu {
    width: 100%;
    background: transparent;
}

.mud-nav-menu .mud-nav-link {
    border-radius: 0 25px 25px 0;
    margin: 0.25rem 0;
    margin-right: 8px;
}

.mud-nav-menu .mud-nav-link:hover {
    background-color: rgba(var(--mud-palette-primary-rgb), 0.1);
}

.mud-nav-menu .mud-nav-link.active {
    background-color: var(--mud-palette-primary);
    color: white;
    font-weight: 600;
}

.mud-nav-menu .mud-nav-link.active .mud-nav-link-icon {
    color: white;
}

/* Responsive Navigation */
@media (max-width: 1199px) {
    .nav-drawer .mud-drawer-content {
        width: 280px;
    }
    
    .content-container {
        padding: 1.5rem 0.75rem;
    }
}

@media (max-width: 960px) {
    .content-container {
        padding: 1rem 0.5rem;
    }
    
    .main-content {
        padding-top: 0;
    }
}

@media (max-width: 600px) {
    .app-bar {
        padding: 0 0.75rem;
    }
    
    .content-container {
        padding: 0.75rem 0.25rem;
    }
}

/* Animation et transitions */
.mud-drawer {
    transition: all 0.3s ease;
}

.mud-nav-link {
    transition: all 0.2s ease;
}

/* Focus et accessibilité */
.mud-nav-link:focus {
    outline: 2px solid var(--mud-palette-primary);
    outline-offset: 2px;
}

.hamburger-btn:focus {
    outline: 2px solid rgba(255,255,255,0.5);
    outline-offset: 2px;
}

/* Scroll personnalisé pour la navigation */
.nav-drawer .mud-drawer-content {
    scrollbar-width: thin;
    scrollbar-color: rgba(0,0,0,0.2) transparent;
}

.nav-drawer .mud-drawer-content::-webkit-scrollbar {
    width: 4px;
}

.nav-drawer .mud-drawer-content::-webkit-scrollbar-track {
    background: transparent;
}

.nav-drawer .mud-drawer-content::-webkit-scrollbar-thumb {
    background-color: rgba(0,0,0,0.2);
    border-radius: 2px;
}

/* États désactivés */
.mud-nav-link.mud-disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* =========================
   FIN LAYOUT STYLES
   ========================= */
/* =========================
   NAVMENU STYLES - Session 2
   ========================= */

/* Navigation Header */
.nav-header {
    padding: 1rem;
    text-align: center;
    background: linear-gradient(135deg, var(--mud-palette-primary), var(--mud-palette-secondary));
    color: white;
    margin-bottom: 0;
}

.nav-logo {
    font-size: 2rem !important;
    margin-bottom: 0.25rem;
}

.nav-title {
    font-weight: 700 !important;
    margin: 0;
    line-height: 1.2;
}

.nav-subtitle {
    font-weight: 300 !important;
    opacity: 0.9;
    margin: 0;
}

.nav-divider {
    margin: 0.5rem 0;
}

.nav-section-title {
    padding: 0.75rem 1rem 0.25rem !important;
    font-weight: 600 !important;
    color: var(--mud-palette-text-secondary) !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Responsive NavMenu */
@media (max-width: 768px) {
    .nav-header {
        padding: 0.75rem;
    }
    
    .nav-logo {
        font-size: 1.5rem !important;
    }
    
    .nav-title {
        font-size: 1.1rem !important;
    }
    
    .nav-subtitle {
        font-size: 0.8rem !important;
    }
}

/* =========================
   FIN NAVMENU STYLES
   ========================= */