body {
  font-family: "Segoe UI", sans-serif;
  background: #eaf0f6;
  margin: 0;
  padding: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

h1 {
  color: #1e3a5f;
  margin-bottom: 30px;
  font-size: 32px;
}

.card {
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  padding: 25px 30px;
  margin: 15px;
  width: 350px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
}

h3 {
  margin: 0 0 10px;
  color: #2980b9;
  font-size: 22px;
}

#temperature,
#motion {
  font-size: 20px;
  font-weight: 600;
  color: #2c3e50;
}

label {
  display: flex;
  align-items: center;
  margin-top: 10px;
  font-size: 18px;
  color: #34495e;
}

input[type="checkbox"] {
  appearance: none;
  width: 50px;
  height: 26px;
  background: #d3d3d3;
  border-radius: 13px;
  position: relative;
  outline: none;
  cursor: pointer;
  transition: background 0.3s ease;
}

input[type="checkbox"]::before {
  content: "";
  position: absolute;
  width: 22px;
  height: 22px;
  background: white;
  border-radius: 50%;
  top: 2px;
  left: 2px;
  transition: transform 0.3s ease;
}

input[type="checkbox"]:checked {
  background: #2980b9;
}

input[type="checkbox"]:checked::before {
  transform: translateX(24px);
}
