html, body {
    margin: 0;
    padding: 0;
    font-family: 'Roboto', sans-serif;
    height: 100%;
    overflow: hidden;
}

#app {
    height: 100vh;
    height: 100dvh;
}

#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;
}

.thread-list .mud-list-item {
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

/* Mobile panel toggle icons */
.mobile-toggle {
    position: absolute;
    top: 8px;
    z-index: 10;
}

.mobile-toggle-left {
    left: 8px;
}

.mobile-toggle-right {
    right: 8px;
}

.mobile-toggle-active {
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Mobile drawer overlay */
.mobile-drawer-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 100;
}

.mobile-drawer {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 85%;
    max-width: 360px;
    z-index: 101;
    height: 100%;
}

.mobile-drawer-left {
    left: 0;
}

.mobile-drawer-right {
    right: 0;
}
