@import url('open-iconic/font/css/open-iconic-bootstrap.min.css');

:root {
    --dw-bg-1: #0e2c43;
    --dw-bg-2: #1b5275;
    --dw-cyan: #2b6a94;
    --dw-green: #225a81;
    --dw-gold: #3a7eab;
    --dw-text: #102a3e;
    --dw-text-soft: #2f4d63;
    --dw-surface: #ffffff;
    --dw-page: #f3f7fb;

    --mud-palette-primary: #1b5275;
    --mud-palette-primary-rgb: 27, 82, 117;
    --mud-palette-secondary: #13415f;
    --mud-palette-secondary-rgb: 19, 65, 95;
    --mud-palette-tertiary: #2b6a94;
    --mud-palette-tertiary-rgb: 43, 106, 148;
    --mud-palette-info: #2b6a94;
    --mud-palette-info-rgb: 43, 106, 148;
    --mud-palette-success: #225a81;
    --mud-palette-success-rgb: 34, 90, 129;
    --mud-palette-warning: #3a7eab;
    --mud-palette-warning-rgb: 58, 126, 171;
    --mud-palette-background: #f3f7fb;
    --mud-palette-surface: #ffffff;
    --mud-palette-text-primary: #102a3e;
    --mud-palette-text-secondary: #2f4d63;
    --mud-palette-appbar-background: #0e2c43;
    --mud-palette-appbar-text: #f2f7fb;
    --mud-palette-drawer-background: #123a57;
    --mud-palette-drawer-text: #eaf5fb;
    --mud-palette-drawer-icon: #8fb7d3;
    --mud-palette-action-default-hover: rgba(0,0,0,0.358823529411764705) !important;
}

html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    background: linear-gradient(170deg, #f7fbfe 0%, var(--dw-page) 65%, #edf3f9 100%);
    color: var(--dw-text);
}

html {
    font-size: 14px;
}

html, body, #app {
    min-height: 100%;
}

h1:focus {
    outline: none;
}

a, .btn-link {
    color: var(--dw-cyan);
}

.btn-primary {
    color: #f2f7fb;
    background-color: var(--dw-cyan);
    border-color: #245f86;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem #ffffff, 0 0 0 0.25rem rgba(43, 106, 148, 0.35);
}

.content {
    padding-top: 0.9rem;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid var(--dw-green);
}

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

.validation-message {
    color: #c84d4d;
}

#blazor-error-ui {
    background: #ffffff;
    border-top: 2px solid #0e2c43;
    color: #102a3e;
    bottom: 0;
    box-shadow: 0 -2px 8px rgba(7, 27, 43, 0.15);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui a {
        color: #1b5275;
        font-weight: 600;
    }

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }

.blazor-error-boundary {
    background: #b32121;
    padding: 1rem;
    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: #d9e3ec;
        stroke-width: 0.6rem;
        transform-origin: 50% 50%;
        transform: rotate(-90deg);
    }

        .loading-progress circle:last-child {
            stroke: var(--dw-cyan);
            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;
    color: var(--dw-text-soft);
}

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

.mud-typography-caption {
    font-size: var(--mud-typography-caption-size);
    font-family: var(--mud-typography-caption-family);
    font-weight: var(--mud-typography-caption-weight);
    line-height: var(--mud-typography-caption-lineheight);
    letter-spacing: var(--mud-typography-caption-letterspacing);
    text-transform: var(--mud-typography-caption-text-transform);
    align-self: normal;
    margin-top: -6px;
}

.app-language-popover .mud-list {
    min-width: 0 !important;
    padding: 4px !important;
}

.app-language-popover .mud-list-item {
    min-height: 0 !important;
    padding: 0 !important;
}

.app-language-popover .app-language-menu-item {
    min-width: 0 !important;
    padding: 4px !important;
    line-height: 1;
    justify-content: center;
}

.mud-navmenu.mud-navmenu-default .mud-nav-link.active:not(.mud-nav-link-disabled) {
    color: var(--mud-palette-white) !important;
    background-color: var(--mud-palette-action-default-hover) !important;
}

.mud-navmenu.mud-navmenu-default .mud-nav-link.active:not(.mud-nav-link-disabled) .mud-nav-link-text,
.mud-navmenu.mud-navmenu-default .mud-nav-link.active:not(.mud-nav-link-disabled) .mud-nav-link-icon,
.mud-navmenu.mud-navmenu-default .mud-nav-link.active:not(.mud-nav-link-disabled) .mud-icon-root {
    color: var(--mud-palette-white) !important;
}

@media (max-width: 640.98px) {
    html {
        font-size: 15px;
    }
}

@media (min-width: 600px) {
    .mud-container--gutters {
        padding: 24px;
    }
}

/* Global MudAlert severity styling: transparent background + colored border/text/icon */
.mud-alert.mud-alert-text-error,
.mud-alert.mud-alert-outlined-error,
.mud-alert.mud-alert-filled-error {
    background-color: transparent !important;
    border: 1px solid #c62828 !important;
    color: #c62828 !important;
    box-shadow: none !important;
}

.mud-alert.mud-alert-text-warning,
.mud-alert.mud-alert-outlined-warning,
.mud-alert.mud-alert-filled-warning {
    background-color: transparent !important;
    border: 1px solid #ef6c00 !important;
    color: #ef6c00 !important;
    box-shadow: none !important;
}

.mud-alert.mud-alert-text-info,
.mud-alert.mud-alert-outlined-info,
.mud-alert.mud-alert-filled-info {
    background-color: transparent !important;
    border: 1px solid #1565c0 !important;
    color: #1565c0 !important;
    box-shadow: none !important;
}

.mud-alert.mud-alert-text-success,
.mud-alert.mud-alert-outlined-success,
.mud-alert.mud-alert-filled-success {
    background-color: transparent !important;
    border: 1px solid #2e7d32 !important;
    color: #2e7d32 !important;
    box-shadow: none !important;
}

.mud-alert.mud-alert-text-error .mud-alert-message,
.mud-alert.mud-alert-outlined-error .mud-alert-message,
.mud-alert.mud-alert-filled-error .mud-alert-message,
.mud-alert.mud-alert-text-error .mud-alert-icon,
.mud-alert.mud-alert-outlined-error .mud-alert-icon,
.mud-alert.mud-alert-filled-error .mud-alert-icon,
.mud-alert.mud-alert-text-error .mud-alert-close .mud-icon-root,
.mud-alert.mud-alert-outlined-error .mud-alert-close .mud-icon-root,
.mud-alert.mud-alert-filled-error .mud-alert-close .mud-icon-root {
    color: #c62828 !important;
}

.mud-alert.mud-alert-text-warning .mud-alert-message,
.mud-alert.mud-alert-outlined-warning .mud-alert-message,
.mud-alert.mud-alert-filled-warning .mud-alert-message,
.mud-alert.mud-alert-text-warning .mud-alert-icon,
.mud-alert.mud-alert-outlined-warning .mud-alert-icon,
.mud-alert.mud-alert-filled-warning .mud-alert-icon,
.mud-alert.mud-alert-text-warning .mud-alert-close .mud-icon-root,
.mud-alert.mud-alert-outlined-warning .mud-alert-close .mud-icon-root,
.mud-alert.mud-alert-filled-warning .mud-alert-close .mud-icon-root {
    color: #ef6c00 !important;
}

.aliases-search-row {
    align-items: center;
}

.aliases-search-row .mud-input-control {
    margin-top: 0;
    margin-bottom: 0;
}

.aliases-search-row .aliases-search-button.mud-button-root {
    height: 40px;
    min-height: 40px;
    margin: 0;
    align-self: center;
}

.mud-alert.mud-alert-text-info .mud-alert-message,
.mud-alert.mud-alert-outlined-info .mud-alert-message,
.mud-alert.mud-alert-filled-info .mud-alert-message,
.mud-alert.mud-alert-text-info .mud-alert-icon,
.mud-alert.mud-alert-outlined-info .mud-alert-icon,
.mud-alert.mud-alert-filled-info .mud-alert-icon,
.mud-alert.mud-alert-text-info .mud-alert-close .mud-icon-root,
.mud-alert.mud-alert-outlined-info .mud-alert-close .mud-icon-root,
.mud-alert.mud-alert-filled-info .mud-alert-close .mud-icon-root {
    color: #1565c0 !important;
}

.mud-alert.mud-alert-text-success .mud-alert-message,
.mud-alert.mud-alert-outlined-success .mud-alert-message,
.mud-alert.mud-alert-filled-success .mud-alert-message,
.mud-alert.mud-alert-text-success .mud-alert-icon,
.mud-alert.mud-alert-outlined-success .mud-alert-icon,
.mud-alert.mud-alert-filled-success .mud-alert-icon,
.mud-alert.mud-alert-text-success .mud-alert-close .mud-icon-root,
.mud-alert.mud-alert-outlined-success .mud-alert-close .mud-icon-root,
.mud-alert.mud-alert-filled-success .mud-alert-close .mud-icon-root {
    color: #2e7d32 !important;
}


/* Legal document (privacy policy / terms) markdown output */
.legal-document {
    max-width: 800px;
    margin: 0 auto;
    padding: 16px 8px 48px;
    color: var(--dw-text);
    line-height: 1.7;
}

.legal-document h1 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--dw-bg-1);
    margin-bottom: 0.25rem;
}

.legal-document h2 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dw-bg-2);
    margin-top: 2rem;
    margin-bottom: 0.4rem;
    border-bottom: 1px solid #d8e8f3;
    padding-bottom: 0.2rem;
}

.legal-document p {
    margin-bottom: 0.75rem;
}

.legal-document ul, .legal-document ol {
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
}

.legal-document li {
    margin-bottom: 0.25rem;
}

.legal-document table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1rem;
    font-size: 0.92rem;
}

.legal-document th {
    background: #e8f1f8;
    color: var(--dw-bg-1);
    font-weight: 600;
    text-align: left;
    padding: 6px 10px;
    border: 1px solid #c8daea;
}

.legal-document td {
    padding: 6px 10px;
    border: 1px solid #d8e8f3;
    vertical-align: top;
}

.legal-document hr {
    border: none;
    border-top: 1px solid #d8e8f3;
    margin: 1.5rem 0;
}

.legal-document strong {
    color: var(--dw-text);
}

@media (max-width: 640.98px) {
    .legal-document {
        padding: 12px 4px 32px;
    }
}

/* Remove hover/focus circle on all checkboxes */
.mud-checkbox .mud-icon-button:hover,
.mud-checkbox .mud-icon-button:focus,
.mud-checkbox .mud-icon-button:focus-within,
.mud-checkbox .mud-icon-button:focus-visible,
.mud-checkbox .mud-icon-button:active {
    background-color: transparent !important;
}
