.loader-container {
    display: grid;
    place-items: center; /* Centers horizontally and vertically */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /*background-color: rgba(0, 0, 0, 0.5);*/
    z-index: 1000;
}

.loader {
    width: 60px;
    aspect-ratio: 2;
    --_g: no-repeat radial-gradient(circle closest-side,#000 90%,#0000);
    background: var(--_g) 0% 50%, var(--_g) 50% 50%, var(--_g) 100% 50%;
    background-size: calc(100%/3) 50%;
    animation: l3 1s infinite linear;
}

@keyframes l3 {
    20% {
        background-position: 0% 0%, 50% 50%,100% 50%
    }

    40% {
        background-position: 0% 100%, 50% 0%,100% 50%
    }

    60% {
        background-position: 0% 50%, 50% 100%,100% 0%
    }

    80% {
        background-position: 0% 50%, 50% 50%,100% 100%
    }
}

img:hover {
    opacity: 1.0;
    filter: opacity(100%);
}

.menu-label {
    font-size: x-small;
    font-weight: bold;
    color: white;
}


.reconnect-overlay {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 10000;
    display: none;
    animation: reconnect-fade-in;
}

    .reconnect-overlay.reconnect-visible {
        display: block;
    }

    .reconnect-overlay::before {
        content: '';
        background-color: rgba(0,0,0,0.4);
        position: absolute;
        top: 0;
        bottom: 0;
        left: 0;
        right: 0;
        animation: reconnect-fadeInOpacity 0.5s ease-in-out;
        opacity: 1;
    }

    .reconnect-overlay p {
        margin: 0;
    }

    .reconnect-overlay button {
        border: 0;
        background-color: #6b9ed2;
        color: white;
        padding: 4px 24px;
        border-radius: 4px;
    }

        .reconnect-overlay button:hover {
            background-color: #3b6ea2;
        }

        .reconnect-overlay button:active {
            background-color: #6b9ed2;
        }

.reconnect-dialog {
    position: relative;
    background-color: white;
    width: 15rem;
    height: 15rem;
    margin: 20vh auto;
    padding: 2rem;
    border-radius: 50%;
    box-shadow: 0 3px 6px 2px rgba(0,0,0,0.3);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    opacity: 0;
    animation: reconnect-slideUp 1.5s cubic-bezier(.05,.89,.25,1.02) 0.3s, reconnect-fadeInOpacity 0.5s ease-out 0.3s;
    animation-fill-mode: forwards;
    z-index: 10001;
}

.lds-ripple {
    display: block;
    position: relative;
    width: 80px;
    height: 80px;
}

    .lds-ripple div {
        position: absolute;
        border: 3px solid #0087ff;
        opacity: 1;
        border-radius: 50%;
        animation: lds-ripple 1.5s cubic-bezier(0, 0.2, 0.8, 1) infinite;
    }

        .lds-ripple div:nth-child(2) {
            animation-delay: -0.5s;
        }

@keyframes lds-ripple {
    0% {
        top: 40px;
        left: 40px;
        width: 0;
        height: 0;
        opacity: 0;
    }

    4.9% {
        top: 40px;
        left: 40px;
        width: 0;
        height: 0;
        opacity: 0;
    }

    5% {
        top: 40px;
        left: 40px;
        width: 0;
        height: 0;
        opacity: 1;
    }

    100% {
        top: 0px;
        left: 0px;
        width: 80px;
        height: 80px;
        opacity: 0;
    }
}

@keyframes reconnect-fadeInOpacity {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

@keyframes reconnect-slideUp {
    0% {
        transform: translateY(30px) scale(0.95);
    }

    100% {
        transform: translateY(0);
    }
}

.form-control:focus {
    border-color: #28a745;
    box-shadow: none;    
    /*box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25);*/
}

.kgyl-range::-webkit-slider-thumb {
    -webkit-appearance: none; /* Remove default WebKit styling */
    width: 20px; /* Thumb width */
    height: 20px; /* Thumb height */
    background: #ffc107; /* thumb color */
    border-radius: 50%; /* Make it round */
    cursor: pointer;
    margin-top: -6px; /* Adjust to vertically center thumb on track */
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.3); /* Optional: add shadow */
}

/* Mozilla (Firefox) */
.kgyl-range::-moz-range-thumb {
    width: 20px; /* Thumb width */
    height: 20px; /* Thumb height */
    background: #ffc107; /* Blue thumb */
    border-radius: 50%; /* Make it round */
    cursor: pointer;
    border: none; /* Remove default border */
}

/* Microsoft (IE/Edge Legacy - older versions of Edge might still need this) */
.kgyl-range::-ms-thumb {
    width: 20px; /* Thumb width */
    height: 20px; /* Thumb height */
    background: #ffc107; /* Blue thumb */
    border-radius: 50%; /* Make it round */
    cursor: pointer;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.3); /* Optional: add shadow */
}

.left-bar {
    border-left-style: solid; /* Sets the border style */
    border-left-width: 5px; /* Sets the border width */
    border-left-color: green; /* Sets the border color */
    padding-left: 10px; /* Adds spacing between the border and the text */
}


