:root {
    --bg: #f3f6fb;
    --surface: #ffffff;
    --surface-soft: #f7f9fc;
    --surface-dark: #0c1830;

    --text: #162033;
    --text-soft: #66738a;
    --text-light: #f7fbff;

    --border: #e2e8f2;

    --primary: #175cd3;
    --primary-dark: #1247a6;
    --primary-soft: #eaf2ff;

    --cyan: #15a9c9;
    --cyan-soft: #e5f8fb;

    --success: #17874b;
    --success-soft: #e8f8ef;

    --warning: #b86b00;
    --warning-soft: #fff4df;

    --danger: #c53636;
    --danger-soft: #ffebeb;

    --neutral: #667085;
    --neutral-soft: #edf1f5;

    --shadow:
        0 12px 32px rgba(24, 43, 78, 0.08);

    --shadow-soft:
        0 4px 16px rgba(24, 43, 78, 0.06);

    --radius-xl: 22px;
    --radius-lg: 16px;
    --radius-md: 12px;
    --radius-sm: 8px;
}


* {
    box-sizing: border-box;
}


html {
    min-height: 100%;
}


body {
    margin: 0;

    min-height: 100vh;

    font-family:
        Verdana,
        Geneva,
        Tahoma,
        sans-serif;

    background:
        radial-gradient(
            circle at top right,
            rgba(23, 92, 211, 0.08),
            transparent 28rem
        ),
        var(--bg);

    color: var(--text);
}


a {
    color: inherit;
}


button,
input,
select,
textarea {
    font-family: inherit;
}


.app-shell {
    min-height: 100vh;
}


.topbar {
    position: sticky;
    top: 0;
    z-index: 100;

    min-height: 76px;

    display: flex;
    align-items: center;
    gap: 28px;

    padding:
        0
        clamp(18px, 4vw, 64px);

    background:
        rgba(12, 24, 48, 0.97);

    color: var(--text-light);

    box-shadow:
        0 8px 24px
        rgba(8, 18, 38, 0.18);

    backdrop-filter:
        blur(12px);
}


.brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;

    min-width: max-content;

    color: white;

    text-decoration: none;
}


.brand-mark {
    width: 43px;
    height: 43px;

    display: grid;
    place-items: center;

    color: #5ed7ec;

    border:
        1px solid
        rgba(94, 215, 236, 0.25);

    border-radius: 13px;

    background:
        rgba(94, 215, 236, 0.09);
}


.brand-mark svg {
    width: 32px;
    height: 32px;
}


.brand-copy {
    display: flex;
    flex-direction: column;

    line-height: 1.05;
}


.brand-copy strong {
    font-size: 19px;

    letter-spacing: 0.14em;
}


.brand-copy small {
    margin-top: 5px;

    font-size: 10px;

    letter-spacing: 0.16em;

    text-transform: uppercase;

    color: #a9bad8;
}


.top-nav {
    display: flex;
    align-items: center;

    flex: 1;
}


.nav-link {
    display: inline-flex;
    align-items: center;

    height: 40px;

    padding: 0 15px;

    border-radius: 10px;

    text-decoration: none;

    font-size: 13px;

    color: #b9c7dd;
}


.nav-link:hover,
.nav-link.active {
    color: white;

    background:
        rgba(255, 255, 255, 0.08);
}


.live-indicator {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    padding: 9px 12px;

    border:
        1px solid
        rgba(255, 255, 255, 0.12);

    border-radius: 999px;

    font-size: 11px;

    color: #ced9ea;

    white-space: nowrap;
}


.live-dot {
    width: 8px;
    height: 8px;

    border-radius: 50%;

    background: #46df8b;

    box-shadow:
        0 0 0 5px
        rgba(70, 223, 139, 0.10);

    animation:
        pulse-dot
        2s
        infinite;
}


@keyframes pulse-dot {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.45;
    }
}


.page-content {
    width:
        min(
            1480px,
            calc(100% - 40px)
        );

    margin: 0 auto;

    padding:
        34px 0
        60px;
}


.hero {
    position: relative;

    min-height: 285px;

    display: grid;

    grid-template-columns:
        minmax(0, 1.1fr)
        minmax(320px, 0.9fr);

    align-items: center;

    gap: 30px;

    overflow: hidden;

    padding:
        clamp(30px, 5vw, 58px);

    margin-bottom: 26px;

    color: white;

    border-radius: var(--radius-xl);

    background:
        linear-gradient(
            125deg,
            #0c1830 0%,
            #123a78 58%,
            #116881 100%
        );

    box-shadow: var(--shadow);
}


.hero::before {
    content: "";

    position: absolute;

    width: 320px;
    height: 320px;

    top: -130px;
    right: -90px;

    border-radius: 50%;

    border:
        1px solid
        rgba(255, 255, 255, 0.12);
}


.hero::after {
    content: "";

    position: absolute;

    width: 210px;
    height: 210px;

    right: 135px;
    bottom: -150px;

    border-radius: 50%;

    background:
        rgba(66, 207, 230, 0.11);
}


.hero-copy {
    position: relative;
    z-index: 2;

    max-width: 720px;
}


.eyebrow,
.section-kicker {
    display: block;

    margin-bottom: 10px;

    color: #33bad6;

    font-size: 11px;

    font-weight: 700;

    letter-spacing: 0.12em;

    text-transform: uppercase;
}


.hero .eyebrow {
    color: #74e5f4;
}


.hero h1 {
    margin:
        0 0
        18px;

    max-width: 790px;

    font-size:
        clamp(
            31px,
            4.5vw,
            56px
        );

    line-height: 1.08;

    letter-spacing: -0.045em;
}


.hero p {
    max-width: 700px;

    margin: 0;

    color: #c8d5e8;

    font-size:
        clamp(
            14px,
            1.6vw,
            17px
        );

    line-height: 1.7;
}


.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;

    margin-top: 24px;
}


.hero-chip {
    display: inline-flex;
    align-items: center;

    padding:
        8px 11px;

    border:
        1px solid
        rgba(255, 255, 255, 0.14);

    border-radius: 999px;

    background:
        rgba(255, 255, 255, 0.06);

    color: #dce7f6;

    font-size: 10px;
}


.hero-visual {
    position: relative;
    z-index: 2;

    display: flex;
    justify-content: flex-end;

    color: #68ddf0;

    opacity: 0.94;
}


.hero-visual svg {
    width: 100%;
    max-width: 520px;

    filter:
        drop-shadow(
            0 20px 30px
            rgba(0, 0, 0, 0.16)
        );
}


.metrics-grid {
    display: grid;

    grid-template-columns:
        repeat(
            4,
            minmax(0, 1fr)
        );

    gap: 18px;

    margin-bottom: 26px;
}


.metric-card {
    min-height: 124px;

    display: flex;
    align-items: center;
    gap: 16px;

    padding: 21px;

    border:
        1px solid
        var(--border);

    border-radius: var(--radius-lg);

    background:
        rgba(255, 255, 255, 0.96);

    box-shadow: var(--shadow-soft);
}


.metric-icon {
    width: 46px;
    height: 46px;

    display: grid;
    place-items: center;

    flex: 0 0 auto;

    border-radius: 13px;

    background: var(--primary-soft);

    color: var(--primary);

    font-size: 11px;
    font-weight: 700;
}


.metric-icon-success {
    background: var(--success-soft);

    color: var(--success);
}


.metric-icon-alert {
    background: var(--danger-soft);

    color: var(--danger);

    font-size: 19px;
}


.metric-label {
    display: block;

    margin-bottom: 7px;

    color: var(--text-soft);

    font-size: 11px;
}


.metric-value {
    display: block;

    font-size: 30px;

    line-height: 1;

    letter-spacing: -0.04em;
}


.panel {
    margin-bottom: 26px;

    border:
        1px solid
        var(--border);

    border-radius: var(--radius-lg);

    background:
        var(--surface);

    box-shadow: var(--shadow-soft);

    overflow: hidden;
}


.panel-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 25px;

    padding:
        25px 27px;

    border-bottom:
        1px solid
        var(--border);
}


.panel-header h2 {
    margin:
        0 0
        7px;

    font-size: 20px;

    letter-spacing: -0.025em;
}


.panel-header p {
    margin: 0;

    color: var(--text-soft);

    font-size: 11px;

    line-height: 1.6;
}


.panel-actions {
    display: flex;
    align-items: center;
    gap: 14px;
}


.last-refreshed {
    color: var(--text-soft);

    font-size: 10px;

    white-space: nowrap;
}


.button {
    min-height: 38px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding:
        0 15px;

    border: 0;

    border-radius: 9px;

    cursor: pointer;

    font-size: 11px;
    font-weight: 700;

    text-decoration: none;

    transition:
        transform 0.15s ease,
        box-shadow 0.15s ease,
        background 0.15s ease;
}


.button:hover {
    transform:
        translateY(-1px);
}


.button-primary {
    background: var(--primary);

    color: white;

    box-shadow:
        0 7px 16px
        rgba(23, 92, 211, 0.20);
}


.button-primary:hover {
    background: var(--primary-dark);
}


.button-secondary {
    background: var(--primary-soft);

    color: var(--primary);
}


.table-wrap {
    width: 100%;

    overflow-x: auto;
}


table {
    width: 100%;

    min-width: 780px;

    border-collapse: collapse;
}


th,
td {
    padding:
        15px 27px;

    text-align: left;

    border-bottom:
        1px solid
        var(--border);

    vertical-align: middle;
}


th {
    background:
        var(--surface-soft);

    color: var(--text-soft);

    font-size: 9px;

    letter-spacing: 0.08em;

    text-transform: uppercase;
}


td {
    font-size: 11px;
}


tbody tr {
    transition:
        background 0.15s ease;
}


tbody tr:hover {
    background: #f9fbfe;
}


tbody tr:last-child td {
    border-bottom: 0;
}


.website-cell {
    display: flex;
    align-items: center;
    gap: 12px;
}


.website-avatar {
    width: 38px;
    height: 38px;

    display: grid;
    place-items: center;

    flex: 0 0 auto;

    border-radius: 11px;

    background:
        linear-gradient(
            135deg,
            var(--primary-soft),
            var(--cyan-soft)
        );

    color: var(--primary);

    font-size: 12px;
    font-weight: 700;
}


.website-name {
    display: block;

    margin-bottom: 4px;

    font-weight: 700;
}


.website-key {
    display: block;

    color: var(--text-soft);

    font-size: 9px;
}


.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;

    padding:
        7px 10px;

    border-radius: 999px;

    font-size: 9px;
    font-weight: 700;

    text-transform: capitalize;

    white-space: nowrap;
}


.status-pill::before {
    content: "";

    width: 7px;
    height: 7px;

    border-radius: 50%;

    background: currentColor;
}


.status-healthy,
.status-resolved {
    color: var(--success);

    background: var(--success-soft);
}


.status-changed,
.status-warning,
.status-acknowledged {
    color: var(--warning);

    background: var(--warning-soft);
}


.status-unhealthy,
.status-open,
.status-critical,
.status-high {
    color: var(--danger);

    background: var(--danger-soft);
}


.status-runtime_error,
.status-config_error,
.status-disabled,
.status-paused,
.status-info {
    color: var(--neutral);

    background: var(--neutral-soft);
}


.status-unknown {
    color: var(--neutral);

    background: var(--neutral-soft);
}


.severity-pill {
    display: inline-flex;

    padding:
        6px 9px;

    border-radius: 999px;

    font-size: 9px;
    font-weight: 700;

    text-transform: capitalize;
}


.severity-high,
.severity-critical {
    color: var(--danger);

    background: var(--danger-soft);
}


.severity-warning {
    color: var(--warning);

    background: var(--warning-soft);
}


.severity-info {
    color: var(--primary);

    background: var(--primary-soft);
}


.date-primary {
    display: block;

    margin-bottom: 3px;
}


.date-secondary {
    color: var(--text-soft);

    font-size: 9px;
}


.table-loading,
.empty-state {
    padding: 34px;

    color: var(--text-soft);

    text-align: center;
}


.site-footer {
    display: flex;
    justify-content: space-between;
    gap: 20px;

    padding:
        28px
        clamp(20px, 4vw, 64px);

    border-top:
        1px solid
        var(--border);

    background: #eef3f9;

    color: var(--text-soft);

    font-size: 9px;
}


.toast {
    position: fixed;

    right: 24px;
    bottom: 24px;

    z-index: 200;

    max-width: 360px;

    padding:
        13px 16px;

    border-radius: 11px;

    background: var(--surface-dark);

    color: white;

    font-size: 10px;

    box-shadow: var(--shadow);

    opacity: 0;

    transform:
        translateY(10px);

    pointer-events: none;

    transition:
        opacity 0.2s ease,
        transform 0.2s ease;
}


.toast.visible {
    opacity: 1;

    transform:
        translateY(0);
}


/* Website detail page */

.detail-back {
    display: inline-flex;
    align-items: center;
    gap: 7px;

    margin-bottom: 18px;

    color: var(--primary);

    font-size: 11px;
    font-weight: 700;

    text-decoration: none;
}


.detail-hero {
    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        auto;

    gap: 28px;

    align-items: center;

    margin-bottom: 24px;

    padding:
        clamp(28px, 5vw, 46px);

    border-radius: var(--radius-xl);

    color: white;

    background:
        linear-gradient(
            125deg,
            #0c1830 0%,
            #184c91 65%,
            #1486a2 100%
        );

    box-shadow: var(--shadow);
}


.detail-hero h1 {
    margin:
        4px 0
        12px;

    font-size:
        clamp(
            28px,
            4vw,
            43px
        );

    letter-spacing: -0.04em;
}


.detail-url {
    color: #d1dced;

    font-size: 11px;

    word-break: break-all;
}


.detail-status-block {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
}


.detail-status-label {
    color: #b9c9df;

    font-size: 9px;

    text-transform: uppercase;

    letter-spacing: 0.1em;
}


.detail-status {
    padding:
        11px 15px;

    border-radius: 999px;

    font-size: 11px;

    font-weight: 700;

    text-transform: capitalize;
}


.monitoring-grid {
    display: grid;

    grid-template-columns:
        repeat(
            2,
            minmax(0, 1fr)
        );

    gap: 18px;

    padding: 24px;
}


.monitor-card {
    padding: 22px;

    border:
        1px solid
        var(--border);

    border-radius: var(--radius-md);

    background:
        var(--surface-soft);
}


.monitor-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;

    margin-bottom: 20px;
}


.monitor-card h3 {
    margin: 0;

    font-size: 14px;
}


.monitor-meta {
    display: grid;

    grid-template-columns:
        1fr
        1fr;

    gap: 12px;
}


.monitor-meta-item {
    padding: 13px;

    border-radius: 9px;

    background: white;
}


.monitor-meta-item span {
    display: block;

    margin-bottom: 5px;

    color: var(--text-soft);

    font-size: 8px;

    text-transform: uppercase;

    letter-spacing: 0.08em;
}


.monitor-meta-item strong {
    font-size: 10px;
}


.detail-summary-grid {
    display: grid;

    grid-template-columns:
        repeat(
            3,
            minmax(0, 1fr)
        );

    gap: 18px;

    margin-bottom: 24px;
}


.summary-card {
    padding: 22px;

    border:
        1px solid
        var(--border);

    border-radius: var(--radius-lg);

    background: white;

    box-shadow: var(--shadow-soft);
}


.summary-card span {
    display: block;

    margin-bottom: 9px;

    color: var(--text-soft);

    font-size: 9px;

    text-transform: uppercase;

    letter-spacing: 0.08em;
}


.summary-card strong {
    font-size: 25px;
}


/* Tablet */

@media (
    max-width: 1050px
) {

    .hero {
        grid-template-columns: 1fr;
    }


    .hero-visual {
        display: none;
    }


    .metrics-grid {
        grid-template-columns:
            repeat(
                2,
                minmax(0, 1fr)
            );
    }

}


/* Mobile */

@media (
    max-width: 720px
) {

    .topbar {
        min-height: 66px;

        gap: 12px;

        padding:
            0 16px;
    }


    .brand-copy small,
    .top-nav,
    .live-indicator {
        display: none;
    }


    .brand-mark {
        width: 38px;
        height: 38px;
    }


    .brand-copy strong {
        font-size: 16px;
    }


    .page-content {
        width:
            min(
                100% - 24px,
                1480px
            );

        padding:
            18px 0
            40px;
    }


    .hero {
        min-height: auto;

        padding: 27px 22px;

        border-radius: 17px;
    }


    .hero h1 {
        font-size: 31px;
    }


    .hero-meta {
        display: none;
    }


    .metrics-grid {
        grid-template-columns: 1fr 1fr;

        gap: 11px;
    }


    .metric-card {
        min-height: 106px;

        padding: 15px;

        gap: 11px;
    }


    .metric-icon {
        width: 38px;
        height: 38px;
    }


    .metric-value {
        font-size: 24px;
    }


    .panel {
        border-radius: 13px;
    }


    .panel-header {
        flex-direction: column;

        padding: 20px 18px;
    }


    .panel-actions {
        width: 100%;

        justify-content: space-between;
    }


    th,
    td {
        padding:
            13px 16px;
    }


    .site-footer {
        flex-direction: column;

        align-items: center;

        text-align: center;
    }


    .detail-hero {
        grid-template-columns: 1fr;

        padding: 25px 21px;
    }


    .detail-status-block {
        align-items: flex-start;
    }


    .detail-summary-grid {
        grid-template-columns: 1fr;
    }


    .monitoring-grid {
        grid-template-columns: 1fr;

        padding: 17px;
    }

}


@media (
    max-width: 440px
) {

    .metrics-grid {
        grid-template-columns: 1fr;
    }


    .metric-card {
        min-height: 90px;
    }

}
