body {
    max-width: 90rem;
    margin: 0 auto;
    padding: 20px;
    font-family: sans-serif;
    text-align: center;
    background: black;
    color: white;
}

.layout {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.tabs {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 200px;
    border-bottom: none;
    border-right: 2px solid #333;
    padding-right: 0;
    margin: 0;
}

.tab-btn {
    padding: 10px 20px;
    cursor: pointer;
    background: transparent;
    border: none;
    border-right: 2px solid transparent;
    border-radius: 6px 0 0 6px;
    font-size: 14px;
    text-align: left;
    color: white;
    transition: background 0.2s;
    margin-right: -2px;
}

.tab-btn:hover {
    background: #1a1a1a;
}

.tab-btn.active {
    background: #2c3e50;
    border-right: 2px solid white;
    font-weight: bold;
    color: white;
}

.tab-content {
    display: none;
    flex: 1;
    padding: 0 20px;
}

.tab-content.active {
    display: block;
}
.horizontal-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.simple-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin: 16px 0;
    justify-content: center;

}
.regular-input {
    max-width: 100px;
    padding: 10px 14px;
    border: 1px solid #333;
    border-radius: 10px;
    background-color: #111;
    color: #fff;
    font-size: 14px;
    outline: none;
    transition: all 0.2s ease;
    text-align: center;
}

#logoutBtn {
    padding: 8px 20px;
    border-radius: 20px;
    background: darkred;
    color: white;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: fit-content;
    margin: 0 auto;
    align-items: center;
}

.regular-button {
    padding: 8px 20px;
    border: 1px solid #ccc;
    border-radius: 20px;
    background: #f5f5f5;
    color: #555;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.regular-button:disabled {
    padding: 8px 20px;
    border: 1px solid #ccc;
    border-radius: 20px;
    background: #f5f5f5;
    color: #555;
    font-size: 13px;
    transition: all 0.2s ease;
    opacity: 0.5;
    cursor: not-allowed;
}

.period-btn {

}

.regular-button:hover {
    background: #e0e0e0;
    border-color: #aaa;
}

.regular-button.active {
    background: #2c3e50;
    color: white;
    border-color: #2c3e50;
    font-weight: bold;
}
canvas {
  margin: 1em;
}
#map {
    height: 500px;
    width: 100%;
}

.period-selector {
    display: flex;
    gap: 8px;
    margin: 16px 0;
    justify-content: center;
}

th[data-sort="asc"]  .sort-icon::after { content: " ▲"; }
th[data-sort="desc"] .sort-icon::after { content: " ▼"; }
th[data-sort=""]     .sort-icon::after { content: " ⇅"; color: #666; }

#blockedPortsTable,
#notBlockedPortsTable,
#blockedIpsTable,
#notBlockedIpsTable {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0 32px 0;
    font-size: 13px;
    text-align: left;
}

#blockedPortsTable th,
#notBlockedPortsTable th,
#blockedIpsTable th,
#notBlockedIpsTable th {
    background: #2c3e50;
    color: white;
    padding: 10px 14px;
    font-weight: bold;
    border-bottom: 2px solid #1a252f;
}

#blockedPortsTable td,
#notBlockedPortsTable td,
#blockedIpsTable td,
#notBlockedIpsTable td {
    padding: 8px 14px;
    border-bottom: 1px solid #333;
    color: white;
}

#blockedPortsTable tr:hover,
#notBlockedPortsTable tr:hover,
#blockedIpsTable tr:hover,
#notBlockedIpsTable tr:hover {
    background: #1a1a1a;
}

#blockedPortsTable tr:nth-child(even),
#notBlockedPortsTable tr:nth-child(even),
#blockedIpsTable tr:nth-child(even),
#notBlockedIpsTable tr:nth-child(even) {
    background: #111;
}

.btn-block {
    padding: 4px 12px;
    border: 1px solid #dc3545;
    border-radius: 12px;
    background: transparent;
    color: #dc3545;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-block:hover {
    background: #dc3545;
    color: white;
}

.btn-unblock {
    padding: 4px 12px;
    border: 1px solid #28a745;
    border-radius: 12px;
    background: transparent;
    color: #28a745;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-unblock:hover {
    background: #28a745;
    color: white;
}
