html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

h1:focus {
    outline: none;
}

a, .btn-link {
    color: #0071c1;
}

.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;
}

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

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

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

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5I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I2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) 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 {
    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");
    }

code {
    color: #c02d76;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

.login-container,
.login-layout, /* alias for LoginLayout.razor */
.login-layou /* tolerate the typo variant provided by user */ {
    min-height: 100vh;
}

    /* Keep existing left/right pane styles; make them apply when inside either .login-container or .login-layout */
    .login-container .left-pane,
    .login-layout .left-pane,
    .login-layou .left-pane {
        background-color: var(--mud-palette-primary); /* Using MudBlazor's official primary color */
        color: white;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .login-container .right-pane,
    .login-layout .right-pane,
    .login-layou .right-pane {
        background-color: #111827;
        color: white;
    }

        .login-container .right-pane .mud-input-outlined,
        .login-layout .right-pane .mud-input-outlined,
        .login-layou .right-pane .mud-input-outlined {
            color: white;
        }

            .login-container .right-pane .mud-input-outlined .mud-input-label-outlined,
            .login-layout .right-pane .mud-input-outlined .mud-input-label-outlined,
            .login-layou .right-pane .mud-input-outlined .mud-input-label-outlined {
                color: rgba(255, 255, 255, 0.7);
            }

            .login-container .right-pane .mud-input-outlined > .mud-input-adornment,
            .login-layout .right-pane .mud-input-outlined > .mud-input-adornment,
            .login-layou .right-pane .mud-input-outlined > .mud-input-adornment {
                color: rgba(255, 255, 255, 0.7);
            }

            .login-container .right-pane .mud-input-outlined > input,
            .login-layout .right-pane .mud-input-outlined > input,
            .login-layou .right-pane .mud-input-outlined > input {
                color: white;
            }

            .login-container .right-pane .mud-input-outlined > fieldset,
            .login-layout .right-pane .mud-input-outlined > fieldset,
            .login-layou .right-pane .mud-input-outlined > fieldset {
                border-color: rgba(255, 255, 255, 0.23) !important;
            }

            .login-container .right-pane .mud-input-outlined:hover > fieldset,
            .login-layout .right-pane .mud-input-outlined:hover > fieldset,
            .login-layou .right-pane .mud-input-outlined:hover > fieldset {
                border-color: rgba(255, 255, 255, 0.87) !important;
            }

        .login-container .right-pane .mud-icon-button,
        .login-layout .right-pane .mud-icon-button,
        .login-layou .right-pane .mud-icon-button {
            color: rgba(255, 255, 255, 0.7);
        }

    .login-container .mud-list-item-icon,
    .login-layout .mud-list-item-icon,
    .login-layou .mud-list-item-icon {
        color: white;
    }

.bg-primary-mud {
    background-color: var(--mud-palette-primary);
    color: var(--mud-palette-primary-text);
}

.bg-secondary-mud {
    background-color: var(--mud-palette-secondary);
    color: var(--mud-palette-secondary-text);
}


.paper-center {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0; 
}

.chart-fill {
    width: 100%;
    height: 100%;
}


.chart-fill canvas {
    width: 100% !important;
    height: 100% !important;
}

.kpi-card {
    background: linear-gradient(145deg, #1e1e1e, #252525);
    border-radius: 12px;
}

.amount-field input {
    text-align: right;
    font-weight: 500;
}

html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    background-color: #0a0e27;
}

h1:focus {
    outline: none;
}

a, .btn-link {
    color: #0071c1;
}

.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;
}

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

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

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

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDU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GZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) 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 {
    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");
    }

code {
    color: #c02d76;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

.login-container,
.login-layout,
.login-layou {
    min-height: 100vh;
}

    .login-container .left-pane,
    .login-layout .left-pane,
    .login-layou .left-pane {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        color: white;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .login-container .right-pane,
    .login-layout .right-pane,
    .login-layou .right-pane {
        background-color: #111827;
        color: white;
    }

        .login-container .right-pane .mud-input-outlined,
        .login-layout .right-pane .mud-input-outlined,
        .login-layou .right-pane .mud-input-outlined {
            color: white;
        }

            .login-container .right-pane .mud-input-outlined .mud-input-label-outlined,
            .login-layout .right-pane .mud-input-outlined .mud-input-label-outlined,
            .login-layou .right-pane .mud-input-outlined .mud-input-label-outlined {
                color: rgba(255, 255, 255, 0.7);
            }

            .login-container .right-pane .mud-input-outlined > .mud-input-adornment,
            .login-layout .right-pane .mud-input-outlined > .mud-input-adornment,
            .login-layou .right-pane .mud-input-outlined > .mud-input-adornment {
                color: rgba(255, 255, 255, 0.7);
            }

            .login-container .right-pane .mud-input-outlined > input,
            .login-layout .right-pane .mud-input-outlined > input,
            .login-layou .right-pane .mud-input-outlined > input {
                color: white;
            }

            .login-container .right-pane .mud-input-outlined > fieldset,
            .login-layout .right-pane .mud-input-outlined > fieldset,
            .login-layou .right-pane .mud-input-outlined > fieldset {
                border-color: rgba(255, 255, 255, 0.23) !important;
            }

            .login-container .right-pane .mud-input-outlined:hover > fieldset,
            .login-layout .right-pane .mud-input-outlined:hover > fieldset,
            .login-layou .right-pane .mud-input-outlined:hover > fieldset {
                border-color: rgba(255, 255, 255, 0.87) !important;
            }

        .login-container .right-pane .mud-icon-button,
        .login-layout .right-pane .mud-icon-button,
        .login-layou .right-pane .mud-icon-button {
            color: rgba(255, 255, 255, 0.7);
        }

    .login-container .mud-list-item-icon,
    .login-layout .mud-list-item-icon,
    .login-layou .mud-list-item-icon {
        color: white;
    }

.bg-primary-mud {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.bg-secondary-mud {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
}

.paper-center {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.chart-fill {
    width: 100%;
    height: 100%;
}

    .chart-fill canvas {
        width: 100% !important;
        height: 100% !important;
    }

/* Moderne KPI Cards mit Glassmorphism */
.kpi-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    transition: all 0.3s ease;
}

    .kpi-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 12px 40px 0 rgba(0, 0, 0, 0.5);
        border-color: rgba(102, 126, 234, 0.3);
    }

/* Amount Field Styling */
.amount-field input {
    text-align: right;
    font-weight: 600;
    font-size: 1.1rem;
}

/* MudPaper Custom Styles */
.mud-paper {
    background: rgba(255, 255, 255, 0.05) !important;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    box-shadow: 0 4px 24px 0 rgba(0, 0, 0, 0.2);
}

    /* Header Styling */
    .mud-paper.pa-4.mb-4 {
        background: linear-gradient(135deg, rgba(102, 126, 234, 0.15) 0%, rgba(118, 75, 162, 0.15) 100%);
        border: 1px solid rgba(102, 126, 234, 0.3);
    }

/* Table Styling */
.mud-table {
    background: transparent !important;
}

.mud-table-head {
    background: rgba(102, 126, 234, 0.1) !important;
}

.mud-table-row {
    background: rgba(255, 255, 255, 0.02) !important;
    transition: all 0.2s ease;
}

    .mud-table-row:hover {
        background: rgba(102, 126, 234, 0.08) !important;
    }

/* Button Styling */
.mud-button-filled.mud-button-filled-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 4px 15px 0 rgba(102, 126, 234, 0.4);
    transition: all 0.3s ease;
}

    .mud-button-filled.mud-button-filled-primary:hover {
        box-shadow: 0 6px 20px 0 rgba(102, 126, 234, 0.6);
        transform: translateY(-2px);
    }

.mud-button-outlined {
    border: 2px solid rgba(102, 126, 234, 0.5);
    transition: all 0.3s ease;
}

    .mud-button-outlined:hover {
        border-color: #667eea;
        background: rgba(102, 126, 234, 0.1);
    }

/* Input Field Styling */
.mud-input-outlined fieldset {
    border-color: rgba(255, 255, 255, 0.2) !important;
    transition: all 0.3s ease;
}

.mud-input-outlined:hover fieldset {
    border-color: rgba(102, 126, 234, 0.5) !important;
}

.mud-input-outlined.mud-input-adorned-end input {
    color: rgba(255, 255, 255, 0.95);
    font-weight: 500;
}

/* Input Text Color - wichtig für Lesbarkeit */
.mud-input input,
.mud-input textarea,
.mud-select-input {
    color: white !important;
}

.mud-input-label,
.mud-input-label-outlined {
    color: rgba(255, 255, 255, 0.7) !important;
}

/* Color Accents */
.mud-text-primary {
    color: #667eea !important;
}

.mud-text-secondary {
    color: #a78bfa !important;
}

/* Success/Error States */
.success-accent {
    color: #10b981;
    text-shadow: 0 0 10px rgba(16, 185, 129, 0.5);
}

.error-accent {
    color: #ef4444;
    text-shadow: 0 0 10px rgba(239, 68, 68, 0.5);
}

.warning-accent {
    color: #f59e0b;
    text-shadow: 0 0 10px rgba(245, 158, 11, 0.5);
}

.info-accent {
    color: #3b82f6;
    text-shadow: 0 0 10px rgba(59, 130, 246, 0.5);
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

::-webkit-scrollbar-thumb {
    background: rgba(102, 126, 234, 0.5);
    border-radius: 4px;
}

    ::-webkit-scrollbar-thumb:hover {
        background: rgba(102, 126, 234, 0.7);
    }

:root {
    --app-bg: #0f0f1e;
    --card-bg: rgba(255, 255, 255, 0.05);
    --accent-purple: #818cf8;
    --text-main: #e2e8f0;
    --text-muted: #94a3b8;
}

/* Verhindert das "Grau auf Grau" bei MudBlazor Inputs */
.mud-input-root {
    color: var(--text-main) !important;
}

.mud-input-label {
    color: var(--text-muted) !important;
}

.mud-helper-text {
    color: var(--text-muted) !important;
}
