:root {
    --primaryColor: #001529;
    --secondaryColor: #1890ff;
    --statusHeaderHeight: 64px;
    --darkColor: #001018;
    --midDarkColor: #002b53;
    --grayColor: #4b5970;
    --midGrayColor: #dbe5f1;
    --lightColor: #f3f7fd;
    --dangerColor: #ff4d4f;
    --warningColor: #faad14;
    --successColor: #52c41a;
    --ffBase: "Open Sans", "Segoe UI", sans-serif;
    --bgMain: linear-gradient(180deg, #f7fbff 0%, #eef4fb 100%);
    --bgSecondary: #ffffff;
    --fcNegative: #f3f7fd;
    --fcBase: #1f2a37;
    --fcAction: #1890ff;
    --bgAside: #001529;
    --bgMenuActive: rgba(24, 144, 255, 0.16);
    --bcMenuActive: #1890ff;
    --bcInput: #c5d4e6;
    --bcInputHover: #1890ff;
    --bgInputHover: #ffffff;
    --fcInputHover: #001529;
    --bcTable: #e4ecf5;
    --bgTable: #ffffff;
    --bgTableSecondary: #f3f7fd;
    --bgTableButton: #ffffff;
    --bgButton: linear-gradient(135deg, #006cd3 0%, #1890ff 100%);
    --bgImageDarken: linear-gradient(rgba(0, 21, 41, 0.08), rgba(0, 21, 41, 0.08));
    --bgImageLigthen: linear-gradient(rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.88));
    --bgBulletTimeline: #1890ff;
    --bgLineTimeline: #dbe5f1;
    --bcEventTimeline: #dbe5f1;
    --logoImageUrl: url('/images/brand/logo-default-monochrome-white-left.svg');
}

html,
body {
    background: #eef4fb;
    color: var(--fcBase);
}

body {
    background-image: radial-gradient(circle at top, #eaf3ff 0%, #f7fbff 38%, #eef4fb 100%);
}

main {
    background: transparent;
}

.hc-section-router {
    padding: 0 2rem 2rem;
    gap: 0;
}

.hc-aside {
    display: none;
}

.hc-aside.is-open {
    display: none;
}

.hc-aside__logo {
    display: none;
}

.hc-aside.is-open .hc-aside__logo {
    display: none;
}

.hc-aside__open-btn {
    display: none;
}

.hc-aside-menu {
    margin-top: 0;
    gap: 0.25rem;
}

.hc-aside-menu__item {
    width: calc(100% - 0.5rem);
    margin: 0.125rem 0.5rem 0.125rem 0;
    padding: 0.85rem 0.9rem;
    border-left-width: 3px;
    border-radius: 0 1rem 1rem 0;
    font-weight: 600;
}

.hc-aside-menu__item img {
    filter: brightness(0) invert(1);
    opacity: 0.92;
}

.hc-aside-menu__item:hover,
.hc-aside-menu__item.hc-aside-menu__item--active {
    box-shadow: inset 0 0 0 1px rgba(24, 144, 255, 0.2);
}

.hc-liveness__header {
    position: relative;
    overflow: hidden;
    top: 0;
    z-index: 20;
    height: var(--statusHeaderHeight);
    box-sizing: border-box;
    justify-content: space-between;
    align-items: center;
    gap: 1rem 1.5rem;
    flex-wrap: nowrap;
    margin: 0 -2rem 1.5rem;
    padding: 1rem 2rem;
    border-radius: 0;
    background: #001529;
    color: #f3f7fd;
    box-shadow: 0 20px 45px rgba(0, 21, 41, 0.2);
}

.hc-liveness__header h1 {
    flex: 0 0 auto;
    width: 128px;
    height: 32px;
    margin: 0;
    background-image: url("/images/brand/logo-default-monochrome-white-left.svg");
    background-repeat: no-repeat;
    background-position: left center;
    background-size: 128px 32px;
    text-indent: -9999px;
    white-space: nowrap;
    overflow: hidden;
}

.hc-liveness__header h1,
.hc-liveness__header h2,
.hc-liveness__header h3,
.hc-liveness__header h4,
.hc-liveness__header span,
.hc-liveness__header label,
.hc-liveness__header p {
    color: #f3f7fd;
}

.hc-refesh-group {
    margin-left: auto;
    min-height: 2.5rem;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
}

.hc-refesh-group input {
    height: 2.5rem;
    margin: 0 0.5rem;
    padding: 0.75rem 0.9rem;
    border-radius: 0.85rem;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.92);
}

.hc-refesh-group input:hover,
.hc-refesh-group input:focus {
    border: 1px solid var(--bcInputHover);
    background: #ffffff;
    color: var(--fcInputHover);
}

.hc-button {
    min-width: 4rem;
    min-height: 2.5rem;
    padding: 0.55rem 1rem;
    border-radius: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    box-shadow: 0 12px 24px rgba(0, 108, 211, 0.2);
}

.hc-table {
    border-collapse: separate;
    border-spacing: 0 0.75rem;
}

.hc-table__head {
    color: #6b7a90;
}

.hc-table__head tr {
    height: auto;
}

.hc-table__head th {
    font-size: 0.72rem;
    letter-spacing: 0.08em;
}

.hc-table__row {
    background: transparent;
    border-bottom: 0;
}

.hc-table__row td {
    padding: 1rem 0.9rem;
    background: #ffffff;
    border-top: 1px solid var(--bcTable);
    border-bottom: 1px solid var(--bcTable);
}

.hc-table__row td:first-child {
    border-left: 1px solid var(--bcTable);
    border-radius: 1rem 0 0 1rem;
}

.hc-table__row td:last-child {
    border-right: 1px solid var(--bcTable);
    border-radius: 0 1rem 1rem 0;
}

.hc-table__row:hover td {
    background: #f7fbff;
    border-color: #cfe4ff;
}

.hc-checks-table {
    border-collapse: separate;
    border-spacing: 0;
    overflow: hidden;
    border-radius: 1rem;
}

.hc-checks-table__header th {
    background-color: var(--bgTableSecondary);
    color: #4b5970;
    font-size: 0.72rem;
    letter-spacing: 0.08em;
}

.hc-checks-table__body td {
    padding: 0.85rem;
}

.hc-checks-table__body td,
.hc-checks-table__header th {
    border-color: var(--bcTable);
}

.hc-checks-table-container > td {
    padding-top: 0.25rem;
}

.hc-status {
    gap: 0.5rem;
    font-weight: 700;
}

.hc-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 999px;
    background: #f3f7fd;
    transition: all 0.2s ease-in-out;
}

.hc-action-btn:hover {
    color: #1890ff;
    background: #e6f4ff;
}

.hc-liveness-panel {
    padding: 1.5rem;
    border-left: 1px solid #e4ecf5;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: -18px 0 40px rgba(0, 21, 41, 0.12);
    backdrop-filter: blur(18px);
}

.hc-timeline.vertical-timeline .vertical-timeline-element-content {
    border-radius: 1rem;
    box-shadow: 0 10px 24px rgba(0, 21, 41, 0.08);
}

.alert-panel {
    margin: 1.25rem 0;
    padding: 1rem;
    color: #000000 !important;
    background-color: #fff1f0 !important;
    border: 1px solid rgba(255, 77, 79, 0.18);
    border-radius: 1rem;
    display: flex;
    align-items: center;
}

.tag {
    display: inline-block;
    min-width: 4px;
    padding: 0.2rem 0.5rem;
    margin-right: 0.2rem;
    margin-left: 0.2rem;
    border: 0;
    border-radius: 999px;
    background-color: #e6f4ff;
    color: #0056a8;
    font-size: 0.68rem;
    font-weight: 700;
    max-width: none;
}

.hc-theme-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 2.5rem;
    height: 2.5rem;
    margin-left: 0.75rem;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: #f3f7fd;
    box-shadow: none;
    cursor: pointer;
    transition: color 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
}

.hc-theme-toggle:hover,
.hc-theme-toggle:focus,
.hc-theme-toggle:focus-visible {
    color: #f3f7fd;
    opacity: 0.82;
    outline: none;
    transform: translateY(-1px);
}

.hc-theme-toggle__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    line-height: 1;
}

.hc-visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

:root[data-theme="dark"] {
    --primaryColor: #101827;
    --secondaryColor: #4a86e8;
    --darkColor: #0d1420;
    --midDarkColor: #243142;
    --grayColor: #b2bfd1;
    --midGrayColor: #42556c;
    --lightColor: #edf2f8;
    --bgMain: linear-gradient(180deg, #101827 0%, #141c28 100%);
    --bgSecondary: #243142;
    --fcNegative: #edf2f8;
    --fcBase: #edf2f8;
    --fcAction: #78a7ff;
    --bgAside: #101827;
    --bgMenuActive: rgba(120, 167, 255, 0.14);
    --bcMenuActive: #4a86e8;
    --bcInput: #42556c;
    --bcInputHover: #4a86e8;
    --bgInputHover: #20324c;
    --fcInputHover: #edf2f8;
    --bcTable: #42556c;
    --bgTable: #243142;
    --bgTableSecondary: #20324c;
    --bgTableButton: #314257;
    --bgButton: linear-gradient(135deg, #2f70d8 0%, #4a86e8 100%);
    --bgImageDarken: linear-gradient(rgba(16, 24, 39, 0.24), rgba(16, 24, 39, 0.24));
    --bgImageLigthen: linear-gradient(rgba(20, 28, 40, 0.82), rgba(20, 28, 40, 0.82));
    --bgBulletTimeline: #4a86e8;
    --bgLineTimeline: #42556c;
    --bcEventTimeline: #42556c;
}

:root[data-theme="dark"] html,
:root[data-theme="dark"] body {
    background: #141c28;
    color: var(--fcBase);
}

:root[data-theme="dark"] body {
    background-image: radial-gradient(circle at top, #162132 0%, #141c28 38%, #101827 100%);
}

:root[data-theme="dark"] .hc-liveness__header {
    background: #101827;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.28);
}

:root[data-theme="dark"] .hc-refesh-group {
    background: rgba(255, 255, 255, 0.12);
    box-shadow: inset 0 0 0 1px rgba(120, 167, 255, 0.14);
}

:root[data-theme="dark"] .hc-refesh-group,
:root[data-theme="dark"] .hc-refesh-group label,
:root[data-theme="dark"] .hc-refesh-group span,
:root[data-theme="dark"] .hc-refesh-group p {
    color: #edf2f8;
}

:root[data-theme="dark"] .hc-refesh-group input {
    border-color: rgba(255, 255, 255, 0.24);
    background: rgba(255, 255, 255, 0.96);
    color: #1f2a37;
}

:root[data-theme="dark"] .hc-refesh-group input:hover,
:root[data-theme="dark"] .hc-refesh-group input:focus {
    border-color: var(--bcInputHover);
    background: #ffffff;
    color: #1f2a37;
}

:root[data-theme="dark"] .hc-refesh-group .hc-button {
    background: linear-gradient(135deg, #2f70d8 0%, #4a86e8 100%);
    color: #edf2f8;
    box-shadow: 0 12px 24px rgba(10, 18, 31, 0.28);
}

:root[data-theme="dark"] .hc-refesh-group .hc-button:hover,
:root[data-theme="dark"] .hc-refesh-group .hc-button:focus {
    background: linear-gradient(135deg, #4a86e8 0%, #78a7ff 100%);
    color: #ffffff;
}

:root[data-theme="dark"] .hc-table__head,
:root[data-theme="dark"] .hc-checks-table__header th {
    color: #b2bfd1;
}

:root[data-theme="dark"] .hc-table__row td,
:root[data-theme="dark"] .hc-checks-table__body td {
    background: var(--bgTable);
    border-color: var(--bcTable);
    color: var(--fcBase);
}

:root[data-theme="dark"] .hc-table__row:hover td {
    background: #2a374a;
    border-color: #556a85;
}

:root[data-theme="dark"] .hc-action-btn {
    background: var(--bgTableButton);
    color: var(--fcBase);
}

:root[data-theme="dark"] .hc-action-btn:hover {
    color: #9bc0ff;
    background: #3b4d64;
}

:root[data-theme="dark"] .hc-liveness-panel {
    border-left-color: var(--bcTable);
    background: rgba(36, 49, 66, 0.98);
    box-shadow: -18px 0 40px rgba(0, 0, 0, 0.28);
}

:root[data-theme="dark"] .hc-timeline.vertical-timeline .vertical-timeline-element-content {
    background: var(--bgTable);
    color: var(--fcBase);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
}

:root[data-theme="dark"] .hc-timeline.vertical-timeline .vertical-timeline-element-content-arrow {
    border-right-color: var(--bgTable);
}

:root[data-theme="dark"] .alert-panel {
    color: var(--fcBase) !important;
    background-color: rgba(120, 30, 36, 0.55) !important;
    border-color: rgba(255, 77, 79, 0.35);
}

:root[data-theme="dark"] .tag {
    background-color: rgba(74, 134, 232, 0.16);
    color: #9bc0ff;
}

:root[data-theme="dark"] .hc-theme-toggle {
    color: var(--fcBase);
}

:root[data-theme="dark"] .hc-theme-toggle:hover,
:root[data-theme="dark"] .hc-theme-toggle:focus,
:root[data-theme="dark"] .hc-theme-toggle:focus-visible {
    color: #9bc0ff;
}

@media only screen and (max-width: 959px) {
    .hc-section-router {
        padding: 0 1rem 1rem;
    }

    .hc-aside {
        display: none;
    }

    .hc-liveness__header {
        flex-wrap: wrap;
        height: auto;
        min-height: var(--statusHeaderHeight);
        margin: 0 -1rem 1rem;
        padding: 1rem;
    }

    .hc-liveness__header h1 {
        width: 128px;
        height: 32px;
    }

    .hc-refesh-group {
        width: 100%;
        margin-left: 0;
        justify-content: space-between;
    }

    .hc-liveness-panel {
        width: min(100vw, 30rem);
    }

    .hc-table__row td {
        padding: 0.8rem 0.7rem;
    }

    .hc-theme-toggle {
        margin-left: 0;
    }
}

@media only screen and (max-width: 1024px) {
    html,
    body {
        overflow-x: hidden;
    }

    .hc-refesh-group {
        display: flex;
        align-items: center;
        flex-wrap: wrap;
        gap: 0.75rem;
    }

    .hc-refesh-group span {
        display: flex;
        align-items: center;
        flex-wrap: wrap;
        gap: 0.35rem;
        line-height: 1.45;
    }

    .hc-refesh-group input {
        width: 5rem;
        min-width: 0;
        margin: 0;
    }

    .hc-button {
        white-space: nowrap;
    }

    .hc-table,
    .hc-checks-table {
        display: block;
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .hc-table__head th,
    .hc-table__row td,
    .hc-checks-table__header th,
    .hc-checks-table__body td {
        white-space: nowrap;
    }
}

@media only screen and (max-width: 640px) {
    .hc-section-router {
        padding: 0 0.75rem 0.75rem;
    }

    .hc-liveness__header {
        gap: 0.75rem;
        margin: 0 -0.75rem 0.75rem;
        padding: 0.875rem 0.75rem 1rem;
    }

    .hc-liveness__header h1 {
        width: 112px;
        height: 28px;
        background-size: 112px 28px;
    }

    .hc-refesh-group {
        gap: 0.65rem;
        padding: 0.75rem;
        border-radius: 0.85rem;
    }

    .hc-refesh-group span {
        width: 100%;
        font-size: 0.92rem;
    }

    .hc-refesh-group input,
    .hc-refesh-group .hc-button {
        flex: 1 1 100%;
        width: 100%;
    }

    .hc-table {
        border-spacing: 0 0.5rem;
    }

    .hc-table__head th,
    .hc-checks-table__header th {
        font-size: 0.68rem;
    }

    .hc-table__row td,
    .hc-checks-table__body td {
        padding: 0.7rem 0.65rem;
    }

    .hc-action-btn {
        width: 2rem;
        height: 2rem;
    }

    .hc-liveness-panel {
        width: 100vw;
        max-width: 100vw;
        padding: 1rem;
    }

    .tag {
        margin: 0.15rem 0.15rem 0 0;
    }
}

/* ICONS FIX */
/* https://github.com/Xabaril/AspNetCore.Diagnostics.HealthChecks/issues/2130 */
/* https://stackoverflow.com/questions/77696948/healtcheckui-in-net-issues-with-icons/78185081#78185081 */
@font-face {
    font-family: "Material Icons";
    font-style: normal;
    font-weight: 400;
    src: url(https://fonts.gstatic.com/s/materialicons/v141/flUhRq6tzZclQEJ-Vdg-IuiaDsNcIhQ8tQ.woff2) format("woff2");
}

.material-icons {
    font-family: "Material Icons";
    font-weight: normal;
    font-style: normal;
    font-size: 24px;
    line-height: 1;
    letter-spacing: normal;
    text-transform: none;
    display: inline-block;
    white-space: nowrap;
    word-wrap: normal;
    direction: ltr;
    -webkit-font-feature-settings: "liga";
    -webkit-font-smoothing: antialiased;
}
