﻿
#blazor-error-ui {
    background: lightyellow;
    background-color: var(--mud-palette-error);
    color: var(--mud-palette-error-text);
    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;
    padding: 0.6rem 1.75rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 9999;
}

#reconnect-modal {
    background: lightyellow;
    background-color: var(--mud-palette-warning-hover);
    color: var(--mud-palette-warning-darken);
    top: 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;
    padding: 0.6rem 1.75rem 0.7rem 1.25rem;
    margin: 0px;
    position: fixed;
    width: 100%;
    z-index: 9999;
}

.user-button {
    text-transform: none;
    background: rgba(var(--mud-palette-primary-rgb), 0.1)
}

.side-menu .mud-chip.mud-chip-size-small {
    font-size: 0.625rem;
    height: 1.125rem;
}

.dropdown-container {
    position: relative;
    width: 100%;
}

.dropdown-label {
    margin-bottom: 4px;
    display: block;
    transform: none;
    z-index: 1;
}

.buttons-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
}

.responsive-button {
    padding: 8px 16px;
    min-width: 120px;
}

@media (max-width: 768px) {
    .responsive-button {
        flex: 1 1 100%;
    }
}

.selected-box {
    width: 100%;
    padding: 15px 0 0;
    border: none;
    border-bottom: 1px solid #ccc;
    border-radius: 0;
    background: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

    .selected-box.disabled {
        pointer-events: none;
        opacity: 0.5;
        cursor: not-allowed;
    }

    .selected-box::after {
        content: '';
        position: absolute;
        bottom: -1px;
        left: 50%;
        width: 0;
        height: 1px;
        background: var(--mud-palette-primary);
        transition: all 0.3s ease;
    }

    .selected-box:hover::after {
        width: 100%;
        left: 0;
        background: black;
    }

    /* Active state animation */
    .selected-box.active::after {
        width: 100%;
        left: 0;
        background: var(--mud-palette-primary);
    }

    /* Deactivation animation */
    .selected-box:not(.active)::after {
        width: 0;
        left: 50%;
    }

    .selected-box .icon {
        color: #888;
    }

.dropdown-list {
    position: relative;
    width: 100%;
    background: white;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    max-height: 250px;
    overflow-y: auto;
    opacity: 1;
    margin-top: 4px;
}

.dropdown-item {
    padding: 10px;
    cursor: pointer;
    transition: background 0.3s ease;
}

    .dropdown-item:hover {
        background-color: #f0f0f0;
    }

.search-box {
    width: 100%;
    padding: 10px;
    border: none;
    border-bottom: 1px solid #ccc;
    outline: none;
    background: #f9f9f9;
}

.search-container {
    display: flex;
    align-items: center;
    padding: 8px;
    background: #f9f9f9;
    border-bottom: 1px solid #ccc;
}

    .search-container .icon {
        color: #888;
        margin-right: 8px;
    }
