/* ... (Bagian CSS Latihan 1 dan Umum tidak berubah) ... */

body {
  font-family: Arial, sans-serif;
  margin: 20px;
  background-color: #f4f4f9;
}
.container {
  max-width: 800px;
  margin: 0 auto;
  background-color: #fff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
h2 {
  border-bottom: 2px solid #007bff;
  padding-bottom: 5px;
  color: #333;
  margin-top: 30px;
}
/* Latihan 1: Kalkulator */
#calculator-form input[type="number"] {
  padding: 8px;
  margin-right: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  width: 100px;
}
#calculator-form button {
  padding: 8px 15px;
  margin: 5px;
  cursor: pointer;
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 4px;
}
#calculator-result {
  margin-top: 15px;
  font-weight: bold;
  color: #28a745;
}

/* Latihan 2: Daftar Belanja (Diperbarui) */
.shopping-card {
  background-color: #fff;
  padding: 20px 30px; /* Padding agar konten di dalam card tidak terlalu mepet */
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  margin-top: 10px;
}

.shopping-card h3 {
  text-align: center;
  margin-bottom: 20px;
  font-size: 1.8em;
}

#shopping-input-container {
  display: flex; /* Mengatur tata letak input dan tombol secara horizontal */
  gap: 10px;
  margin-bottom: 20px;
}

#shopping-input {
  flex-grow: 1; /* Input mengambil sisa ruang yang tersedia */
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1em;
}

#add-item-btn {
  padding: 10px 20px;
  background-color: #007bff; /* Warna biru */
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1em;
  font-weight: bold;
  transition: background-color 0.3s;
}

#add-item-btn:hover {
  background-color: #0056b3;
}

#shopping-list {
  list-style: none;
  padding: 0;
  margin-top: 10px;
}
#shopping-list li {
  background: #e9ecef;
  padding: 10px;
  border-radius: 4px;
  margin-bottom: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
#shopping-list li button {
  background-color: #dc3545;
  color: white;
  border: none;
  padding: 5px 10px;
  cursor: pointer;
  border-radius: 4px;
}

/* ... (Bagian CSS Latihan 3 dan Latihan 4 tidak berubah) ... */

/* Latihan 3: Jam Digital & Kalender */
#digital-clock-container {
  text-align: center;
  background-color: #333;
  color: white;
  padding: 20px;
  border-radius: 8px;
  margin-top: 15px;
}
#time-display {
  font-family: "Consolas", monospace; /* Font monospasi untuk kesan digital */
  font-size: 3em;
  font-weight: bold;
  letter-spacing: 2px;
}
#date-display {
  font-size: 1.2em;
  margin-top: 5px;
}

/* Latihan 4: Quiz Interaktif */
.quiz-card {
  background-color: #fff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
  text-align: center;
  max-width: 500px;
  margin: 30px auto;
}
/* ... (Gaya lainnya untuk Quiz tidak berubah) ... */
.quiz-card h3 {
  font-size: 1.8em;
  color: #333;
  margin-bottom: 20px;
}

.quiz-card #quiz-question-text {
  font-size: 1.5em;
  font-weight: bold;
  color: #555;
  margin-bottom: 30px;
}

#quiz-options {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-bottom: 30px;
}

.option-btn {
  width: 100%;
  padding: 15px 20px;
  font-size: 1.1em;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  text-align: left;
  transition: background-color 0.3s ease, transform 0.2s ease;
  color: white;
  background-color: #dc3545;
}

.option-btn:hover:not(.correct):not(.incorrect) {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.option-btn.selected {
  border: 2px solid #007bff;
  box-shadow: 0 0 10px rgba(0, 123, 255, 0.5);
}

.option-btn.correct {
  background-color: #28a745;
}

.option-btn.incorrect {
  background-color: #dc3545;
}

.next-btn {
  width: 100%;
  padding: 15px 20px;
  font-size: 1.2em;
  font-weight: bold;
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.next-btn:hover {
  background-color: #0056b3;
}

#quiz-final-result {
  margin-top: 25px;
  font-size: 1.6em;
  font-weight: bold;
  color: #007bff;
}
