body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    margin: 0;
    padding: 20px;
}

.container {
    max-width: 800px;
    margin: auto;
    background: white;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

h1 {
    text-align: center;
}

input {
    width: calc(100% - 22px);
    padding: 10px;
    margin-bottom: 10px;
}

button {
    width: 100%;
    padding: 10px;
    background-color: #28a745;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

button:hover {
    background-color: #218838;
}

#result {
    display: flex;
    flex-wrap: wrap; /* Permite quebra de linha se houver mais de 5 círculos */
    justify-content: center; /* Centraliza os círculos */
    gap: 10px; /* Espaço entre os círculos */
}

.ip-box {
    width: 20%; /* Cada círculo ocupa 1/5 do contêiner */
    aspect-ratio: 1 / 1; /* Mantém o círculo com largura e altura iguais */
    border-radius: 50%; /* Forma circular */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: clamp(8px, 2vw, 20px); /* Ajuste dinâmico de fonte */
    text-align: center;
    padding: 5px; /* Espaçamento interno para dar margem ao texto */
}

.ip-box.active {
    background-color: green; /* Verde para IP ativo */
}

.ip-box.inactive {
    background-color: red; /* Vermelho para IP inativo */
}
