@import url('https://fonts.googleapis.com/css2?family=Comfortaa:wght@400;500;600;700&family=KoHo:ital,wght@0,500;0,600;1,500;1,600&display=swap');

html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

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-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}


/* Center the login form */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100vh;
}

/* Style the login card */
.login-card {
    width: 100%;
    max-width: 400px;
    padding: 20px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
}
/* Center text inside the card */
.text-center {
    text-align: center;
}

/* Apply background color to MudCardContent */
.login-card-content {
    background-color: #ffffff; /* White background */
    padding: 20px;
    border-radius: 8px;
}

/* Full-width button */
.full-width-btn {
    width: 100%;
}

/* Center the logo */
.logo-container {
    display: flex;
    justify-content: center;
    margin-bottom: 15px;
}
.login-logo {
    max-width: 70px;
    max-height: 70px;
    width: auto;
    height: auto;
    object-fit: contain;
}
.demo-login-layout {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(360px, 560px) 1fr;
    background-color: #ffffff;
}
.demo-login-form {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px;
    background-color: #ffffff;
}
.demo-login-card {
    width: 100%;
    max-width: 420px;
    box-shadow: none;
    border: none;
    border-radius: 0;
}
.demo-login-layout .mud-elevation-1 {
    box-shadow: none;
}
.demo-login-button {
    color: #ffffff !important;
    background-image: linear-gradient(135deg, #6ec1ff 0%, #2f7be5 100%);
}
.demo-login-button:hover {
    background-image: linear-gradient(135deg, #7fcaff 0%, #3b86ee 100%);
}
.demo-login-button--full {
    width: 100%;
}
.demo-login-image {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
@media (max-width: 900px) {
    .demo-login-layout {
        grid-template-columns: 1fr;
    }
    .demo-login-image {
        min-height: 240px;
    }
}

.tesla-auth-layout {
    font-family: 'KoHo', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    color: #8F8F8F;
}
.tesla-auth-layout .mud-typography-h6,
.tesla-auth-layout .mud-typography-h5,
.tesla-auth-layout .mud-typography-h4,
.tesla-auth-layout .mud-typography-subtitle1 {
    font-weight: 600;
}
.tesla-auth-layout .mud-typography-body1,
.tesla-auth-layout .mud-typography-body2,
.tesla-auth-layout .mud-input,
.tesla-auth-layout .mud-input-label,
.tesla-auth-layout .mud-link {
    font-weight: 500;
    color: #8F8F8F;
}
.tesla-auth-layout .mud-checkbox.mud-checked .mud-typography,
.tesla-auth-layout .mud-radio.mud-checked .mud-typography,
.tesla-auth-layout .mud-switch.mud-checked .mud-typography {
    font-style: italic;
}
.tesla-auth-layout .mud-selected,
.tesla-auth-layout .mud-selected .mud-typography {
    font-style: italic;
}

.tesla-login-layout {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(360px, 520px) 1fr;
    background-color: #ffffff;
}
.tesla-login-form {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px;
    background-color: #ffffff;
}
.tesla-login-card {
    width: 100%;
    max-width: 420px;
    box-shadow: none;
    border: none;
    border-radius: 0;
}
.tesla-login-layout .mud-elevation-1 {
    box-shadow: none;
}
.tesla-login-button {
    color: #ffffff !important;
    background-color: #E26161 !important;
    border-color: #E26161 !important;
}
.tesla-login-button:hover {
    background-color: #D85858;
}
.tesla-login-button--full {
    width: 100%;
}
.tesla-login-image {
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
.tesla-login-image::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(226, 97, 97, 0.18), rgba(255, 255, 255, 0));
}
@media (max-width: 900px) {
    .tesla-login-layout {
        grid-template-columns: 1fr;
    }
    .tesla-login-image {
        min-height: 240px;
    }
}

.generic-login-layout {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(360px, 520px) 1fr;
    background-color: #ffffff;
}
.generic-login-form {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px;
    background: linear-gradient(180deg, #ffffff 0%, #f6f9fc 100%);
}
.generic-login-card {
    width: 100%;
    max-width: 420px;
    box-shadow: none;
    border: none;
    border-radius: 0;
}
.generic-login-layout .mud-elevation-1 {
    box-shadow: none;
}
.generic-login-button {
    color: #ffffff !important;
    background-image: linear-gradient(135deg, #3fa9f5 0%, #105396 100%);
}
.generic-login-button:hover {
    background-image: linear-gradient(135deg, #59b7fb 0%, #1c65b4 100%);
}
.generic-login-button--full {
    width: 100%;
}
.generic-login-link {
    color: #1976d2 !important;
    font-weight: 700;
    text-decoration: none;
}
.generic-login-image {
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
.generic-login-image::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(16, 83, 150, 0.12), rgba(255, 255, 255, 0));
}

.platform-auth-layout {
    font-family: 'Comfortaa', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}
.platform-login-layout {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(380px, 1fr) minmax(420px, 0.95fr);
    background: #ffffff;
}
.platform-login-hero {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 55% 35%, rgba(0, 225, 255, 0.18), transparent 24%),
        radial-gradient(circle at 25% 75%, rgba(0, 162, 252, 0.12), transparent 28%),
        linear-gradient(180deg, #223042 0%, #172231 100%);
    color: #f5f8ff;
}
.platform-login-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.03), transparent 45%, rgba(0, 225, 255, 0.06));
    pointer-events: none;
}
.platform-login-hero__inner {
    position: relative;
    z-index: 1;
    min-height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    gap: 28px;
    padding: 72px 64px 48px;
}
.platform-login-badge {
    width: 96px;
    height: 96px;
    border-radius: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #3db7ff 0%, #22c6e8 55%, #00a2fc 100%);
    box-shadow: 0 18px 40px rgba(0, 162, 252, 0.28);
}
.platform-login-badge__icon {
    font-size: 46px;
    color: #ffffff;
}
.platform-login-title {
    margin: 0;
    color: #ffffff;
    font-weight: 700;
    letter-spacing: -0.025em;
    font-size: 2.25rem;
    line-height: 2.5rem;
}
.platform-login-subtitle {
    max-width: 520px;
    margin: 0;
    font-size: 1.08rem;
    line-height: 1.75;
    color: rgba(230, 238, 250, 0.72);
}
.platform-login-features {
    display: grid;
    gap: 20px;
    margin-top: 8px;
    width: min(100%, 440px);
}
.platform-login-feature {
    display: flex;
    align-items: center;
    gap: 16px;
    color: rgba(240, 246, 255, 0.82);
    font-size: 1rem;
    font-weight: 600;
}
.platform-login-feature__icon {
    width: 30px;
    height: 30px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #4fc5ff 0%, #2198ff 100%);
    color: #ffffff;
    font-size: 1rem;
    box-shadow: 0 10px 20px rgba(0, 162, 252, 0.24);
}
.platform-login-powered {
    margin-top: auto;
    color: rgba(202, 214, 232, 0.38);
    font-size: 0.95rem;
}
.platform-login-form-pane {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 32px;
    background:
        radial-gradient(circle at top left, rgba(0, 162, 252, 0.06), transparent 24%),
        linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}
.platform-login-form-shell {
    width: 100%;
    max-width: 480px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 28px;
}
.platform-login-status {
    text-align: center;
}
.platform-login-status__ring {
    width: 96px;
    height: 96px;
    margin: 0 auto 18px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(circle, #eef4ff 38%, #f7f9fd 39%),
        conic-gradient(from 0deg, #3f7ff6 0 82deg, #edf2fb 82deg 360deg);
    box-shadow: inset 0 0 0 6px #f7f9fd;
}
.platform-login-status__icon {
    font-size: 38px;
    color: #397af0;
}
.platform-login-status__title {
    margin: 0;
    color: #0e2a56;
    font-weight: 700;
}
.platform-login-status__subtitle {
    margin-top: 8px;
    color: #5f7ca8;
    font-size: 1rem;
}
.platform-login-card {
    width: 100%;
    max-width: 420px;
    padding: 0;
    border: 0 !important;
    outline: 0 !important;
    border-radius: 0;
    box-shadow: none !important;
    background: transparent !important;
}
.platform-login-card-content {
    background: transparent !important;
    border: 0 !important;
    border-radius: 0;
    padding: 0;
}
.platform-login-card .mud-card-actions {
    padding: 20px 0 0;
}
.platform-login-card .mud-paper,
.platform-login-card .mud-card,
.platform-login-card.mud-paper {
    border: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
}
.platform-login-button {
    color: #ffffff !important;
    background-image: linear-gradient(135deg, #00e1ff 0%, #00a2fc 100%);
    border: none !important;
    border-radius: 999px;
    box-shadow: 0 16px 34px rgba(0, 162, 252, 0.28);
}
.platform-login-button:hover {
    background-image: linear-gradient(135deg, #2ce8ff 0%, #15aeff 100%);
}
.platform-login-button--full {
    width: 100%;
}
.platform-login-link {
    color: #00a2fc !important;
    font-weight: 700;
    text-decoration: none;
}

@media (max-width: 1024px) {
    .platform-login-layout {
        grid-template-columns: 1fr;
    }
    .platform-login-hero__inner {
        padding: 48px 32px 36px;
    }
}

@media (max-width: 900px) {
    .generic-login-layout {
        grid-template-columns: 1fr;
    }
    .generic-login-image {
        min-height: 240px;
    }
}

.signup-container {
    background-image: url('/img//BackAndesTool4.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 100vh; /* Full screen */
    width:100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.background-wrapper {
    background-image: url('/img/BackgroundCosco3.png'); /* o una URL externa */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 100vh;
    width: 100vw;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-container {
    background-color: rgba(255, 255, 255, 0.9); /* Fondo blanco semitransparente */
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0px 0px 20px rgba(0, 0, 0, 0.3);
}

.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: white; /* o un color de fondo acorde */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.background-wrapper {
    min-height: 100vh;
    width: 100vw;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
}

.auth-background-wrapper {
    position: relative;
    overflow: hidden;
}

.auth-background-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.auth-background-content {
    position: relative;
    z-index: 1;
    width: 100%;
}

.demo-login-image,
.tesla-login-image,
.generic-login-image {
    position: relative;
    overflow: hidden;
}

.auth-panel-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.auth-loading-image {
    width: 100px;
    height: auto;
    display: block;
    margin: auto;
}

.auth-back-button {
    margin-bottom: 10px;
}

.auth-text-center {
    text-align: center;
}

.auth-logo-container {
    text-align: center;
    margin-bottom: 20px;
}

.auth-recaptcha-container {
    display: flex;
    justify-content: center;
    margin: 20px 0;
}

.auth-form-full {
    width: 100%;
}

.auth-form-inherit {
    width: inherit;
}

.auth-inline-link {
    cursor: pointer;
    text-decoration: underline;
}

.auth-standard-button {
    color: #ffffff !important;
    background-image: linear-gradient(135deg, #3fa9f5 0%, #105396 100%);
    border: none !important;
}

.auth-standard-button:hover {
    background-image: linear-gradient(135deg, #59b7fb 0%, #1c65b4 100%);
}

.auth-spacing-top-sm {
    margin-top: 8px;
}

.auth-spacing-top-lg {
    margin-top: 40px;
}

.auth-dialog-scroll {
    max-height: 400px;
    overflow: auto;
}

.tesla-muted-text {
    color: #8f8f8f;
}

.tesla-caption-block {
    display: block;
    color: #7b7b7b;
}

.tesla-caption-example {
    display: block;
    color: #a05b5b;
}

.tesla-caption-progress {
    display: block;
    color: #8f8f8f;
}

.tesla-text-button {
    color: #e26161 !important;
    font-weight: 600;
}

.tesla-login-link {
    color: #e26161 !important;
    font-weight: 700;
    text-decoration: none;
}

.customer-code-field input {
    font-size: 1.35rem !important;
    letter-spacing: 0.35rem;
    text-align: center;
    font-weight: 600;
}

.code-preview-field input {
    text-align: center;
    font-size: 1.5rem;
    letter-spacing: 3px;
}

.access-denied-paper {
    background: linear-gradient(135deg, #fff8f8 0%, #ffffff 55%, #fff3f3 100%);
}

.access-denied-fade-in {
    animation: access-denied-fade-in 0.35s ease-out;
}

@keyframes access-denied-fade-in {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.admin-header-title {
    font-weight: 700;
    color: #223042;
}

.admin-header-subtitle {
    color: #5f7ca8;
}

.admin-avatar-shell {
    background: linear-gradient(135deg, #ffffff 0%, #eef4ff 100%);
}

.admin-log-panel {
    background: linear-gradient(180deg, rgba(248, 251, 255, 0.92) 0%, rgba(255, 255, 255, 0.98) 100%);
}

.page {
    position: relative;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

.sidebar {
    background-image: linear-gradient(180deg, rgb(5, 39, 103) 0%, #3a0647 70%);
}

.top-row {
    background-color: #f7f7f7;
    border-bottom: 1px solid #d6d5d5;
    justify-content: flex-end;
    height: 3.5rem;
    display: flex;
    align-items: center;
}

.top-row a,
.top-row .btn-link {
    white-space: nowrap;
    margin-left: 1.5rem;
    text-decoration: none;
}

.top-row a:hover,
.top-row .btn-link:hover {
    text-decoration: underline;
}

.top-row a:first-child {
    overflow: hidden;
    text-overflow: ellipsis;
}

.navbar-toggler {
    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.1);
    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.55%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.1);
}

.navbar-toggler:checked {
    background-color: rgba(255, 255, 255, 0.5);
}

.navbar-brand {
    font-size: 1.1rem;
}

.bi {
    display: inline-block;
    position: relative;
    width: 1.25rem;
    height: 1.25rem;
    margin-right: 0.75rem;
    top: -1px;
    background-size: cover;
}

.bi-house-door-fill-nav-menu {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' class='bi bi-house-door-fill' viewBox='0 0 16 16'%3E%3Cpath d='M6.5 14.5v-3.505c0-.245.25-.495.5-.495h2c.25 0 .5.25.5.5v3.5a.5.5 0 0 0 .5.5h4a.5.5 0 0 0 .5-.5v-7a.5.5 0 0 0-.146-.354L13 5.793V2.5a.5.5 0 0 0-.5-.5h-1a.5.5 0 0 0-.5.5v1.293L8.354 1.146a.5.5 0 0 0-.708 0l-6 6A.5.5 0 0 0 1.5 7.5v7a.5.5 0 0 0 .5.5h4a.5.5 0 0 0 .5-.5Z'/%3E%3C/svg%3E");
}

.bi-plus-square-fill-nav-menu {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' class='bi bi-plus-square-fill' viewBox='0 0 16 16'%3E%3Cpath d='M2 0a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V2a2 2 0 0 0-2-2H2zm6.5 4.5v3h3a.5.5 0 0 1 0 1h-3v3a.5.5 0 0 1-1 0v-3h-3a.5.5 0 0 1 0-1h3v-3a.5.5 0 0 1 1 0z'/%3E%3C/svg%3E");
}

.bi-list-nested-nav-menu {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' class='bi bi-list-nested' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M4.5 11.5A.5.5 0 0 1 5 11h10a.5.5 0 0 1 0 1H5a.5.5 0 0 1-.5-.5zm-2-4A.5.5 0 0 1 3 7h10a.5.5 0 0 1 0 1H3a.5.5 0 0 1-.5-.5zm-2-4A.5.5 0 0 1 1 3h10a.5.5 0 0 1 0 1H1a.5.5 0 0 1-.5-.5z'/%3E%3C/svg%3E");
}

.nav-item {
    font-size: 0.9rem;
    padding-bottom: 0.5rem;
}

.nav-item:first-of-type {
    padding-top: 1rem;
}

.nav-item:last-of-type {
    padding-bottom: 1rem;
}

.nav-item .nav-link {
    color: #d7d7d7;
    background: none;
    border: none;
    border-radius: 4px;
    height: 3rem;
    display: flex;
    align-items: center;
    line-height: 3rem;
    width: 100%;
}

.nav-item a.active {
    background-color: rgba(255,255,255,0.37);
    color: white;
}

.nav-item .nav-link:hover {
    background-color: rgba(255,255,255,0.1);
    color: white;
}

.nav-scrollable {
    display: none;
}

.navbar-toggler:checked ~ .nav-scrollable {
    display: block;
}

.client-admin-grid {
    align-items: stretch;
}

.client-admin-form,
.client-admin-table {
    height: 100%;
}

.client-search-field {
    min-width: 280px;
}

.client-security-hint {
    margin-top: 0.25rem;
}

.client-secret-field input {
    font-family: "Consolas", "Courier New", monospace;
    letter-spacing: 0.02em;
}

@media (max-width: 960px) {
    .client-search-field {
        min-width: 100%;
    }
}

@media (max-width: 640.98px) {
    .top-row {
        justify-content: space-between;
    }

    .top-row a,
    .top-row .btn-link {
        margin-left: 0;
    }
}

@media (min-width: 641px) {
    .page {
        flex-direction: row;
    }

    .sidebar {
        width: 250px;
        height: 100vh;
        position: sticky;
        top: 0;
    }

    .top-row {
        position: sticky;
        top: 0;
        z-index: 1;
    }

    .top-row.auth a:first-child {
        flex: 1;
        text-align: right;
        width: 0;
    }

    .top-row,
    article {
        padding-left: 2rem !important;
        padding-right: 1.5rem !important;
    }

    .navbar-toggler {
        display: none;
    }

    .nav-scrollable {
        display: block;
        height: calc(100vh - 3.5rem);
        overflow-y: auto;
    }
}

#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;
}

.plain-admin-shell {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
    color: #1f2a37;
}

.plain-admin-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.plain-admin-grid {
    display: grid;
    grid-template-columns: minmax(320px, 420px) minmax(0, 1fr);
    gap: 1.5rem;
}

.plain-admin-card {
    background: #fff;
    border: 1px solid #dbe3ef;
    border-radius: 16px;
    box-shadow: 0 18px 45px rgba(20, 39, 69, 0.08);
    padding: 1.5rem;
}

.plain-admin-form {
    display: grid;
    gap: 0.9rem;
}

.plain-admin-form label {
    display: grid;
    gap: 0.35rem;
    font-size: 0.92rem;
    color: #43536b;
}

.plain-admin-form input {
    width: 100%;
    border: 1px solid #c8d4e6;
    border-radius: 10px;
    padding: 0.7rem 0.8rem;
    font-size: 0.95rem;
    color: #1f2a37;
    background: #fff;
}

.plain-admin-checkbox {
    grid-auto-flow: column;
    justify-content: start;
    align-items: center;
    gap: 0.55rem;
}

.plain-admin-checkbox input {
    width: auto;
}

.plain-admin-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.plain-admin-button,
.plain-admin-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0.65rem 1rem;
    border-radius: 10px;
    border: 1px solid #d0dae8;
    text-decoration: none;
    font-weight: 600;
    background: #1b4ee0;
    color: #fff;
    cursor: pointer;
}

.plain-admin-button--secondary,
.plain-admin-link {
    background: #fff;
    color: #1f2a37;
}

.plain-admin-button--accent {
    background: #0f766e;
    color: #fff;
}

.plain-admin-alert {
    border-radius: 12px;
    padding: 1rem 1.1rem;
    margin-bottom: 1rem;
    border: 1px solid transparent;
}

.plain-admin-alert--success {
    background: #eefbf3;
    border-color: #b8e2c4;
    color: #18633c;
}

.plain-admin-alert--error {
    background: #fff2f2;
    border-color: #f0b8b8;
    color: #8a1d1d;
}

.plain-admin-alert--warning {
    background: #fff8e8;
    border-color: #efd9a1;
    color: #7a5c00;
}

.plain-admin-secret {
    margin: 0.65rem 0;
    padding: 0.85rem 1rem;
    border-radius: 10px;
    background: #16202f;
    color: #f8fbff;
    font-family: "Consolas", "Courier New", monospace;
    overflow-wrap: anywhere;
}

.plain-admin-table {
    width: 100%;
    border-collapse: collapse;
}

.plain-admin-table th,
.plain-admin-table td {
    text-align: left;
    padding: 0.8rem 0.6rem;
    border-bottom: 1px solid #e6edf7;
    vertical-align: top;
}

.plain-admin-table-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

@media (max-width: 960px) {
    .plain-admin-shell {
        padding: 1rem;
    }

    .plain-admin-header,
    .plain-admin-grid {
        grid-template-columns: 1fr;
        display: grid;
    }
}


