body {
  font-family: Arial, sans-serif;
  background-color: #f4f7fa;
}

.form-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 20px;
  background-color: #ffffff;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1); /* Floating effect */
  border-radius: 10px;
}

h2 {
  text-align: center;
  margin-bottom: 30px;
}

.form-group {
  margin-bottom: 20px;
}

label {
  font-weight: bold;
}

.form-control {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
  margin-top: 8px;
}

textarea.form-control {
  height: 100px;
}

.checkbox {
  display: flex;
  align-items: center;
}

.checkbox input {
  margin-right: 10px;
}

/* Reset button */
.btn-reset {
  background-color: #f44336 !important; /* Merah */
  color: white !important;
  border: none !important;
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
}

.btn-reset:hover {
  background-color: #d32f2f !important; /* Merah lebih gelap */
}

/* Submit button */
.btn-submit {
  background-color: #4caf50 !important; /* Hijau */
  color: white !important;
  border: none !important;
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
}

.btn-submit:hover {
  background-color: #388e3c !important; /* Hijau lebih gelap */
}

.upload-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 2px dashed #007bff;
  border-radius: 10px;
  padding: 20px;
  cursor: pointer;
  color: #007bff;
  transition: background-color 0.3s, color 0.3s;
  margin-bottom: 15px;
}

.upload-icon i {
  margin-bottom: 10px;
}

.upload-icon:hover {
  background-color: #007bff;
  color: #fff;
}

.preview-container {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

.preview-container img {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border: 1px solid #ddd;
  border-radius: 5px;
  position: relative;
}

.preview-container .remove-image {
  position: absolute;
  top: 5px;
  right: 5px;
  background-color: rgba(255, 0, 0, 0.7);
  color: white;
  font-size: 12px;
  padding: 2px 5px;
  border-radius: 3px;
  cursor: pointer;
}

.dropdown-list {
  position: absolute;
  background-color: white;
  border: 1px solid #ddd;
  max-height: 150px;
  overflow-y: auto;
  z-index: 1000;
  width: 100%;
  border-radius: 5px;
}

.dropdown-list div {
  padding: 10px;
  cursor: pointer;
}

.dropdown-list div:hover {
  background-color: #f1f1f1;
}

/* Gaya untuk tombol hapus */
.btn-danger.btn-sm {
  background-color: transparent; /* Tombol transparan */
  border: none; /* Hapus border */
  color: #007bff; /* Warna biru */
  font-size: 16px; /* Ukuran font */
  cursor: pointer; /* Tampilkan pointer */
  display: flex; /* Pastikan ikon terpusat */
  align-items: center;
  justify-content: center;
  width: 25px; /* Lebar tombol */
  height: 25px; /* Tinggi tombol */
  padding: 0; /* Hapus padding */
  border-radius: 50%; /* Bentuk lingkaran */
  transition: background-color 0.2s ease;
}

/* Hover efek untuk tombol */
.btn-danger.btn-sm:hover {
  background-color: #f8d7da; /* Warna latar merah muda */
  color: #ff0000; /* Warna merah */
}

/* Gaya ikon FontAwesome */
.btn-danger.btn-sm i {
  margin: 0; /* Pastikan ikon terpusat */
}

.preview-container {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

.img-placeholder {
  width: 100px;
  height: 100px;
  position: relative;
  background-color: #f0f0f0;
  border: 1px solid #ccc;
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.progress-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 5px;
  width: 0;
  background-color: #4caf50;
  transition: width 0.3s ease;
}
