/* Layout Shell */
html,
body {
    margin: 0;
    padding: 0;
    height: 100%;
    overflow: hidden;
}

#AppShell {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    position: relative;
}

#TopRow {
    display: flex;
    width: 100%;
    height: 4rem;
    flex-shrink: 0;
}

#TopLogoArea {
    width: 16rem;
    flex-shrink: 0;
    /*    border-right: 1px solid #e5e7eb;*/
    /*    background: #ffffff;*/
    overflow: hidden;
}

#TopLogoArea .eazymap-logo-link {
    display: block;
    text-decoration: none;
    width: 100%;
}

#TopLogoArea .eazymap-logo-container {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.75rem;
    height: 4rem;
    padding: 0 1.5rem;
    border-bottom: 1px solid #e5e7eb;
    /*    background: #ffffff;*/
    transition: background 0.2s;
    flex-shrink: 0;
}

#TopLogoArea .eazymap-logo-img-icon {
    height: 2.2rem;
    width: auto;
    object-fit: contain;
}

#TopLogoArea .eazymap-logo-img-text {
    height: 1.4rem;
    width: auto;
    object-fit: contain;
}

#TopHeaderArea {
    flex: 1;
    min-width: 0;
}

#MainContent {
    display: flex;
    width: 100%;
    flex: 1;
    min-height: 0;
    overflow: hidden;
    position: relative;
}

/* Left sidebar column */
#LeftContent_Maximal_Menu {
    flex-shrink: 0;
    width: 16rem;
    height: 100%;
    position: relative;
    transition: width 0.25s ease, transform 0.25s ease;
    z-index: 100;
}

/* Right content column */
#RightContent {
    flex: 1;
    min-width: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Main body content area */
#PageBody {
    padding: 1.5rem 1.5rem 3.5rem;
    min-height: 100%;
    box-sizing: border-box;
}

/* Sidebar overlay (mobile) */
.eazymap-sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    z-index: 90;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    animation: overlayFade 0.2s ease;
}

@keyframes overlayFade {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Loading overlay */
.eazymap-loading-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(255, 255, 255, 0.6);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

.eazymap-loading-overlay.active {
    display: flex;
}

/* Responsive */
@media (max-width: 768px) {
    #TopLogoArea {
        width: auto;
        max-width: 10rem;
    }

    #TopLogoArea .eazymap-logo-text {
        display: none;
    }

    #LeftContent_Maximal_Menu {
        position: fixed;
        top: 0;
        left: 0;
        height: 100vh;
        background: #ffffff;
        transform: translateX(-100%);
        z-index: 200;
        box-shadow: 4px 0 20px rgba(0, 0, 0, 0.15);
    }

    #MainContent.sidebar-open #LeftContent_Maximal_Menu {
        transform: translateX(0);
    }

    #MainContent.sidebar-open .eazymap-sidebar-overlay {
        display: block;
    }
}

@media (min-width: 769px) {
    #MainContent.sidebar-collapsed #LeftContent_Maximal_Menu {
        width: 0;
        overflow: hidden;
    }
}