body {
    font-family: Arial, sans-serif;
    background-color: #f7f7f7;
    color: #333;
    margin: 0;
    padding: 0;
}

.container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 20px;
}

.form-container,
.table-container {
    width: 100%;
    max-width: 800px;
    margin-bottom: 20px;
    padding: 20px;
    background-color: #fff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

h1 {
    color: #555;
    text-align: center;
    margin-top: 0;
    font-size: 25px;
}

h2 {
    color: #47B1FF;
    text-align: center;
    margin-top: 0;
    font-size: 40px;
    font-weight: bold;
}

form {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

label {
    margin-right: 10px;
    font-weight: bold;
}

input[type="text"] {
    padding: 5px;
    border: 1px solid #ddd;
    border-radius: 3px;
}

button[type="submit"] {
    padding: 8px 16px;
    background-color: #4CAF50;
    border: none;
    color: #fff;
    border-radius: 3px;
    cursor: pointer;
}

table {
    width: 100%;
    border-collapse: collapse;
    background-color: #fff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    margin-top: 20px;
    color: #333;
}

th,
td {
    padding: 12px 20px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

th {
    background-color: #f5f5f5;
    font-weight: 600;
}

.status-up {
    color: #fff;
    background-color: #4CAF50;
    display: flex;
    align-items: center;
    justify-content: center;
}

.status-down {
    color: #fff;
    background-color: #F44336;
    display: flex;
    align-items: center;
    justify-content: center;
}

.no-data {
    text-align: center;
    padding: 20px;
    font-weight: bold;
    color: #777;
}

.address-not-found {
    color: red;
}

/* Mode Gelap */
body.dark-mode {
    background-color: #222;
    color: #fff;
}

.dark-mode .form-container,
.dark-mode .table-container {
    background-color: #333;
    color: #fff;
    box-shadow: 0 2px 6px rgba(255, 255, 255, 0.1);
}

.dark-mode h1,
.dark-mode label {
    color: #fff;
}

.dark-mode form {
    background-color: #333;
}

.dark-mode input[type="text"] {
    background-color: #222;
    border-color: #ddd;
    color: #fff;
}

.dark-mode button[type="submit"] {
    background-color: #4CAF50;
    border-color: #ddd;
    color: #fff;
}

.dark-mode table {
    background-color: #444;
    box-shadow: 0 2px 6px rgba(255, 255, 255, 0.1);
}

.dark-mode th {
    background-color: #555;
    color: #fff;
}

.dark-mode tr {
    background-color: #555;
    color: #eaeaea;
}

.dark-mode .status-up,
.dark-mode .status-down {
    color: #fff;
}

.dark-mode .no-data {
    color: #ddd;
}

.dark-mode .address-not-found {
    color: #ff7f7f;
}

.kotak {
    width: 120px;
    height: 78px;
    background-color: #00bbff;
    border: 2px solid #333;
    border-radius: 5px;
    box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.2);
    margin: 20px auto;
    display: flex;
    float: left;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.kotak .active-users-label {
    color: white;
    font-size: 16px;
}

.kotak .active-users-count {
    color: white;
    font-size: 40px;
    font-weight: bold;
    margin-top: 10px;
}

.kotak2 {
    width: 120px;
    height: 78px;
    background-color: #4CAF50;
    border: 2px solid #333;
    border-radius: 5px;
    box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.2);
    margin: 20px auto;
    display: flex;
    float: left;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.kotak2 .up-ap-label {
    color: white;
    font-size: 16px;
}

.kotak2 .up-ap-count {
    color: white;
    font-size: 40px;
    font-weight: bold;
    margin-top: 10px;
}

.kotak3 {
    width: 120px;
    height: 78px;
    background-color: #F44336;
    border: 2px solid #333;
    border-radius: 5px;
    box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.2);
    margin: 20px auto;
    display: flex;
    float: left;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.kotak3 .down-ap-label {
    color: white;
    font-size: 16px;
}

.kotak3 .down-ap-count {
    color: white;
    font-size: 40px;
    font-weight: bold;
    margin-top: 10px;
}

.kotak4 {
    width: 120px;
    height: 78px;
    background-color: #d9a807;
    border: 2px solid #333;
    border-radius: 5px;
    box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.2);
    margin: 20px auto;
    display: flex;
    float: left;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.kotak4 .down-ap-label {
    color: white;
    font-size: 16px;
}

.kotak4 .cpu-status-count {
    color: white;
    font-size: 40px;
    font-weight: bold;
    margin-top: 10px;
}
