* {
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: "Inter", sans-serif;
}

html, body {
width: 100%;
height: 100%;
}

body {
display: flex;
flex-direction: column;
overflow: hidden;
}

/* ----------------------------------------------------------------------------------------------------------------------------------------------------------------------- */
.menu-bar {
background-color: #1e1e1e;
color: #cccccc;
padding: 0.75rem 1.25rem;
display: flex;
align-items: center;
gap: 1rem;
border-bottom: 1px solid #2d2d2d;
}

    .logo {
    width: 36px;
    height: 36px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
    }

        .logo img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        }

    .title {
    font-size: 1rem;
    font-weight: 600;
    margin-right: auto;
    color: #cccccc;
    }

    .view-switcher {
    position: relative;
    background-color: #000000c4;
    color: #ffffff;
    border: none;
    border-radius: 0.5rem;
    padding: 0.375rem;
    display: flex;
    font-size: 0.8rem;
    overflow: hidden;
    }

        .view-tab {
        position: relative;
        background-color: transparent;
        color: #ffffff8f;
        border: none;
        padding: 0.2rem 0.8rem;
        cursor: pointer;
        border-radius: 0.4rem;
        font-size: 0.8rem;
        transition: color 0.2s cubic-bezier(0.4, 0, 0.2, 1);
        margin: 0 0.1rem;
        white-space: nowrap;
        z-index: 1;
        }

        .view-tab:hover {
        color: #ffffff;
        }

        .view-tab.active {
        color: #ffffff;
        }

        .view-switcher::after {
        content: "";
        position: absolute;
        height: 80%; /* adjust for swoop thickness */
        width: var(--swoop-width, 0);
        background-color: #ff0000da;
        border-radius: 0.4rem;
        top: 50%; /* center vertically */
        transform: translateY(-50%); /* shift back by half height */
        left: var(--swoop-left, 0);
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 0;
        }

    .menu-links {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    }

        .link-button {
        background-color: #000000c4;
        color: #ffffff;
        border: none;
        padding: 0.375rem 0.875rem;
        cursor: pointer;
        border-radius: 0.5rem;
        text-decoration: none;
        font-size: 0.8rem;
        transition: background-color 0.2s ease;
        }

        .link-button:disabled {
        opacity: 0.5;
        cursor: not-allowed;
        }

        .menu-link {
        text-decoration: none;
        color: inherit;
        }

        .menu-link:hover {
        color: white;
        }


    .menu-divider {
    width: 1px;
    height: 24px;
    background-color: #454545;
    margin: 0 0.25rem;
    }

    .dropdown {
    position: relative;
    }

        .dropdown-button {
        background-color: #000000c4;
        color: #ffffff;
        border: none;
        padding: 0.375rem 0.5rem;
        cursor: pointer;
        border-radius: 0.5rem;
        text-decoration: none;
        font-size: 0.8rem;
        transition: background-color 0.2s ease;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 2.5rem;
        height: 1.8rem;
        }

            .link-button:hover, .dropdown-button:hover, .link-button:focus, .dropdown-button:focus{
            background-color: #ff0000;
            }

            .hamburger-icon {
            display: flex;
            flex-direction: column;
            gap: 3px;
            width: 18px;
            }

            .hamburger-icon span {
            display: block;
            width: 100%;
            height: 2px;
            background-color: #ffffff;
            border-radius: 2px;
            transition: all 0.3s ease;
            }

            .dropdown-content {
            position: absolute;
            right: 0;
            top: calc(100% + 8px);
            background-color: #252526;
            min-width: 180px;
            box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.08);
            z-index: 1000;
            border-radius: 8px;
            overflow: hidden;
            border: 1px solid #3c3c3c;
            opacity: 0;
            visibility: hidden;
            transform: translateY(-10px);
            transition: opacity 0.25s cubic-bezier(0.4, 0, 0.2, 1),
            transform 0.25s cubic-bezier(0.4, 0, 0.2, 1),visibility 0.25s;
            }

            .dropdown-content a {
            color: #cccccc;
            padding: 0.625rem 1rem;
            text-decoration: none;
            display: block;
            font-size: 0.8125rem;
            transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
            position: relative;
            overflow: hidden;
            }

            .dropdown-content a::before {
            content: '';
            position: absolute;
            left: 0;
            top: 0;
            width: 3px;
            height: 100%;
            background: linear-gradient(180deg, #ff0000, #ff0000);
            transform: scaleY(0);
            transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
            }

            .dropdown-content a:hover {
            background-color: #2a2d2e;
            color: #ffffff;
            padding-left: 1.25rem;
            }

            .dropdown-content a:hover::before {
            transform: scaleY(1);
            }

            .dropdown.active .dropdown-content {
            opacity: 1;
            visibility: visible;
            transform: translateY(0);
            }

/* ----------------------------------------------------------------------------------------------------------------------------------------------------------------------- */
.map-container {
flex: 1;
background-color: #ecf0f1;
overflow: hidden;
min-height: 0;
position: relative;
}

    #cesiumContainer {
    width: 100%;
    height: 100%;
    background-color: #95a5a6;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    }

    .loading-indicator {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background-color: #000000e6;
    padding: 0.6rem;
    border-radius: 0.5rem;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    }

        .loading-indicator.active {
        opacity: 1;
        visibility: visible;
        }

        .loading-spinner {
        width: 24px;
        height: 24px;
        border: 3px solid #ffffff3d;
        border-top-color: #ff0000;
        border-radius: 50%;
        animation: spin 0.6s linear infinite;
        }

        @keyframes spin {
        to {
        transform: rotate(360deg);
        }
        }

    .compass {
    position: absolute;
    top: 3.5rem;
    right: 1.5rem;
    width: 3rem;
    height: 3rem;
    background: rgba(0, 0, 0, 0);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0);
    border: 2px solid #33333300;
    color: whitesmoke;
    z-index: 10;
    pointer-events: none;
    }

        .compass-arrow {
        width: 0;
        height: 0;
        border-left: 0.5rem solid transparent;
        border-right: 0.5rem solid transparent;
        border-bottom: 1.5rem solid #ff1900;
        border-radius: 0 0 50% 50%;
        transition: transform 0.1s ease-out;
        }

        .compass-n {
        width: 1rem;
        height: 1rem;
        background: rgba(24, 41, 190, 0);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center; 
        font-size: 0.8rem;
        font-weight: 600;
        }

    #point-cloud-controls {
    position: absolute;
    bottom: 0.7rem;
    left: 50%;
    transform: translateX(-50%);
    background-color: #000000c4;
    padding: 0.375rem 0.5rem;
    border-radius: 0.75rem;
    z-index: 10;
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    white-space: nowrap; 
    gap: 0.75rem;
    }

        .pc-label {
        color: #ffffff;
        font-size: 0.7rem;
        white-space: nowrap;
        flex-shrink: 0;
        }

        .pc-toggle-container {
        position: relative;
        background-color: #000000c4;
        color: #ffffff;
        border: none;
        border-radius: 0.5rem;
        padding: 0.25rem;
        display: inline-flex; 
        font-size: 0.8rem;
        overflow: hidden;
        }

        .pc-toggle-option {
        position: relative;
        background-color: transparent;
        color: #ffffff8f;
        border: none;
        padding: 0.2rem 0.8rem;
        cursor: pointer;
        border-radius: 0.4rem;
        font-size: 0.8rem;
        transition: color 0.2s cubic-bezier(0.4, 0, 0.2, 1);
        margin: 0 0.1rem;
        white-space: nowrap;
        z-index: 1;
        font-size: 0.7rem;
        }

        .pc-toggle-option:hover {
        color: #ffffff;
        }

        .pc-toggle-option.active {
        color: #ffffff;
        }

        .pc-toggle-container::after {
        content: "";
        position: absolute;
        height: 80%;
        width: var(--pc-swoop-width, 0);
        background-color: #ff0000da;
        border-radius: 0.4rem;
        top: 50%;
        transform: translateY(-50%);
        left: var(--pc-swoop-left, 0);
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 0;
        }

    .measure-toolbar {
    position: absolute;
    bottom: 2rem;
    right: 2.5rem;
    background-color: transparent;
    padding: 0;
    z-index: 100;
    }

        .measure-btn {
        background: rgba(0, 0, 0, 0.65);
        color: #999999;
        border: 1px solid red;
        padding: 0.4rem 0.6rem;    
        cursor: pointer;
        border-radius: 0.4rem;
        font-size: 0.7rem;
        transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
        white-space: nowrap;
        }


        .measure-btn:hover {
        background-color: #ff0000da;
        color: #ffffff;
        }

        .measure-btn.active {
        background-color: #ff0000da;
        color: #ffffff;
        }


    #coordViewer {
    position: absolute;
    bottom: 0.3rem;
    right: 2.5rem;
    background: rgba(0, 0, 0, 0.65);
    color: #999999;
    font-size: 0.65rem;
    padding: 0.4rem 0.6rem;
    border-radius: 0.4rem;
    pointer-events: none;
    z-index: 100;
    white-space: nowrap;
    }


/* Cesium CSS Overrides - Red Hover Theme */
.cesium-button:hover,
.cesium-toolbar-button:hover,
.cesium-viewer-toolbar button:hover,
.cesium-button:focus,
.cesium-toolbar-button:focus,
.cesium-viewer-toolbar button:focus,
.cesium-geocoder-searchButton:hover,
.cesium-geocoder-searchButton:focus {
background-color: #ff0000 !important;
border-color: #ff0000 !important;
}

.cesium-geocoder-input:focus,
.cesium-geocoder-input:hover {
border-color: #ff0000 !important;
}

.cesium-navigationHelpButton-wrapper {
z-index: 100 !important;
}


/* ----------------------------------------------------------------------------------------------------------------------------------------------------------------------- */
.footer-bar {
    background-color: #1e1e1e;
    color: #cccccc;
    padding: 0.5rem 1.25rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    font-size: 0.9rem;
    border-top: 1px solid #2d2d2d;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.3);
    position: sticky;
    bottom: 0;
    width: 100%;
    z-index: 50;
}

    .footer-links {
        display: flex;
        gap: 0.5rem;
        flex-wrap: wrap;
        align-items: center;
    }

    .footer-links .link-button {
        background-color: #0000003b;
        color: #808080;
        border: none;
        padding: 0.375rem 0.7rem;
        cursor: pointer;
        border-radius: 0.5rem;
        font-size: 0.7rem;
        transition: background-color 0.2s ease, color 0.2s ease;
    }

    .footer-links .link-button:hover,
    .footer-links .link-button:focus {
        background-color: #000000;
        color: #ffffff;
    }

    .footer-text {
        color: #bdc3c7b4;
        font-size: 0.6rem;
        white-space: nowrap;
    }

    .footer-link {
    text-decoration: none;
    font-weight: 600;
    color: inherit;
    }

    .footer-link:hover {
    color: white;
    }