* {
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  background-color: #f5f5f5;
  padding: 1rem;
  margin: 0;
}

.form-container {
  background: #ffffff;
  padding: 1.5rem;
  border-radius: 16px;
  max-width: 500px;
  margin: 0 auto;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  position: relative;
  z-index: 1; /* pastikan form tidak menimpa modal */
}

h2 {
  text-align: center;
  margin-bottom: 1.5rem;
  color: #333;
}

.form-group {
  margin-bottom: 15px;
  position: relative;
}

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: #333;
  margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ccc;
  border-radius: 12px;
  font-size: 14px;
  background-color: #fff;
  box-shadow: 0 1px 2px rgba(0,0,0,0.03);
  transition: border-color 0.2s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: #00bfa5;
  outline: none;
}

.date-icon-wrapper {
  position: relative;
}

.date-icon-wrapper input[type="date"]::-webkit-calendar-picker-indicator {
  opacity: 0;
  z-index: 1;
}

.date-icon-wrapper i.bi-calendar {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #888;
  pointer-events: none;
  z-index: 2;
}

textarea {
  resize: vertical;
}

.hidden {
  display: none;
}

button {
  width: 100%;
  padding: 12px;
  background-color: #00bfa5;
  border: none;
  color: white;
  font-size: 16px;
  font-weight: bold;
  border-radius: 12px;
  cursor: pointer;
}

.back-button {
  margin-bottom: 20px;
  display: inline-flex;
  align-items: center;
  background: none;
  border: none;
  color: #00bfa5;
  font-size: 16px;
  cursor: pointer;
}

.back-button i {
  margin-right: 6px;
}

/* Untuk Modal Sukses */
[x-cloak] {
  display: none !important;
}

/* Styling Modal */
.fixed.inset-0 {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999; /* modal tertinggi */
}

.bg-black.bg-opacity-50 {
  background-color: rgba(0, 0, 0, 0.5);
}

.flex.items-center.justify-center {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}

.max-w-sm.w-full {
  max-width: 300px;
  width: 100%;
}

.bg-white.p-6.rounded.shadow-lg {
  background-color: #fff;
  padding: 1rem;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  z-index: 10000;
  position: relative;
}

.text-xl.font-semibold.mb-4.text-green-600 {
  font-size: 1.25rem;
  font-weight: bold;
  margin-bottom: 1rem;
  color: #2ecc71;
}

/* Tombol Konfirmasi */
.btn-confirm {
  width: 100%;
  padding: 12px;
  background-color: #27ae60; /* hijau */
  color: white;
  font-weight: bold;
  font-size: 16px;
  border: none;
  border-radius: 8px;
  margin-bottom: 12px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.btn-confirm:hover {
  background-color: #219150;
}

/* Tombol Tutup */
.btn-close {
  width: 100%;
  padding: 10px;
  background-color: #e0e0e0; /* abu terang */
  color: #333;
  font-weight: normal;
  font-size: 15px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.btn-close:hover {
  background-color: #cfcfcf;
}

/* === Tambahan Styling untuk Select2 === */
.select2-container {
  width: 100% !important;
  max-width: 100%;
  display: block;
  position: relative;
}

.select2-container--default .select2-selection--single {
  background-color: #fff;
  border: 1px solid #ccc;
  border-radius: 12px;
  min-height: 42px;
  padding: 6px 12px;
  display: flex;
  align-items: center;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
  font-size: 14px;
  transition: border-color 0.2s ease;
  position: relative;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
  color: #333;
  padding-left: 12px;
  padding-right: 30px;
  line-height: 40px; /* Bikin teks vertikal center */
  white-space: nowrap;     /* << Ini penting */
  overflow: visible;
  text-overflow: unset;
  

}


.select2-container--default .select2-selection--single .select2-selection__arrow {
  height: 100%;
  position: absolute;
  top: 0;
  right: 8px;  /* agak jauhkan dari teks */
  width: 20px;
}


.select2-container--default.select2-container--focus .select2-selection--single {
  border-color: #00bfa5;
}

.select2-dropdown {
  z-index: 9999;
}
