/* Layout Structure */
.app-wrapper {
    display: flex;
    flex-direction: column;
    height: 100vh;
    height: 100dvh;
    position: relative;
    overflow: hidden;
}

#landingView,
#toolView {
    flex: 1;
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
}

/* Auth Overlay Rendering */
.auth-page-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.auth-card {
    background: var(--bg-card);
    width: 100%;
    max-width: 400px;
    padding: 40px;
    border-radius: 24px;
    border: 1px solid var(--border);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

/* Tool Layout */
.tool-container {
    display: flex;
    flex: 1;
    height: calc(100% - 56px);
    /* Adjusted for header */
}

#appContainer {
    flex: 1;
    overflow-y: auto;
    background: var(--bg-dark);
}

/* Mobile Bottom Nav */
.bottom-nav-wrap {
    background: #0F0F0F;
    border-top: 1px solid var(--border);
    padding: 10px 0 24px;
}

.bottom-nav {
    display: flex;
    justify-content: space-around;
    align-items: center;
    max-width: 500px;
    margin: 0 auto;
}

@media (min-width: 769px) {
    .mobile-view {
        display: none !important;
    }
}