* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;

    background: #f2f4f7;

    color: #222;

    font-family:
        Arial,
        Helvetica,
        sans-serif;
}

.container {
    max-width: 1500px;

    margin: 0 auto;

    padding: 25px;
}

.header {
    display: flex;

    justify-content: space-between;

    align-items: center;

    margin-bottom: 25px;
}

h1 {
    margin: 0 0 5px 0;

    font-size: 28px;
}

h2 {
    margin-top: 0;
}

.subtitle {
    color: #777;

    font-size: 14px;
}

.menu a {
    display: inline-block;

    margin-left: 8px;

    padding: 10px 15px;

    background: #1976d2;

    color: white;

    text-decoration: none;

    border-radius: 4px;
}

.menu a:hover {
    background: #125ca5;
}

.stats {
    display: flex;

    gap: 15px;

    margin-bottom: 20px;
}

.stat {
    flex: 1;

    background: white;

    padding: 20px;

    border-radius: 6px;

    box-shadow:
        0 1px 4px
        rgba(0,0,0,.08);
}

.stat-title {
    color: #777;

    font-size: 13px;

    margin-bottom: 8px;
}

.stat-value {
    font-size: 27px;

    font-weight: bold;
}

.actions {
    margin-bottom: 15px;
}

.button {
    display: inline-block;

    border: 0;

    padding: 10px 18px;

    background: #1976d2;

    color: white;

    text-decoration: none;

    border-radius: 4px;

    cursor: pointer;
}

.button:hover {
    background: #125ca5;
}

.refresh-info {
    margin-left: 15px;

    color: #777;

    font-size: 13px;
}

.table-wrapper {
    overflow-x: auto;
}

table {
    width: 100%;

    border-collapse: collapse;

    background: white;

    box-shadow:
        0 1px 4px
        rgba(0,0,0,.08);
}

th {
    background: #e9edf2;

    text-align: left;

    padding: 12px;

    font-size: 13px;

    white-space: nowrap;
}

td {
    padding: 12px;

    border-top: 1px solid #eee;

    font-size: 13px;

    vertical-align: top;
}

tr:hover td {
    background: #fafafa;
}

.number {
    text-align: right;

    white-space: nowrap;
}

.status {
    display: inline-block;

    padding: 5px 8px;

    border-radius: 4px;

    font-size: 10px;

    font-weight: bold;

    margin: 1px;
}

.status.online {
    background: #dff3df;

    color: #277427;
}

.status.offline {
    background: #f8dddd;

    color: #a12a2a;
}

.status.warning {
    background: #fff0c7;

    color: #8a6100;
}

.error {
    color: #a12a2a;

    font-size: 11px;

    max-width: 260px;

    word-break: break-word;

    margin-top: 4px;
}

.small {
    color: #777;

    font-size: 11px;

    line-height: 17px;
}

.history-link {
    color: #1976d2;

    text-decoration: none;
}

.history-link:hover {
    text-decoration: underline;
}

.delete-link {
    color: #c62828;

    text-decoration: none;
}

.delete-link:hover {
    text-decoration: underline;
}

.box {
    background: white;

    padding: 25px;

    margin-bottom: 20px;

    border-radius: 6px;

    box-shadow:
        0 1px 4px
        rgba(0,0,0,.08);
}

.form-row {
    margin-bottom: 15px;
}

.form-row label {
    display: block;

    margin-bottom: 5px;

    font-weight: bold;

    font-size: 14px;
}

.form-row input {
    width: 100%;

    max-width: 500px;

    padding: 10px;

    border: 1px solid #ccc;

    border-radius: 4px;

    font-size: 14px;
}

.hint {
    margin-top: 5px;

    color: #888;

    font-size: 12px;
}

.message {
    background: #e2f3e2;

    border: 1px solid #9aca9a;

    padding: 12px;

    margin-bottom: 20px;

    border-radius: 4px;
}

.error-box {
    background: #f9e1e1;

    border-color: #d49a9a;

    color: #8b2222;
}

.empty {
    text-align: center;

    color: #777;

    padding: 30px;
}

.legend {
    margin-top: 15px;

    background: white;

    padding: 12px;

    border-radius: 5px;
}

.footer {
    margin-top: 20px;

    color: #888;

    font-size: 12px;

    text-align: center;
}

@media (max-width: 800px) {

    .container {
        padding: 10px;
    }

    .header {
        display: block;
    }

    .menu {
        margin-top: 15px;
    }

    .stats {
        display: block;
    }

    .stat {
        margin-bottom: 10px;
    }
}

.check-status {
    display: inline-block;

    margin-left: 15px;

    color: #777;

    font-size: 13px;
}

.check-status.checking {
    color: #1976d2;

    font-weight: bold;
}

.check-status.check-error {
    color: #c62828;

    font-weight: bold;
}

.last-online {
    margin-top: 4px;
    font-size: 11px;
    color: #999;
    font-style: italic;
}