/* /Components/Layout/MainLayout.razor.rz.scp.css */
.page[b-i2p684xzzi] {
    position: relative;
    display: flex;
    flex-direction: column;
}

main[b-i2p684xzzi] {
    flex: 1;
}

.sidebar[b-i2p684xzzi] {
    background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
    box-shadow: 2px 0 12px rgba(0, 0, 0, 0.1);
}

.top-row[b-i2p684xzzi] {
    background-color: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    justify-content: flex-end;
    height: 3.75rem;
    display: flex;
    align-items: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

    .top-row[b-i2p684xzzi]  a, .top-row[b-i2p684xzzi]  .btn-link {
        white-space: nowrap;
        margin-left: 1.5rem;
        text-decoration: none;
    }

    .top-row[b-i2p684xzzi]  a:hover, .top-row[b-i2p684xzzi]  .btn-link:hover {
        text-decoration: underline;
    }

    .top-row[b-i2p684xzzi]  a:first-child {
        overflow: hidden;
        text-overflow: ellipsis;
    }

.user-badge[b-i2p684xzzi] {
    background: #f1f5f9;
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
    border: 1px solid #e2e8f0;
}

@media (max-width: 640.98px) {
    .top-row[b-i2p684xzzi] {
        justify-content: space-between;
    }

    .top-row[b-i2p684xzzi]  a, .top-row[b-i2p684xzzi]  .btn-link {
        margin-left: 0;
    }
}

@media (min-width: 641px) {
    .page[b-i2p684xzzi] {
        flex-direction: row;
    }

    .sidebar[b-i2p684xzzi] {
        width: 260px;
        height: 100vh;
        position: sticky;
        top: 0;
    }

    .top-row[b-i2p684xzzi] {
        position: sticky;
        top: 0;
        z-index: 1;
    }

    .top-row.auth[b-i2p684xzzi]  a:first-child {
        flex: 1;
        text-align: right;
        width: 0;
    }

    .top-row[b-i2p684xzzi], article[b-i2p684xzzi] {
        padding-left: 2rem !important;
        padding-right: 1.5rem !important;
    }
}

#blazor-error-ui[b-i2p684xzzi] {
    color-scheme: light only;
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
    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-i2p684xzzi] {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }
/* /Components/Layout/NavMenu.razor.rz.scp.css */
.navbar-toggler[b-9ajby6weha] {
    appearance: none;
    cursor: pointer;
    width: 3.5rem;
    height: 2.5rem;
    color: white;
    position: absolute;
    top: 0.5rem;
    right: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    background: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.75%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") no-repeat center/1.75rem rgba(255, 255, 255, 0.08);
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.navbar-toggler:checked[b-9ajby6weha] {
    background-color: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.35);
}

.top-row[b-9ajby6weha] {
    min-height: 3.75rem;
    background-color: rgba(0, 0, 0, 0.25);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.navbar-brand[b-9ajby6weha] {
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    color: #f8fafc;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.navbar-brand:hover[b-9ajby6weha] {
    color: #ffffff;
    opacity: 0.9;
}

.brand-icon[b-9ajby6weha] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    font-size: 1.15rem;
}

.nav-section-title[b-9ajby6weha] {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.4);
    margin-top: 0.5rem;
}

.nav-item[b-9ajby6weha] {
    font-size: 0.925rem;
}

.nav-item[b-9ajby6weha]  .nav-link {
    color: #cbd5e1;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 8px;
    padding: 0.65rem 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 500;
    width: 100%;
    transition: all 0.2s ease-in-out;
    text-decoration: none;
}

.nav-item[b-9ajby6weha]  .nav-icon {
    font-size: 1.2rem;
    color: #94a3b8;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease, transform 0.2s ease;
}

.nav-item[b-9ajby6weha]  .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    transform: translateX(3px);
}

.nav-item[b-9ajby6weha]  .nav-link:hover .nav-icon {
    color: #f8fafc;
}

.nav-item[b-9ajby6weha]  a.active {
    background: linear-gradient(135deg, rgba(13, 110, 253, 0.3) 0%, rgba(13, 110, 253, 0.15) 100%);
    border: 1px solid rgba(13, 110, 253, 0.4);
    color: #ffffff;
    font-weight: 600;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.nav-item[b-9ajby6weha]  a.active .nav-icon {
    color: #60a5fa;
}

.nav-scrollable[b-9ajby6weha] {
    display: none;
}

.navbar-toggler:checked ~ .nav-scrollable[b-9ajby6weha] {
    display: block;
}

@media (min-width: 641px) {
    .navbar-toggler[b-9ajby6weha] {
        display: none;
    }

    .nav-scrollable[b-9ajby6weha] {
        display: block;
        height: calc(100vh - 3.75rem);
        overflow-y: auto;
    }
}
/* /Components/Layout/ReconnectModal.razor.rz.scp.css */
.components-reconnect-first-attempt-visible[b-6wc76gwsot],
.components-reconnect-repeated-attempt-visible[b-6wc76gwsot],
.components-reconnect-failed-visible[b-6wc76gwsot],
.components-pause-visible[b-6wc76gwsot],
.components-resume-failed-visible[b-6wc76gwsot],
.components-rejoining-animation[b-6wc76gwsot] {
    display: none;
}

#components-reconnect-modal.components-reconnect-show .components-reconnect-first-attempt-visible[b-6wc76gwsot],
#components-reconnect-modal.components-reconnect-show .components-rejoining-animation[b-6wc76gwsot],
#components-reconnect-modal.components-reconnect-paused .components-pause-visible[b-6wc76gwsot],
#components-reconnect-modal.components-reconnect-resume-failed .components-resume-failed-visible[b-6wc76gwsot],
#components-reconnect-modal.components-reconnect-retrying[b-6wc76gwsot],
#components-reconnect-modal.components-reconnect-retrying .components-reconnect-repeated-attempt-visible[b-6wc76gwsot],
#components-reconnect-modal.components-reconnect-retrying .components-rejoining-animation[b-6wc76gwsot],
#components-reconnect-modal.components-reconnect-failed[b-6wc76gwsot],
#components-reconnect-modal.components-reconnect-failed .components-reconnect-failed-visible[b-6wc76gwsot] {
    display: block;
}


#components-reconnect-modal[b-6wc76gwsot] {
    background-color: white;
    width: 20rem;
    margin: 20vh auto;
    padding: 2rem;
    border: 0;
    border-radius: 0.5rem;
    box-shadow: 0 3px 6px 2px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: display 0.5s allow-discrete, overlay 0.5s allow-discrete;
    animation: components-reconnect-modal-fadeOutOpacity-b-6wc76gwsot 0.5s both;
    &[open]

{
    animation: components-reconnect-modal-slideUp-b-6wc76gwsot 1.5s cubic-bezier(.05, .89, .25, 1.02) 0.3s, components-reconnect-modal-fadeInOpacity-b-6wc76gwsot 0.5s ease-in-out 0.3s;
    animation-fill-mode: both;
}

}

#components-reconnect-modal[b-6wc76gwsot]::backdrop {
    background-color: rgba(0, 0, 0, 0.4);
    animation: components-reconnect-modal-fadeInOpacity-b-6wc76gwsot 0.5s ease-in-out;
    opacity: 1;
}

@keyframes components-reconnect-modal-slideUp-b-6wc76gwsot {
    0% {
        transform: translateY(30px) scale(0.95);
    }

    100% {
        transform: translateY(0);
    }
}

@keyframes components-reconnect-modal-fadeInOpacity-b-6wc76gwsot {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

@keyframes components-reconnect-modal-fadeOutOpacity-b-6wc76gwsot {
    0% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

.components-reconnect-container[b-6wc76gwsot] {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

#components-reconnect-modal p[b-6wc76gwsot] {
    margin: 0;
    text-align: center;
}

#components-reconnect-modal button[b-6wc76gwsot] {
    border: 0;
    background-color: #6b9ed2;
    color: white;
    padding: 4px 24px;
    border-radius: 4px;
}

    #components-reconnect-modal button:hover[b-6wc76gwsot] {
        background-color: #3b6ea2;
    }

    #components-reconnect-modal button:active[b-6wc76gwsot] {
        background-color: #6b9ed2;
    }

.components-rejoining-animation[b-6wc76gwsot] {
    position: relative;
    width: 80px;
    height: 80px;
}

    .components-rejoining-animation div[b-6wc76gwsot] {
        position: absolute;
        border: 3px solid #0087ff;
        opacity: 1;
        border-radius: 50%;
        animation: components-rejoining-animation-b-6wc76gwsot 1.5s cubic-bezier(0, 0.2, 0.8, 1) infinite;
    }

        .components-rejoining-animation div:nth-child(2)[b-6wc76gwsot] {
            animation-delay: -0.5s;
        }

@keyframes components-rejoining-animation-b-6wc76gwsot {
    0% {
        top: 40px;
        left: 40px;
        width: 0;
        height: 0;
        opacity: 0;
    }

    4.9% {
        top: 40px;
        left: 40px;
        width: 0;
        height: 0;
        opacity: 0;
    }

    5% {
        top: 40px;
        left: 40px;
        width: 0;
        height: 0;
        opacity: 1;
    }

    100% {
        top: 0px;
        left: 0px;
        width: 80px;
        height: 80px;
        opacity: 0;
    }
}
/* /Components/Pages/KeysAusgabe.razor.rz.scp.css */
.keys-header[b-3q1rc2wbgi] {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: white;
    border-radius: 12px;
    padding: 1rem 1.25rem;
    margin-bottom: 1rem;
}

.stat-badge[b-3q1rc2wbgi] {
    background: rgba(255,255,255,0.15);
    border-radius: 8px;
    padding: 0.4rem 0.75rem;
    font-size: 0.8rem;
    font-weight: 600;
}

.stat-badge.available[b-3q1rc2wbgi] { background: rgba(25,135,84,0.35); }
.stat-badge.issued[b-3q1rc2wbgi]    { background: rgba(255,193,7,0.4); color: #000; }

.search-bar[b-3q1rc2wbgi] {
    position: sticky;
    top: 0;
    z-index: 100;
    background: white;
    padding: 0.5rem 0;
    border-bottom: 1px solid #dee2e6;
    margin-bottom: 0.75rem;
}

.filter-tabs .btn[b-3q1rc2wbgi] {
    border-radius: 20px;
    font-size: 0.8rem;
    padding: 0.3rem 0.9rem;
}

.key-card[b-3q1rc2wbgi] {
    border-radius: 12px;
    border: 2px solid;
    overflow: hidden;
    transition: box-shadow 0.2s;
}

.key-card:hover[b-3q1rc2wbgi] { box-shadow: 0 4px 16px rgba(0,0,0,0.12); }
.key-card.available[b-3q1rc2wbgi] { border-color: #198754; }
.key-card.issued[b-3q1rc2wbgi]    { border-color: #ffc107; }

.key-card-header[b-3q1rc2wbgi] {
    padding: 0.6rem 0.9rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
}

.key-card-header.available[b-3q1rc2wbgi] { background: rgba(25,135,84,0.1); }
.key-card-header.issued[b-3q1rc2wbgi]    { background: rgba(255,193,7,0.2); }

.key-card-body[b-3q1rc2wbgi] { padding: 0.75rem 0.9rem; }
.key-info-row[b-3q1rc2wbgi] { display: flex; align-items: center; gap: 0.4rem; font-size: 0.85rem; margin-bottom: 0.3rem; }
.action-section[b-3q1rc2wbgi] { border-top: 1px solid #f0f0f0; padding-top: 0.75rem; margin-top: 0.5rem; }
.form-control-sm[b-3q1rc2wbgi], .form-select-sm[b-3q1rc2wbgi] { border-radius: 8px; font-size: 0.85rem; }
.btn-sm[b-3q1rc2wbgi] { border-radius: 8px; font-size: 0.85rem; }

.action-toggle-btn[b-3q1rc2wbgi] {
    width: 100%;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.5rem;
}

.action-form[b-3q1rc2wbgi] { animation: fadeIn-b-3q1rc2wbgi 0.2s ease; }
@keyframes fadeIn-b-3q1rc2wbgi { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: translateY(0); } }

.no-results[b-3q1rc2wbgi] { text-align: center; color: #6c757d; padding: 2rem 1rem; }
.kasten-badge[b-3q1rc2wbgi] { font-size: 0.72rem; background: #e9ecef; color: #495057; border-radius: 6px; padding: 0.15rem 0.4rem; }

/* QR-Scanner Modal */
.qr-modal-backdrop[b-3q1rc2wbgi] {
    position: fixed; inset: 0; background: rgba(0,0,0,0.75);
    z-index: 1055; display: flex; align-items: center; justify-content: center;
}

.qr-modal[b-3q1rc2wbgi] {
    background: #111; border-radius: 16px; overflow: hidden;
    width: min(96vw, 420px); box-shadow: 0 8px 40px rgba(0,0,0,0.6);
}

.qr-modal-header[b-3q1rc2wbgi] {
    background: #1a1a2e; color: white; padding: 0.75rem 1rem;
    display: flex; justify-content: space-between; align-items: center;
}

.qr-viewfinder[b-3q1rc2wbgi] {
    position: relative;
    background: #000;
}

/* html5-qrcode rendert seinen eigenen Viewfinder – nur Breite normalisieren */
[b-3q1rc2wbgi] #qr-reader {
    width: 100%;
    border: none !important;
}

[b-3q1rc2wbgi] #qr-reader video {
    width: 100% !important;
    max-height: 65vw;
    object-fit: cover;
}

[b-3q1rc2wbgi] #qr-reader__scan_region {
    background: #000;
}

.qr-status[b-3q1rc2wbgi] { color: #ccc; font-size: 0.82rem; padding: 0.6rem 1rem; text-align: center; min-height: 2.2rem; }
.qr-status.success[b-3q1rc2wbgi] { color: #4ade80; font-weight: 600; }
.qr-status.error[b-3q1rc2wbgi]   { color: #f87171; }
