/* QuantEngine MainLayout Styles */

/* AppBar Enhancements */
.mud-appbar-dense {
    padding: 0 1rem;
}

.mud-appbar-dense ::deep .mud-appbar-section-center {
    flex: 1;
}

/* Avatar Styling */
::deep .mud-avatar {
    cursor: pointer;
    transition: transform 0.2s ease;
}

::deep .mud-avatar:hover {
    transform: scale(1.05);
}

/* Drawer Footer */
.mud-drawer-footer {
    position: absolute;
    bottom: 0;
    width: 100%;
    background: var(--mud-palette-surface);
}

/* Main Content Area */
.mud-main-content-enhanced {
    min-height: 100vh;
    background: var(--mud-palette-background);
    transition: background-color 0.3s ease;
}

/* Navigation Menu Styles */
.mud-navmenu {
    padding: 1rem 0;
}

.mud-navmenu ::deep .mud-nav-item {
    padding: 0.5rem 0;
    margin: 0.25rem 0;
}

.mud-navmenu ::deep .mud-nav-link {
    border-radius: 0.4rem;
    margin: 0 0.5rem;
    transition: all 0.2s ease;
}

.mud-navmenu ::deep .mud-nav-link:hover {
    background-color: var(--mud-palette-action-default-hover);
}

.mud-navmenu ::deep .mud-nav-link.mud-ripple-nav-link-active {
    background-color: var(--mud-palette-primary-lighten);
    color: var(--mud-palette-primary);
    font-weight: 600;
}

/* Responsive Drawer */
@media (max-width: 599px) {
    .mud-drawer-content {
        width: 100% !important;
    }

    .mud-drawer-footer {
        position: relative;
    }
}

@media (min-width: 600px) {
    .mud-drawer-footer {
        position: absolute;
    }
}

/* Error UI */
#blazor-error-ui {
    color-scheme: light only;
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
    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;
}

/* Dark Mode Transitions */
* {
    transition: background-color 0.3s ease, color 0.3s ease;
}
