/* Drag and drop feedback */
.element-card.dragging {
  opacity: 0.4;
}

.element-card.drag-over {
  border-top: 3px solid #EC4A0A;
  margin-top: -3px;
}

/* Custom scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #ccc; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #aaa; }

/* Element card */
.element-card {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  padding: 0.75rem;
  cursor: grab;
  transition: box-shadow 0.15s, border-color 0.15s;
}

.element-card:hover {
  border-color: #d1d5db;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.element-card:active {
  cursor: grabbing;
}

/* Preview popup styles */
#popup-preview .preview-overlay {
  background: rgba(0,0,0,0.5);
  border-radius: 8px;
  padding: 1rem;
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
}

#popup-preview .preview-popup {
  background: #fff;
  border-radius: 8px;
  padding: 2rem;
  box-shadow: 0 8px 32px rgba(0,0,0,0.15);
  position: relative;
  width: 100%;
}

/* Settings panel sections */
.settings-section {
  border-bottom: 1px solid #e5e7eb;
  padding-bottom: 0.75rem;
  margin-bottom: 0.75rem;
}

.settings-section:last-child {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 0;
}

.settings-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: #6b7280;
  margin-bottom: 0.25rem;
}

.settings-select,
.settings-input {
  width: 100%;
  padding: 0.375rem 0.5rem;
  border: 1px solid #d1d5db;
  border-radius: 0.375rem;
  font-size: 0.8125rem;
  background: #fff;
}

.settings-select:focus,
.settings-input:focus {
  outline: none;
  border-color: #EC4A0A;
  box-shadow: 0 0 0 2px rgba(236,74,10,0.15);
}

/* Tab buttons */
.tab-btn {
  padding: 0.5rem 1rem;
  font-size: 0.8125rem;
  font-weight: 600;
  border-bottom: 2px solid transparent;
  color: #6b7280;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
}

.tab-btn:hover {
  color: #374151;
}

.tab-btn.active {
  color: #EC4A0A;
  border-bottom-color: #EC4A0A;
}
