@import url('open-iconic/font/css/open-iconic-bootstrap.min.css');

:root {
    --mud-palette-warning: #DAA011;
    --mud-palette-warning-rgb: 218, 160, 17;
}

html, body {
     font-family: "Plus Jakarta Sans", sans-serif !important;
}

a, .btn-link {
    color: #0366d6;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.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;
    }

.components-reconnect-modal {
    align-items: center;
    background: rgba(0, 31, 55, 0.5);
    display: none;
    inset: 0;
    justify-content: center;
    padding: 1rem;
    position: fixed;
    z-index: 5000;
}

.components-reconnect-modal.components-reconnect-show,
.components-reconnect-modal.components-reconnect-retrying,
.components-reconnect-modal.components-reconnect-failed,
.components-reconnect-modal.components-reconnect-rejected {
    display: flex;
}

.components-reconnect-card {
    align-items: center;
    background: #ffffff;
    border: 1px solid #d6e2ec;
    border-radius: 8px;
    box-shadow: 0 18px 48px rgba(0, 31, 55, 0.24);
    display: flex;
    gap: 1rem;
    max-width: 34rem;
    padding: 1rem 1.25rem;
    width: min(100%, 34rem);
}

.components-reconnect-spinner {
    border: 3px solid #d6e2ec;
    border-top-color: #004976;
    border-radius: 50%;
    flex: 0 0 auto;
    height: 2rem;
    width: 2rem;
    animation: components-reconnect-spin 0.8s linear infinite;
}

.components-reconnect-copy {
    color: #002f4f;
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    gap: 0.25rem;
    min-width: 0;
}

.components-reconnect-copy strong {
    font-size: 1rem;
}

.components-reconnect-copy span {
    color: #34495e;
    font-size: 0.9rem;
    line-height: 1.35;
}

.components-reconnect-actions {
    display: none;
    flex: 0 0 auto;
    gap: 0.5rem;
}

.components-reconnect-modal.components-reconnect-failed .components-reconnect-actions {
    display: flex;
}

.components-reconnect-show-visible,
.components-reconnect-retrying-visible,
.components-reconnect-failed-visible,
.components-reconnect-rejected-visible {
    display: none;
}

.components-reconnect-modal.components-reconnect-show .components-reconnect-show-visible,
.components-reconnect-modal.components-reconnect-retrying .components-reconnect-retrying-visible,
.components-reconnect-modal.components-reconnect-failed .components-reconnect-failed-visible,
.components-reconnect-modal.components-reconnect-rejected .components-reconnect-rejected-visible {
    display: inline;
}

.components-reconnect-modal.components-reconnect-failed .components-reconnect-spinner {
    animation: none;
    border-color: #d97706;
}

.components-reconnect-actions button {
    background: #004976;
    border: 1px solid #004976;
    border-radius: 4px;
    color: #ffffff;
    cursor: pointer;
    font: inherit;
    font-size: 0.875rem;
    padding: 0.45rem 0.75rem;
    white-space: nowrap;
}

.components-reconnect-actions button:last-child {
    background: #ffffff;
    color: #004976;
}

@keyframes components-reconnect-spin {
    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 520px) {
    .components-reconnect-card {
        align-items: flex-start;
        flex-direction: column;
    }

    .components-reconnect-actions {
        width: 100%;
    }

    .components-reconnect-actions button {
        flex: 1 1 0;
    }
}



.cert-sidebar.mud-drawer:not(.mud-drawer-fixed) {
    position: fixed;
}

/* Ensure all MudSelect components have a down arrow icon at the end, 
   even if a custom AdornmentIcon is used at the start. */
.mud-select {
    position: relative;
}

.mud-select .mud-input-adorned-start .mud-input-outlined-border::after {
    content: "";
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='rgba(0,0,0,0.54)'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    pointer-events: none;
    z-index: 10;
}

/* Adjust padding for MudSelect with start adornment to ensure text doesn't overlap the arrow */
.mud-select .mud-input-adorned-start .mud-input-slot {
    padding-right: 32px !important;
}

/* Move snackbar slightly below the default top-right position (avoid huge values — they render off-screen). */
.app-snackbar-offset {
    top: 9rem !important;
}


