/* Base styles */

:root {
    color-scheme: light;
    font-family: "Segoe UI", Arial, sans-serif;
    color: #192b3e;
    background: #f4f6fa;
    line-height: 1.5;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
}

a {
    color: #2357b1;
    text-underline-offset: 3px;
}

button,
input {
    font: inherit;
}

/* Header and account */

.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 18px 32px;
    background: #fff;
    border-bottom: 1px solid #dfe5ed;
}

.brand {
    color: #192b3e;
    font-size: 22px;
    font-weight: 750;
    text-decoration: none;
}

.brand span {
    margin-left: 16px;
    font-size: 14px;
    font-weight: 400;
    color: #617184;
}

.account {
    display: flex;
    align-items: center;
    gap: 20px;
}

.account form {
    margin: 0;
}

/* Page layout and headings */

main {
    max-width: 1760px;
    margin: 0 auto;
    padding: 36px 32px;
}

h1 {
    margin: 0 0 8px;
    font-size: clamp(25px, 3vw, 34px);
    line-height: 1.25;
}

h2 {
    font-size: 22px;
}

.eyebrow {
    margin: 0 0 8px;
    color: #617184;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.muted,
.table-note {
    color: #617184;
}

.page-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
}

.page-heading p {
    margin-bottom: 0;
}

.event-count {
    padding: 14px 20px;
    border: 1px solid #dfe5ed;
    border-radius: 10px;
    background: white;
    white-space: nowrap;
}

.event-count strong {
    margin-left: 16px;
    font-size: 24px;
}

/* Event table */

.table-note {
    margin: 24px 0 12px;
    font-size: 13px;
}

.table-wrapper {
    overflow-x: auto;
    border: 1px solid #dfe5ed;
    border-radius: 12px;
    background: #fff;
}

.events-table {
    width: 100%;
    min-width: 1100px;
    border-collapse: collapse;
    font-size: 14px;
}

.events-table th {
    background: #edf1f7;
    color: #526174;
    font-size: 12px;
    text-align: left;
}

.events-table th,
.events-table td {
    padding: 18px 16px;
    vertical-align: top;
}

.events-table tbody tr + tr {
    border-top: 1px solid #e8edf3;
}

.events-table tbody tr:hover {
    background: #fafbfd;
}

.timestamps {
    min-width: 180px;
    font-variant-numeric: tabular-nums;
}

small,
.secondary-text {
    display: block;
    color: #617184;
    font-size: 12px;
    margin-top: 5px;
    overflow-wrap: anywhere;
}

/* Event content and details */

.message-cell {
    width: 32%;
    min-width: 250px;
}

.event-message {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.event-details {
    margin-top: 14px;
}

summary {
    cursor: pointer;
    color: #2357b1;
    font-size: 13px;
}

dl {
    margin: 12px 0 0;
    font-size: 12px;
}

dt {
    font-weight: 650;
    color: #526174;
    margin-top: 8px;
}

dd {
    margin: 2px 0 0;
    overflow-wrap: anywhere;
}

.metadata {
    margin-top: 0;
}

/* Importance and delivery status badges */

.badge {
    display: inline-block;
    padding: 3px 9px;
    border-radius: 6px;
    background: #edf1f7;
    color: #526174;
    font-size: 12px;
    font-weight: 650;
}

.badge--failed {
    background: #fce9ec;
    color: #a41f3b;
}

.badge--high,
.badge--retry {
    background: #fff1d8;
    color: #87520a;
}

.badge--normal,
.badge--processing {
    background: #e9f0ff;
    color: #254f9f;
}

.badge--sent {
    background: #e3f4eb;
    color: #226443;
}

/* Notification deliveries */

.deliveries {
    list-style: none;
    padding: 0;
    margin: 0;
}

.deliveries li + li {
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid #e8edf3;
}

.deliveries .badge {
    margin-top: 7px;
}

/* Buttons and keyboard focus */

.button {
    display: inline-block;
    padding: 9px 15px;
    border: 1px solid transparent;
    border-radius: 7px;
    background: #2357b1;
    color: white;
    cursor: pointer;
    text-decoration: none;
    font-size: 14px;
}

.button:hover {
    background: #1b468e;
}

.button-secondary {
    background: #fff;
    border-color: #d6dee8;
    color: #34495f;
}

.button-secondary:hover {
    background: #edf1f7;
}

:focus-visible {
    outline: 3px solid #618bf0;
    outline-offset: 3px;
}

/* Pagination and empty state */

.pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 22px;
    font-size: 14px;
}

.pagination > div {
    display: flex;
    gap: 8px;
}

.empty-state {
    padding: 64px 24px;
    background: #fff;
    border: 1px solid #dfe5ed;
    border-radius: 12px;
    text-align: center;
}

/* Login form */

.login-panel {
    max-width: 440px;
    margin: 50px auto;
    padding: 32px;
    background: #fff;
    border: 1px solid #dfe5ed;
    border-radius: 12px;
}

.login-panel h1 {
    font-size: 27px;
}

.login-form {
    display: grid;
    gap: 10px;
    margin-top: 24px;
}

.login-form label {
    font-size: 14px;
    font-weight: 600;
}

.login-form input {
    width: 100%;
    padding: 11px 12px;
    border: 1px solid #bac7d8;
    border-radius: 7px;
    margin-bottom: 8px;
}

.login-form .button {
    margin-top: 8px;
}

.form-error {
    padding: 12px;
    color: #a41f3b;
    background: #fce9ec;
    border-radius: 7px;
}

/* Mobile layout */

@media (max-width: 700px) {
    .site-header {
        padding: 16px;
        flex-wrap: wrap;
    }

    .brand span {
        display: none;
    }

    main {
        padding: 24px 16px;
    }

    .page-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .pagination {
        flex-wrap: wrap;
    }

    .login-panel {
        margin: 20px auto;
        padding: 24px;
    }
}
