html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: transparent;
}

a, .btn-link {
    color: #006bb7;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.content {
    padding-top: 1.1rem;
}

h1:focus {
    outline: none;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

#blazor-error-ui {
    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 {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAy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DUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

/* Loading Progress Indicator */
.loading-progress {
    position: relative;
    display: block;
    width: 8rem;
    height: 8rem;
    margin: 20vh auto 1rem auto;
}

    .loading-progress circle {
        fill: none;
        stroke: #e0e0e0;
        stroke-width: 0.6rem;
        transform-origin: 50% 50%;
        transform: rotate(-90deg);
    }

        .loading-progress circle:last-child {
            stroke: #1b6ec2;
            stroke-dasharray: calc(3.141 * var(--blazor-load-percentage, 0%) * 0.8), 500%;
            transition: stroke-dasharray 0.05s ease-in-out;
        }

.loading-progress-text {
    position: absolute;
    text-align: center;
    font-weight: bold;
    inset: calc(20vh + 3.25rem) 0 auto 0.2rem;
}

    .loading-progress-text:after {
        content: var(--blazor-load-percentage-text, "Loading");
    }

.status-bar-safe-area {
    display: none;
}

@supports (-webkit-touch-callout: none) {
    .status-bar-safe-area {
        display: flex;
        position: sticky;
        top: 0;
        height: env(safe-area-inset-top);
        background-color: #b32121;
        width: 100%;
        z-index: 1;
    }

    .flex-column, .navbar-brand {
        padding-left: env(safe-area-inset-left);
    }
}

/* Floating Dock */
.floating-dock {
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    bottom: calc(30px + env(safe-area-inset-bottom));
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    padding: 6px 12px;
    border-radius: 20px !important;
    color: #222;
    z-index: 1000;
    background: linear-gradient(180deg, rgba(255,255,255,0.22), rgba(255,255,255,0.12));
    border: 1px solid rgba(255,255,255,0.30);
    box-shadow: 0 8px 32px -4px rgba(0,0,0,0.12), 
                0 -2px 12px -2px rgba(0,0,0,0.08), 
                0 2px 12px -1px rgba(0,0,0,0.10), 
                inset 0 1px 0 rgba(255,255,255,0.50);
    backdrop-filter: blur(20px) saturate(180%) brightness(1.1);
    -webkit-backdrop-filter: blur(20px) saturate(180%) brightness(1.1);
    min-width: 220px;
    max-width: 95vw;
    overflow: visible;
    will-change: transform;
    transition: transform 140ms cubic-bezier(.25,.46,.45,.94);
    touch-action: manipulation;
}

    /* Verst�rkter Glanzeffekt f�r mehr Glasslook */
    .floating-dock::before {
        content: "";
        position: absolute;
        inset: 0;
        border-radius: inherit;
        pointer-events: none;
        background: linear-gradient(135deg, rgba(255,255,255,0.35), rgba(255,255,255,0) 50%);
        opacity: .85;
    }

    .floating-dock::after {
        content: "";
        position: absolute;
        left: 10%;
        top: -16%;
        width: 55%;
        height: 90%;
        background: radial-gradient(ellipse at top, rgba(255,255,255,0.30), rgba(255,255,255,0) 60%);
        filter: blur(10px);
        pointer-events: none;
    }

/* Dock-Click Animation unver�ndert (Hebeeffekt) � bleibt bis animationend aktiv */
@keyframes dock-press {
    0% {
        transform: translateX(-50%) translateY(0) scale(1);
    }

    45% {
        transform: translateX(-50%) translateY(-4px) scale(1.035);
    }

    70% {
        transform: translateX(-50%) translateY(-2px) scale(1.02);
    }

    100% {
        transform: translateX(-50%) translateY(0) scale(1);
    }
}

.floating-dock.pressing {
    animation: dock-press 220ms cubic-bezier(.33,.65,.4,1.05);
}

/* Button-Animation jetzt �ber Klasse .clicked statt :active, l�uft immer zu Ende */
@keyframes btn-expand {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.10);
    }

    80% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

.dock-btn.clicked {
    animation: btn-expand 260ms cubic-bezier(.33,.65,.4,1.05);
    background: rgba(255,255,255,0.18);
}

/* Ripple-Effekt ebenfalls klassengesteuert, unabh�ngig vom Loslassen */
@keyframes btn-ripple {
    0% {
        opacity: .55;
        transform: scale(.2);
    }

    70% {
        opacity: .35;
        transform: scale(1.1);
    }

    100% {
        opacity: 0;
        transform: scale(1.25);
    }
}

.dock-btn.clicked::after {
    opacity: 0;
    animation: btn-ripple 400ms ease-out forwards;
}

.dock-btn:active, .dock-btn:focus {
    /* Entfernt vorheriges :active Scale, damit Klasse dominiert */
    transform: none;
}

/* Buttons */
.dock-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    width: 56px;
    height: 56px;
    padding: 6px 4px;
    border-radius: 14px;
    border: none;
    background: rgba(255,255,255,0.05);
    color: inherit;
    font-size: 12px;
    line-height: 1;
    opacity: 0.95;
    cursor: pointer;
    position: relative;
    text-align: center;
    transition: background 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

    .dock-btn span {
        font-size: 9px;
        line-height: 1;
        font-weight: 500;
        white-space: nowrap;
    }

    .dock-btn:hover, .dock-btn:focus {
        background: rgba(255,255,255,0.12);
        opacity: 1;
        outline: none;
    }

    .dock-btn:active {
        transform: scale(1.08);
        background: rgba(255,255,255,0.18);
    }

    .dock-btn.active, .dock-btn[aria-current="page"] {
        background: linear-gradient(180deg, rgba(255,255,255,0.25), rgba(255,255,255,0.12));
        opacity: 1;
        box-shadow: 0 4px 14px -4px rgba(40,80,140,.25);
    }

    /* Optional: leichte Wellen beim Klick */
    .dock-btn::after {
        content: "";
        position: absolute;
        inset: 0;
        border-radius: inherit;
        background: radial-gradient(circle at center, rgba(255,255,255,0.35), rgba(255,255,255,0) 70%);
        opacity: 0;
        transform: scale(.2);
        transition: opacity .4s ease, transform .4s ease;
        pointer-events: none;
    }

    .dock-btn:active::after {
        opacity: .45;
        transform: scale(1.15);
    }

/* FAB (falls aktiv) */
.dock-fab {
    position: relative;
    margin: -28px 10px 0 10px;
    border-radius: 50%;
    box-shadow: 0 6px 18px -4px rgba(46,90,172,0.25);
    background: linear-gradient(180deg, #2e5aac, #264a8f);
    color: #fff;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    border: none;
    cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease;
}

    .dock-fab:active {
        transform: scale(1.07);
        box-shadow: 0 12px 28px -6px rgba(46,90,172,0.32);
    }

/* Platz nach unten f�r Inhalt */
.page-body, .mud-main-content {
    padding-bottom: 96px;
}

@media (max-width: 420px) {
    .floating-dock {
        bottom: calc(25px + env(safe-area-inset-bottom));
        padding: 5px 10px;
        border-radius: 24px;
        gap: 8px;
    }

    .dock-btn, .dock-fab {
        width: 48px;
        height: 48px;
    }

        .dock-btn span {
            font-size: 10px;
        }

    .page-body, .mud-main-content {
        padding-bottom: 88px;
    }
}

/* Logout Card Styles */
.logout-card {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1) 0%, rgba(220, 38, 38, 0.05) 100%);
    border-radius: 16px;
    padding: 1.5rem;
    margin-top: 1.5rem;
    border: 1px solid rgba(239, 68, 68, 0.2);
    backdrop-filter: blur(10px);
}

.logout-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.logout-icon {
    font-size: 1.5rem;
}

.logout-header h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #1f2937;
}

.logout-text {
    color: #4b5563;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.btn-logout {
    width: 100%;
    padding: 0.875rem;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: 0 4px 6px rgba(239, 68, 68, 0.2);
}

.btn-logout:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(239, 68, 68, 0.3);
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
}

.btn-logout:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(239, 68, 68, 0.2);
}

.btn-logout .btn-icon {
    font-size: 1.2rem;
}

/* HighUser Dock Styles - Generated by GitHub Copilot Agent */
.highuser-dock {
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    bottom: calc(30px + env(safe-area-inset-bottom));
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    padding: 6px 12px;
    border-radius: 20px !important;
    color: #222;
    z-index: 1000;
    background: linear-gradient(180deg, rgba(139, 95, 207, 0.12), rgba(107, 95, 207, 0.08));
    border: 1px solid rgba(139, 95, 207, 0.2);
    box-shadow: 0 8px 24px -4px rgba(107, 95, 207, 0.24),
                0 -2px 8px -2px rgba(107, 95, 207, 0.20),
                0 2px 8px -1px rgba(107, 95, 207, 0.14),
                inset 0 1px 0 rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(14px) saturate(150%) contrast(105%);
    -webkit-backdrop-filter: blur(14px) saturate(150%) contrast(105%);
    min-width: 220px;
    max-width: 95vw;
    overflow: visible;
    will-change: transform;
    transition: transform 140ms cubic-bezier(.25, .46, .45, .94);
    touch-action: manipulation;
}

    .highuser-dock::before {
        content: "";
        position: absolute;
        inset: 0;
        border-radius: inherit;
        pointer-events: none;
        opacity: .7;
    }

    .highuser-dock::after {
        content: "";
        position: absolute;
        left: 10%;
        top: -16%;
        width: 55%;
        height: 90%;
        background: radial-gradient(ellipse at top, rgba(139, 95, 207, 0.18), rgba(139, 95, 207, 0) 55%);
        filter: blur(8px);
        pointer-events: none;
    }

.highuser-dock.pressing {
    animation: dock-press 220ms cubic-bezier(.33, .65, .4, 1.05);
}

.highuser-dock .dock-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    background: rgba(107, 95, 207, 0.05);
}

    .highuser-dock .dock-btn:disabled:hover {
        background: rgba(107, 95, 207, 0.05);
        transform: none;
    }

@media (max-width: 420px) {
    .highuser-dock {
        bottom: calc(25px + env(safe-area-inset-bottom));
        padding: 5px 10px;
        gap: 8px;
        min-width: 200px;
    }
}
}
