/* === FORM LAYOUT UMUM === */
.form-2col {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
}

.form-col {
  flex: 1 1 300px;
  min-width: 280px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* === Layout Form Kiri-Kanan === */
.form-row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 20px;
  margin-bottom: 12px;
}

.form-row label {
  width: 150px;
  text-align: right;
  margin-bottom: 0;
  color: var(--text-primary);
  font-weight: 500;
  font-size: 0.9rem;
}

.form-row input,
.form-row select,
.form-row textarea {
  flex: 1;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: white;
  border-radius: 8px;
}

/* === Checkbox Sejajar === */
.check-row {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 12px;
}

.check-row label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  color: var(--text-primary);
}

/* === Grid Layout Alternatif === */
.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 15px;
}

/* === Section === */
.form-section {
  margin-bottom: 18px;
}

/* === Tab Section Scroll === */
.section-tab {
  overflow-y: auto;
  padding-right: 6px;
  flex-grow: 1;
}

.section-tab::-webkit-scrollbar {
  width: 6px;
}

.section-tab::-webkit-scrollbar-thumb {
  background-color: rgba(255,255,255,0.08);
  border-radius: 4px;
}
/* === Batasi lebar maksimal input agar tidak kepanjangan === */
.form-row input,
.form-row select,
.form-row textarea {
  max-width: 400px;
}

/* === Checkbox di dalam form-row tampil sejajar label === */
.form-row input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--highlight);
  transform: translateY(1px); /* agar rata tengah dengan label */
}

/* === Rotator: form layout per domain (2 kolom + delete button) === */
.domain-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.domain-row input[type="text"] {
  flex: 2;
  max-width: 280px;
}

.domain-row input[type="number"] {
  flex: 1;
  max-width: 120px;
}

.domain-row .delete-btn {
  padding: 6px;
  border-radius: 8px;
  background: transparent;
  border: 1px solid #ff4d4f;
  color: #ff4d4f;
  font-weight: bold;
  cursor: pointer;
  transition: 0.2s;
}

.domain-row .delete-btn:hover {
  background-color: rgba(255, 77, 79, 0.1);
  box-shadow: 0 0 4px rgba(255, 77, 79, 0.3);
}
.form-checkbox {
  display: flex;
  align-items: center;
  height: 100%;
}

.form-checkbox input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--highlight);
  margin: 0;
}
/* === SCROLLABLE CONTAINER UNTUK DOMAIN ROTATOR === */
#rotator-domains-section {
  max-height: 200px;
  overflow-y: auto;
  margin-top: 10px;
  padding-right: 4px;
}

#rotator-domains-section::-webkit-scrollbar {
  width: 6px;
}

#rotator-domains-section::-webkit-scrollbar-thumb {
  background-color: rgba(255,255,255,0.08);
  border-radius: 4px;
}
.tab-scroll-area::-webkit-scrollbar {
  width: 6px;
}
.tab-scroll-area::-webkit-scrollbar-thumb {
  background-color: rgba(255,255,255,0.08);
  border-radius: 4px;
}
/* Form full scroll untuk modal besar */
.form-modal-scroll {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  max-height: 75vh;
}

/* Scrollable section-tab */
.section-tab {
  flex-grow: 1;
  overflow-y: auto;
  padding-right: 6px;
}

/* Divider antar fitur */
.form-divider {
  margin: 25px 0;
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Container domain rotator */
.rotator-scroll {
  display: none;
  max-height: 200px;
  overflow-y: auto;
  padding-right: 4px;
}

/* Footer tetap rapi */
.align-right {
  text-align: right;
  margin-top: 20px;
}