html, body {
    height: 100%;
}

body {
    background: #f8f9fa;
}

.app-shell {
    display: flex;
    height: 100vh;
    overflow: hidden;
}

.app-sidebar {
    width: 220px;
    flex-shrink: 0;
    height: 100vh;
    background: #fff;
    border-right: 1px solid #eee;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.app-brand {
    height: 4rem;
    display: flex;
    align-items: center;
    padding: 0 1.25rem;
    font-size: 1.125rem;
    font-weight: 600;
    color: #212529;
}

.app-nav-link {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.6rem 1.25rem;
    color: #495057;
}

.app-nav-link.active,
.app-nav-link:hover {
    background: #f1f3f5;
    color: #0d6efd;
}

.app-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    height: 100vh;
    overflow: hidden;
}

.app-header {
    height: 4rem;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.5rem;
    background: #fff;
    border-bottom: 1px solid #eee;
}

.app-page-title {
    font-size: 1rem;
    font-weight: 500;
    color: #495057;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.app-content {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding: 1.5rem;
}

.app-sidebar-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border: none;
    background: transparent;
    font-size: 1.25rem;
    color: #495057;
    border-radius: 0.375rem;
    flex-shrink: 0;
}

.app-sidebar-toggle:hover {
    background: #f1f3f5;
}

.app-sidebar-backdrop {
    display: none;
}

.app-header-start {
    min-width: 0;
}

@media (max-width: 991.98px) {
    .app-sidebar-toggle {
        display: inline-flex;
    }

    .app-sidebar {
        position: fixed;
        top: 0;
        left: 0;
        height: 100vh;
        z-index: 1045;
        transform: translateX(-100%);
        transition: transform 0.25s ease;
    }

    .app-sidebar.open {
        transform: translateX(0);
        box-shadow: 0 0 24px rgba(0, 0, 0, 0.2);
    }

    .app-sidebar-backdrop.show {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.4);
        z-index: 1040;
    }
}

@media (max-width: 575.98px) {
    .app-header {
        padding: 0 1rem;
    }

    .app-content {
        padding: 1rem;
    }

    .app-page-title {
        font-size: 0.9rem;
        max-width: 40vw;
    }
}

.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.auth-locale-switcher {
    position: absolute;
    top: 1rem;
    right: 1rem;
}