/* Global Styles */
body {
  margin: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: #28074a;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
  padding: 20px;
}

/* Header */
header {
  text-align: center;
  margin-bottom: 30px;
}

header h1 {
  font-size: 2.5rem;
  background: linear-gradient(90deg, #bd4de5, #ff19db);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

header p {
  font-size: 1.2rem;
  color: #ff7f1a;
}

/* Sections */
section {
  background: linear-gradient(145deg, #491088, #6c1dd0);
  padding: 30px 20px;
  margin-bottom: 25px;
  border-radius: 15px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.5);
  width: 100%;
  max-width: 400px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

/* Section Headings */
section h2 {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 25px;
}

section h2 i {
  margin-right: 10px;
  color: #ff7f1a;
}

/* Buttons */
button {
  background-color: #bd4de5;
  color: white;
  border: none;
  border-radius: 25px;
  padding: 12px 20px;
  margin: 5px;
  font-size: 16px;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0,0,0,0.4);
  transition: all 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

button i {
  margin-right: 8px;
}

button:hover {
  background-color: #ff19db;
}

button:active {
  box-shadow: 0 0 20px 6px rgba(255, 25, 219, 0.6);
  transform: scale(0.97);
}

/* Toggle Switch */
.switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 34px;
  margin: 15px 0;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, #bd4de5, #ff19db);
  border-radius: 34px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.4);
  transition: 0.4s;
}

.slider:before {
  position: absolute;
  content: "";
  height: 26px;
  width: 26px;
  left: 4px;
  bottom: 4px;
  background-color: #28074a;
  border-radius: 50%;
  transition: 0.4s;
}

input:checked + .slider {
  background: linear-gradient(90deg, #ff19db, #bd4de5);
}

input:checked + .slider:before {
  transform: translateX(26px);
  box-shadow: 0 2px 8px rgba(0,0,0,0.6);
}

/* Temperature Display */
.temp-display {
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 15px;
  padding: 15px 25px;
  border-radius: 12px;
  background: linear-gradient(90deg, #bd4de5, #ff19db);
  color: #fff;
  box-shadow: 0 4px 15px rgba(0,0,0,0.4);
  text-align: center;
  width: 120px;
}

.temp-buttons {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Song Display */
.song-display {
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 15px;
  padding: 12px 20px;
  border-radius: 12px;
  background: linear-gradient(90deg, #ff19db, #bd4de5);
  color: #fff;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0,0,0,0.4);
}

.music-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

/* Responsive */
@media (max-width: 450px) {
  section {
    padding: 25px 15px;
  }

  button {
    width: 100%;
    justify-content: center;
  }
}
