html, body {
    background: linear-gradient(90deg, rgba(60, 76, 82,1) 0%, rgba(42,44,49,1) 100%);
    color: #bdbdbd;
    font-family: Helvetica;
    font-size: small;
    padding: 0px;
    margin: 0px;
    min-height: 100vh; /* Changed from 100% to 100vh for proper full height */
    width: 100%;
}

/* Removed the problematic body flex rule that was causing layout issues */
body {
    /* display: flex; - REMOVED: This was causing the login box to align left */
}

.app {
    padding: 0px;
    margin: 0px;
    width: 100%;
    min-height: 100vh; /* Ensure full height */
}

/* Main layout container - only apply flex when user is logged in */
.layout-container {
    width: 100%;
    min-height: 100vh;
}

/* Apply flex layout only to the main dashboard layout, not login */
.dashboard-layout {
    display: flex;
    flex-direction: column;
    width: 100%;
    min-height: 100vh;
}

.Component {
    width: 100%;
    height: 100%;
    animation: fadeout 0.5s;
}

@keyframes fadeout {
    0% {
        opacity: 0;
    }

    50% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

/* Login-specific styles to ensure proper centering */
.login-container {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    min-height: 100vh !important;
    width: 100% !important;
    padding: 20px;
    box-sizing: border-box;
    /* Inherit the background from body */
}

/* Ensure login box positioning */
.login-box {
    position: relative;
    z-index: 10;
}

/* Tab system styling - only visible after login */
.MainMenu {
    background-color: rgba(67, 69, 75, 0.9);
    width: 100%;
    height: 60px;
    position: sticky;
    top: 0;
    box-shadow: inset 0 0 5px 0px #00000046, 0px 4px 10px 5px #00000046;
    z-index: 100;
}

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 {
    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 {