/* Sembunyikan textarea sumber agar diganti panel */
.nlb-src-hidden { display: none !important; }

/* Panel dasar */
.nlb-panel{
  border: 1px solid #e9ecef;
  border-radius: 14px;
  padding: 12px;
  margin: 8px 0 16px 0;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,.03);
}

/* Header panel */
.nlb-panel-head{
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.nlb-panel-head h4{
  margin: 0;
  font-size: 15px;
  font-weight: 700;
}
.nlb-cap{
  font-size: 12px;
  color: #666;
}

/* Item/card */
.nlb-items .nlb-item{
  border: 1px dashed #e6e6e6;
  border-radius: 12px;
  padding: 10px;
  margin: 10px 0;
  background: #fafafa;
}
.nlb-item .nlb-item-head{
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}
.nlb-item .drag{
  margin-right: 6px;
  color: #888;
  font-size: 14px;
}
.nlb-item .rm{
  font-size: 12px;
  color: #b71c1c;
  text-decoration: none;
}
.nlb-item .rm:hover{ text-decoration: underline; }

/* Field di dalam item */
.nlb-field{ margin-bottom: 8px; }
.nlb-field label{
  display: block;
  font-weight: 600;
  margin-bottom: 4px;
  font-size: 12px;
}
.nlb-field input[type="text"],
.nlb-field input[type="url"],
.nlb-field input[type="file"]{
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #ddd;
  border-radius: 10px;
  outline: none;
  transition: border-color .15s ease;
  background: #fff;
  box-sizing: border-box;
}
.nlb-field input:focus{ border-color: #0a8c84; }

/* Tombol tambah */
.nlb-actions{
  display: flex;
  justify-content: flex-start;
  margin-top: 8px;
}
.nlb-btn.add{
  padding: .5rem .8rem;
  border: 1px solid #086d64;
  border-radius: 12px;
  background: #fff;
  color: #086d64;
  font-weight: 700;
  cursor: pointer;
}
.nlb-btn.add:hover{ background: #f3fffd; }
.nlb-btn.add[disabled]{ opacity: .6; cursor: not-allowed; }

/* State drag */
.nlb-item.drag-over{ outline: 2px dashed #0a8c84; }

/* ------ Elementor compatibility ------ */
.elementor-form .elementor-field-group .nlb-panel{
  display: block;
  width: 100%;
  margin: 8px 0 16px 0;
}
.elementor-form .elementor-field-group textarea[name="form_fields[menus_json]"],
.elementor-form .elementor-field-group textarea[name="form_fields[links_json]"]{
  display: none !important;
}
/* Sembunyikan label asli Elementor untuk textarea tersebut */
.elementor-form .elementor-field-group-menus_json > label,
.elementor-form .elementor-field-group-links_json > label{
  display: none !important;
}

/* Responsive kecil */
@media (max-width: 480px){
  .nlb-panel{ padding: 10px; }
  .nlb-field input{ padding: 8px; }
}
.nlb-thumb img{ max-width:120px; height:auto; border:1px solid #eee; }