.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: red;
    -webkit-transition: 0.4s;
    transition: 0.4s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    -webkit-transition: 0.4s;
    transition: 0.4s;
}

input:checked + .slider {
    background-color: #2196f3;
}

input:focus + .slider {
    box-shadow: 0 0 1px #2196f3;
}

input:checked + .slider:before {
    -webkit-transform: translateX(26px);
    -ms-transform: translateX(26px);
    transform: translateX(26px);
}

/* Rounded sliders */
.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;
}

.nav-item.fyNav {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0 0.5rem;
}

.fyLabel {
    color: black !important;
    font-weight: 500;
    white-space: nowrap;
}

.fyInput {
    width: 70px;
    height: 30px;
    border: 1px solid black;
    text-align: center;
    background-color: #fffd8c;
    color: red;
    font-weight: bold;
    border-radius: 15px;
}
/* Hide submenu by default */
.dropdown-submenu .submenu {
    display: none;
    position: absolute;
    top: 0;
    left: 100%;
    margin-top: -1px;
}

/* Show submenu on hover */
.dropdown-submenu:hover .submenu {
    display: block;
}

.dropdown-submenu {
    position: relative;
}
/* Mobile: submenu opens inline instead of flying right */
@media (max-width: 991.98px) {
    .dropdown-submenu > .dropdown-menu {
        position: static;
        display: block;
        margin: 0;
        padding-left: 1rem;
        border: none;
        box-shadow: none;
    }

    .dropdown-submenu > a::after {
        content: "";
    }
}
.dropdown-submenu .dropdown-menu {
    top: 0;
    left: 100%;
    margin-top: -1px;
}
.page-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
/* Overlay background */
.loading-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    backdrop-filter: blur(2px);
    opacity: 1;
    transition: opacity 0.25s ease;
}

/* Hidden state */
.loading-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

/* Center content (spinner + text) */
.loading-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;

    transform: translateY(10px);
    opacity: 0;
    transition: all 0.3s ease;
}

/* Animate in when visible */
.loading-overlay:not(.hidden) .loading-content {
    transform: translateY(0);
    opacity: 1;
}

/* Spinner */
.spinner {
    width: 48px;
    height: 48px;
    border: 4px solid #ddd;
    border-top-color: #4facfe;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

/* Text */
.loading-text {
    color: #fff;
    font-size: 14px;
    letter-spacing: 0.5px;
    opacity: 0.9;
}
/* Animation */
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}
