/* /Components/Layout/MainLayout.razor.rz.scp.css */
.page[b-1nl871wb4l] {
    position: relative;
    display: flex;
    flex-direction: column;
}

main[b-1nl871wb4l] {
    flex: 1;
    background-color: #f8f9fa;
}

.sidebar[b-1nl871wb4l] {
    background-image: linear-gradient(180deg, #ffffff 0%, #fff5f5 100%);
    border-right: 3px solid #cc0000;
    box-shadow: 2px 0 8px rgba(0, 0, 0, 0.05);
}

.top-row[b-1nl871wb4l] {
    background-color: #ffffff;
    border-bottom: 2px solid #cc0000;
    justify-content: flex-end;
    height: 3.5rem;
    display: flex;
    align-items: center;
}

    .top-row[b-1nl871wb4l]  a, .top-row[b-1nl871wb4l]  .btn-link {
        white-space: nowrap;
        margin-left: 1.5rem;
        text-decoration: none;
        color: #495057;
        font-weight: 500;
    }

        .top-row[b-1nl871wb4l]  a:hover, .top-row[b-1nl871wb4l]  .btn-link:hover {
            text-decoration: underline;
            color: #cc0000;
        }

    .top-row[b-1nl871wb4l]  a:first-child {
        overflow: hidden;
        text-overflow: ellipsis;
    }

@media (max-width: 640.98px) {
    .top-row[b-1nl871wb4l] {
        justify-content: space-between;
    }

        .top-row[b-1nl871wb4l]  a, .top-row[b-1nl871wb4l]  .btn-link {
            margin-left: 0;
        }
}

@media (min-width: 641px) {
    .page[b-1nl871wb4l] {
        flex-direction: row;
    }

    .sidebar[b-1nl871wb4l] {
        width: 250px;
        height: 100vh;
        position: sticky;
        top: 0;
    }

    .top-row[b-1nl871wb4l] {
        position: sticky;
        top: 0;
        z-index: 1;
    }

        .top-row.auth[b-1nl871wb4l]  a:first-child {
            flex: 1;
            text-align: right;
            width: 0;
        }

        .top-row[b-1nl871wb4l], article[b-1nl871wb4l] {
            padding-left: 2rem !important;
            padding-right: 1.5rem !important;
        }
}

#blazor-error-ui[b-1nl871wb4l] {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss[b-1nl871wb4l] {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }
/* /Components/Layout/NavMenu.razor.rz.scp.css */
/* --- 1. Navbar & Toggler --- */
.navbar-toggler[b-251m2zlt1o] {
    appearance: none;
    cursor: pointer;
    width: 3.5rem;
    height: 2.5rem;
    color: #cc0000;
    position: absolute;
    top: 0.5rem;
    right: 1rem;
    border: 1px solid rgba(204, 0, 0, 0.15);
    background-color: rgba(204, 0, 0, 0.05);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28204, 0, 0, 0.55%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 1.75rem;
}

.navbar-toggler:checked[b-251m2zlt1o] {
    background-color: rgba(204, 0, 0, 0.15);
}

.top-row[b-251m2zlt1o] {
    height: 3.5rem;
    background-color: #ffffff;
    border-bottom: 2px solid #cc0000;
}

.navbar-brand[b-251m2zlt1o] {
    font-size: 1.1rem;
    color: #cc0000 !important;
    font-weight: 700;
    letter-spacing: 0.5px;
}

/* --- 2. Navigation & Icons --- */
.bi[b-251m2zlt1o] {
    display: inline-block;
    position: relative;
    width: 1.25rem;
    height: 1.25rem;
    margin-right: 0.75rem;
    top: -1px;
    background-size: cover;
}

.sidebar[b-251m2zlt1o] {
    display: flex;
    flex-direction: column;
    height: 100vh;
}

.sidebar-nav-container[b-251m2zlt1o] {
    flex: 1;
    overflow-y: auto;
}

/* --- 3. Nav Links (hell) --- */
/* --- Styling für die Links (helles Theme) --- */
.nav-link[b-251m2zlt1o] {
    color: #212529 !important;          /* schwarz */
    padding: 0.6rem 1rem;
    border-radius: 0.375rem;
    margin: 0.15rem 0.5rem;
    transition: all 0.15s ease;
    font-weight: 500;
    display: flex;
    align-items: center;
}

.nav-link:hover[b-251m2zlt1o] {
    color: #212529 !important;         /* bleibt schwarz */
    background-color: #fff0f0;
    font-weight: 600;
}

.nav-link.active[b-251m2zlt1o] {
    color: #ffffff;           /* weiß auf rot */
    background-color: #cc0000;
    font-weight: 600;
}

.nav-link.active:hover[b-251m2zlt1o] {
    color: #ffffff !important;;
    background-color: #b00000;
}

.nav-item[b-251m2zlt1o] {
    padding: 0.25rem 0;
}

/* --- Logo-Icons in der Navigation --- */
.nav-icon[b-251m2zlt1o] {
    width: 24px;
    height: 24px;
    vertical-align: middle;
    flex-shrink: 0;
}

/* --- Toggler an helles Theme anpassen --- */
.navbar-toggler[b-251m2zlt1o] {
    color: #cc0000;
    border-color: rgba(204, 0, 0, 0.15);
    background-color: rgba(204, 0, 0, 0.05);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28204, 0, 0, 0.55%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.top-row[b-251m2zlt1o] {
    background-color: #ffffff;
    border-bottom: 2px solid #cc0000;
}

.navbar-brand[b-251m2zlt1o] {
    color: #cc0000 !important;
    font-weight: 700;
}

/* --- 4. Logout Button --- */
.btn-outline-light[b-251m2zlt1o] {
    color: #cc0000;
    border-color: #cc0000;
    font-weight: 500;
    transition: all 0.15s ease;
}

.btn-outline-light:hover[b-251m2zlt1o] {
    color: #ffffff;
    background-color: #cc0000;
    border-color: #cc0000;
}

/* --- 5. User Profile Section (unten) --- */
.user-profile-section[b-251m2zlt1o] {
    background-color: #fff5f5;
    border-top: 2px solid #cc0000;
    padding: 1rem;
    margin-top: auto;
}

.user-roles[b-251m2zlt1o] {
    font-size: 0.8rem;
    color: #6c757d;
}

.user-roles ul[b-251m2zlt1o] {
    list-style: none;
    padding-left: 0;
    margin-top: 0.25rem;
}

.user-roles li[b-251m2zlt1o] {
    padding-left: 0.5rem;
    color: #cc0000;
    font-weight: 500;
}

.user-roles strong[b-251m2zlt1o] {
    color: #495057;
}

/* --- 6. Logo unten --- */
.nav-logo[b-251m2zlt1o] {
    text-align: center;
    padding: 0.75rem 0 1.25rem 0;
    border-top: 1px solid #ffe0e0;
}

.nav-logo img[b-251m2zlt1o] {
    max-width: 100px;
    height: auto;
    opacity: 0.85;
    transition: opacity 0.2s ease;
}

.nav-logo img:hover[b-251m2zlt1o] {
    opacity: 1;
}

.nav-logo-text[b-251m2zlt1o] {
    font-size: 0.65rem;
    color: #999;
    margin-top: 0.25rem;
}

/* --- 7. Textanpassungen fuer helles Theme ---
   Diese Klassen kommen aus Bootstrap fuer dunklen Hintergrund,
   muessen fuer das helle Design auf dunkle Textfarben umgebogen werden */
.text-white[b-251m2zlt1o] {
    color: #343a40 !important;
}

.text-white-50[b-251m2zlt1o] {
    color: #6c757d !important;
    border-color: #6c757d !important;
}

.text-light-emphasis[b-251m2zlt1o] {
    color: #6c757d !important;
}

.text-light-50[b-251m2zlt1o] {
    color: #adb5bd !important;
}

.nav-link .text-white[b-251m2zlt1o] {
    color: inherit !important;
}

.nav-link.active .text-white[b-251m2zlt1o],
.nav-link.active .bi[b-251m2zlt1o] {
    color: #ffffff !important;
}

/* --- 8. Responsive --- */
@media (min-width: 641px) {
    .collapse[b-251m2zlt1o] {
        display: block !important;
    }
}

@media (max-width: 640.98px) {
    .nav-links[b-251m2zlt1o] {
        display: none;
    }
}
/* --- 8. Umgebungsinfo --- */
.nav-env-info[b-251m2zlt1o] {
    padding-top: 0.5rem;
    margin-top: 0.5rem;
    border-top: 1px dashed #e0e0e0;
}

.nav-env-db[b-251m2zlt1o] {
    font-size: 0.7rem;
    color: #999;
    word-break: break-all;
}

.nav-env-name[b-251m2zlt1o] {
    font-size: 0.8rem;
    margin-top: 0.15rem;
}

.nav-env-name.text-danger[b-251m2zlt1o] {
    color: #cc0000 !important;
}

.nav-env-name.text-dark[b-251m2zlt1o] {
    color: #212529 !important;
}
