* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, sans-serif;
}

body {
  background-color: #f4f4f4;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height:100;
  position: relative;
 
}

header {
  margin-bottom: 20px;
}

.logo {
  width: 150px;
  margin-bottom: 20px;
}

.container {
  display: flex;
  gap: 20px;
  margin-bottom: 40px;
  flex-wrap: wrap; /* Menambahkan wrap agar card berbaris secara dinamis */
}

.card {
  background-color: #ffffff;
  border-radius: 7px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  padding: 20px;
  text-align: center;
  width: 200px;
}

h2 {
  font-size: 16px;
  color: #000080; /* Warna Nusabot */
}

.data {
  font-size: 20px;
  color: #4d5e78;
  margin-top: 2px;
}

/* Switch button styling */
.switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 34px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: .4s;
  border-radius: 34px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 26px;
  width: 26px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: .4s;
  border-radius: 50%;
}

input:checked + .slider {
  background-color: #000080; /* Warna Nusabot */
}

input:checked + .slider:before {
  transform: translateX(26px);
}

/* Card untuk mengirim teks ke LCD */
.card input[type="text"] {
  padding: 10px;
  margin-top: 10px;
  width: 100%;
  border: 1px solid #ddd;
  border-radius: 5px;
}

.card button {
  margin-top: 7px;
  padding: 10px 20px;
  background-color: #000080;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

.card button:hover {
  background-color: #276ba7;
}

/* Label "Terhubung" Styling */
.status {
  position: absolute;
  top: 20px;
  right: 20px;
  background-color: #000080; /* Warna utama Nusabot */
  color: white;
  padding: 5px 10px;
  border-radius: 5px;
  font-size: 14px;
}

/* Tabel Styling */
.table-container {
  margin-top: 2px;
  text-align: center;
  width: 100%;
}

.table-container h2 {
  color: #000080;
  margin-bottom: 10px;
}

table {
  width: 70%;
  
  margin: 0 auto;
  border-collapse: collapse;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  background-color: white;
   margin-bottom: 50px;
}

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

th {
  background-color: #191970;
  color: white;
}

.connected {
  color: green;
}

.disconnected {
  color: red;
}



/* Footer Styling */
footer {
  background-color: #4d5e78;
  color: white;
  padding: 1px;
  width: 100%;
  
  text-align: center;
  position: absolute;
  bottom: 0;
 
    

  

}

footer p {
  margin: 0;
}
