﻿/*----------------------------------------------------------
Overrides Site.css for revised menu and waiting indicators.
----------------------------------------------------------*/

#main {
    border-radius: 10px 0px 10px 10px;
}

/* Skip to main content link - visible on focus for keyboard users */
.skip-to-main {
    position: absolute;
    left: -9999px;
    z-index: 10000;
    padding: 1em;
    background-color: #000;
    color: white;
    text-decoration: none;
    font-weight: bold;
}

    .skip-to-main:focus {
        left: 50%;
        transform: translateX(-50%);
        top: 0;
    }

/* Fullscreen overlay */
#loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

/* Spinner animation */
.spinner {
    border: 8px solid #f3f3f3;
    border-top: 8px solid #3498db;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 1s linear infinite;
}

@@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Ensure focus indicators are visible for keyboard navigation */
*:focus {
    outline: 2px solid #005fcc;
    outline-offset: 2px;
}

/* Remove border and shadow from Syncfusion AppBar */
.e-appbar {
    border: none !important;
    box-shadow: none !important;
}

/* Logo button alignment */
#logoBtn {
    display: block;
    text-align: left;
}

</style >
<!-- - New Menu Styles - -->
<style >
/* Header stays clean */
#header {
    background: transparent;
    border: none; /* remove line */
    border-bottom: none;
    box-shadow: none; /* just in case */
    padding: 0;
    margin: 0; /* remove spacing */
}
/* Container now holds arrows + scroll area */
#menucontainer {
    display: flex;
    align-items: flex-end;
    gap: 6px;
    padding: 0;
    margin: 0;
}

.sf-nav {
    flex: 1 1 auto;
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    scroll-behavior: smooth;
    scrollbar-width: none;
    min-width: 0; /* important in flex layouts */
}

    .sf-nav::-webkit-scrollbar {
        display: none;
    }

.sf-nav-inner {
    display: flex;
    justify-content: flex-end;
    min-width: 100%;
    width: max-content; /* lets content grow wider than viewport */
}

#menu {
    display: inline-flex;
    flex-wrap: nowrap; /* important */
    flex: 0 0 auto; /* do not shrink */
    align-items: flex-end;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
    width: max-content;
}

    #menu li {
        flex: 0 0 auto; /* do not shrink */
    }

        #menu li a {
            height: 32px;
            display: inline-flex;
            align-items: center;
            padding: 0 10px;
            background: transparent;
            color: #1f2937;
            font-weight: 500;
            border-radius: 4px;
            text-decoration: none;
            transition: all 0.15s ease;
            border-bottom: none;
            opacity: 0.75;
        }

            #menu li a:hover {
                background: #f1f5f9;
                color: #111827;
            }

            #menu li a.active {
                background: #ffffff;
                color: #111827;
                font-weight: 600;
                box-shadow: 0 2px 6px rgba(0,0,0,0.12);
                border: 1px solid #d1d5db;
                border-bottom: none;
                transform: none;
                position: relative;
                top: 2px;
                opacity: 1;
                z-index: 3;
            }

                #menu li a.active::after {
                    content: "";
                    position: absolute;
                    left: 0;
                    right: 0;
                    bottom: -2px;
                    height: 4px;
                    background: #ffffff;
                }

                #menu li a.active:hover {
                    background: #ffffff;
                }

.scroll-btn {
    width: 28px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: transparent;
    color: #6b7280;
    cursor: pointer;
    border-radius: 4px;
    flex-shrink: 0;
}

    .scroll-btn:hover {
        background: #f1f5f9;
        color: #111827;
    }

    .scroll-btn.disabled {
        opacity: 0.3;
        pointer-events: none;
    }
