/* Please see documentation at https://docs.microsoft.com/aspnet/core/client-side/bundling-and-minification
 for details on configuring this project to bundle and minify static web assets.

 Write your CSS code. */

body {
    background: linear-gradient(180deg, #f5f7fb 0%, #eef2f7 100%);
}

.monitor-entry-card {
    background-color: rgba(255, 255, 255, 0.97);
}

.monitor-search-form {
    width: 100%;
    max-width: 360px;
}

.monitor-toolbar .btn,
.monitor-search-form .form-control,
.monitor-search-form .btn,
.monitor-search-form .input-group-text {
    font-size: 0.85rem;
}

.monitor-table-wrap {
    width: 100%;
    overflow-x: clip;
}

.monitor-table {
    width: 100%;
    table-layout: auto;
    font-size: 1rem;
}

.monitor-table th,
.monitor-table td {
    padding: 0.38rem 0.5rem;
    vertical-align: middle;
}

.monitor-table__url-col {
    width: 28%;
}

.monitor-table__status-col {
    width: 180px;
}

.monitor-table__url-cell {
    overflow-wrap: anywhere;
    word-break: break-word;
}

.monitor-table__url-text {
    font-size: inherit;
    line-height: 1.25;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.monitor-table__status-cell {
    min-width: 0;
}

.monitor-table__status-message {
    line-height: 1.15;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.monitor-table__status-time {
    margin-top: 0.1rem;
    color: #6b7280;
    font-size: 0.875rem;
    white-space: nowrap;
}

.monitor-table__actions {
    width: 14rem;
    min-width: 14rem;
    white-space: normal;
}

.monitor-table__action-form {
    margin: 0 0.25rem 0.25rem 0;
}

.monitor-table__action-btn,
.monitor-table__icon-btn {
    padding: 0.32rem 0.6rem;
    font-size: 0.95rem;
    line-height: 1.35;
}

.monitor-section__header {
    margin-bottom: 0.75rem;
}

.monitor-switch {
    padding: 0.85rem 0.9rem 0.85rem 2.8rem;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 1rem;
    background-color: rgba(248, 250, 252, 0.85);
}

.monitor-switch .form-check-input {
    margin-top: 0.25rem;
}

.admin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1rem;
}

.admin-tile {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    min-height: 220px;
    padding: 1.35rem;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 1rem;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(246, 249, 252, 0.96) 100%);
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
    color: inherit;
    text-decoration: none;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.admin-tile:hover {
    transform: translateY(-3px);
    border-color: rgba(31, 81, 91, 0.22);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
    color: inherit;
    text-decoration: none;
}

.admin-tile__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border-radius: 0.9rem;
    background-color: rgba(255, 255, 255, 0.92);
    box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.06);
    font-size: 1.35rem;
}

.admin-tile__body {
    flex: 1;
}

.admin-tile__action {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    font-size: 0.88rem;
    font-weight: 600;
    color: #1f515b;
}

.status-board {
    background-color: rgba(255, 255, 255, 0.96);
}

.status-hero__metric {
    height: 100%;
    padding: 1rem 1.1rem;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 1rem;
    background-color: rgba(255, 255, 255, 0.82);
}

.status-hero__label {
    display: block;
    margin-bottom: 0.35rem;
    color: #6b7280;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.status-hero__value {
    font-size: 1.8rem;
    line-height: 1;
}

.status-board__meta {
    color: #6b7280;
    font-size: 0.9rem;
}

.status-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.status-row + .status-row {
    border-top: 0;
}

.status-row {
    overflow: hidden;
}

.status-icon {
    font-size: 0.95rem;
    line-height: 1;
}

.status-icon-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.2rem;
    height: 2.2rem;
    border-radius: 999px;
    background-color: rgba(248, 250, 252, 0.95);
    box-shadow: inset 0 0 0 2px rgba(15, 23, 42, 0.08);
}

.status-icon-wrap--up {
    background-color: #dff8ef;
    box-shadow:
        inset 0 0 0 2px #7fd9bd,
        0 0 0 4px rgba(32, 201, 151, 0.14);
}

.status-icon-wrap--down {
    background-color: rgba(240, 101, 72, 0.14);
    box-shadow:
        inset 0 0 0 2px rgba(240, 101, 72, 0.32),
        0 0 0 4px rgba(240, 101, 72, 0.08);
}

.status-icon-wrap--pending {
    background-color: rgba(246, 195, 68, 0.16);
    box-shadow:
        inset 0 0 0 2px rgba(246, 195, 68, 0.32),
        0 0 0 4px rgba(246, 195, 68, 0.08);
}

.status-title--up {
    color: #14795d;
}

.status-title--down {
    color: #c13e24;
}

.status-title--pending {
    color: #8d6a12;
}

.status-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.28rem 0.65rem;
    border-radius: 999px;
    background-color: #eef2f7;
    color: #526071;
    font-size: 0.8rem;
    font-weight: 600;
}

.status-uptime {
    color: #6b7280;
    font-size: 0.85rem;
    white-space: nowrap;
}

.status-subline {
    font-size: 0.82rem;
    min-width: 0;
}

.status-bars {
    display: grid;
    grid-template-columns: repeat(50, minmax(0, 1fr));
    gap: 0.14rem;
    margin: 0.05rem 0 0.15rem;
}

.chart-wrap--compact {
    height: 210px;
}

.history-table {
    table-layout: auto;
}

.history-table th,
.history-table td {
    font-size: 0.83rem;
    vertical-align: middle;
}

.history-table__message {
    max-width: 420px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.history-response {
    max-height: 240px;
    overflow: auto;
}

.brand-height {
    max-width: min(100%, 237px);
    height: auto;
}

.status-bar {
    display: block;
    height: 0.8rem;
    border-radius: 0.18rem;
    background-color: #d7dde5;
}

.status-bar--up {
    background-color: #20c997;
}

.status-bar--down {
    background-color: #f06548;
}

.status-bar--warning {
    background-color: #f6c344;
}

.status-bar--muted {
    background-color: #d7dde5;
}

@media (max-width: 767.98px) {
    main.p-3 {
        padding: 0.9rem !important;
    }

    .navbar {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }

    .monitor-search-form {
        max-width: none;
    }

    .monitor-toolbar {
        width: 100%;
    }

    .monitor-toolbar > * {
        flex: 1 1 calc(50% - 0.5rem);
    }

    .monitor-toolbar .btn,
    .monitor-toolbar form,
    .monitor-toolbar .dropdown {
        width: 100%;
    }

    .monitor-toolbar .btn {
        justify-content: center;
    }

    .monitor-table {
        table-layout: auto;
    }

    .monitor-table thead {
        display: none;
    }

    .monitor-table,
    .monitor-table tbody,
    .monitor-table tr,
    .monitor-table td {
        display: block;
        width: 100%;
    }

    .monitor-table tbody {
        display: grid;
        gap: 0.85rem;
    }

    .monitor-table tr {
        border: 1px solid rgba(15, 23, 42, 0.1);
        border-radius: 1rem;
        background: #fff;
        box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
        overflow: hidden;
    }

    .monitor-table td {
        padding: 0.55rem 0.85rem;
        border: 0 !important;
        text-align: left;
        white-space: normal;
    }

    .monitor-table td + td {
        border-top: 1px solid rgba(15, 23, 42, 0.06) !important;
    }

    .monitor-table td::before {
        content: attr(data-label);
        display: block;
        margin-bottom: 0.18rem;
        color: #6b7280;
        font-size: 0.76rem;
        font-weight: 700;
        letter-spacing: 0.04em;
        text-transform: uppercase;
    }

    .monitor-table__url-col,
    .monitor-table__status-col {
        width: auto;
    }

    .monitor-table__actions {
        width: 100%;
        white-space: normal;
    }

    .monitor-table__actions form,
    .monitor-table__actions a {
        display: inline-flex !important;
        margin-right: 0.35rem;
        margin-bottom: 0.35rem;
    }

    .status-bars {
        grid-template-columns: repeat(25, minmax(0, 1fr));
    }

    .status-row .btn {
        width: 100%;
        justify-content: center;
    }

    .history-table-wrap {
        overflow-x: auto;
    }

    .history-table {
        min-width: 640px;
    }

    .chart-wrap--compact {
        height: 180px;
    }

    .status-bars {
        grid-template-columns: repeat(25, minmax(0, 1fr));
    }

    .status-uptime {
        white-space: normal;
    }

    .status-subline {
        font-size: 0.78rem;
    }
}
