body {
    font-family: Arial, sans-serif;
    background: #0f172a;
    color: #e2e8f0;
    margin: 0;
}

.site-header {
    background: #1e293b;
    height: 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    border-bottom: 1px solid #334155;
}

.logo {
    font-size: 20px;
    font-weight: bold;
}

.logo img {
    height: 80px;
    top: 10px;
    position: relative;
}

.site-header nav {
    display: flex;
    gap: 15px;
    font-size: 18px;
}

.site-header nav a {
    font-size: 15px;
}

.site-header nav strong {
    color: #1ea724;
}

.site-header a {
    color: #e2e8f0;
    text-decoration: none;
}

.site-header a:hover {
    color: #38bdf8;
}

.container {
    width: 95%;
    max-width: 1200px;
    margin: auto;
    padding: 20px;
}

h1 {
    margin-bottom: 20px;
}

.heartbeat {
    font-size: 12px;
    display: inline-block;
}

.panel {
    background: #111827;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 10px;
}

.summary {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.summary div {
    flex: 1;
    background: #1f2937;
    padding: 10px;
    border-radius: 8px;
    text-align: center;
}

.server-table {
    width: 100%;
}

.server-header {
    justify-content: space-between;
    padding: 10px;
    font-weight: bold;
    background: #1f2937;
    border-radius: 8px;
    margin-bottom: 5px;
    color: #e2e8f0;
}

.server-header,
.server-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1.5fr;
    ;
    gap: 10px;
}

.server-row {
    justify-content: space-between;
    padding: 10px;
    border-bottom: 1px solid #1f2937;
    cursor: pointer;
}

.status-up {
    color: #22c55e;
    font-weight: bold;
}

.status-down {
    color: #ef4444;
    font-weight: bold;
}

.badge {
    padding: 3px 8px;
    border-radius: 5px;
    font-size: 12px;
}

.badge.up {
    background: #14532d;
}

.badge.down {
    background: #7f1d1d;
}


/* Modal */

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
}

.hidden {
    display: none;
}

.modal-content {
    background: #0f172a;
    width: 90%;
    max-width: 900px;
    margin: 50px auto;
    padding: 20px;
    border-radius: 10px;
}

#closeModal {
    float: right;
    cursor: pointer;
    font-size: 24px;
}


/* TLS */

.tls {
    font-size: 12px;
    padding: 3px 6px;
    border-radius: 6px;
    display: inline-block;
}

.tls.ok {
    background: #14532d;
    color: #22c55e;
}

.tls.warning {
    background: #78350f;
    color: #f59e0b;
}

.tls.expired {
    background: #7f1d1d;
    color: #ef4444;
}

.tls.unknown {
    background: #374151;
    color: #9ca3af;
}

.notification-log {
    max-height: 250px;
    overflow-y: auto;
    background: #0b1220;
    border-radius: 8px;
    padding: 10px;
}

.notification-row {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding: 8px;
    border-bottom: 1px solid #1f2937;
    font-size: 13px;
}

.notification-type {
    font-weight: bold;
}

.notification-time {
    color: #94a3b8;
    font-size: 12px;
}

.nt-tls {
    color: #f59e0b;
}

.nt-down {
    color: #ef4444;
}

.nt-up {
    color: #22c55e;
}