/* Form Builder Styles */
.form-builder {
  padding: 15px 0;
}

/*
.form-control{
  background-color: #202020;
  border: 1px solid #181818;
}.form-select{
  background-color: #202020;
  color:white;
  border: 1px solid #181818;
}
*/
.form-check-input:checked {
  background-color: #0a8aa4;
  border-color: #0a8aa4;
}

/* Component List Styles */
.components-list {
  max-height: 500px;
  overflow-y: auto;
}

.component-item {
  padding: 10px;
  margin-bottom: 8px;
  background-color: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(0, 0, 0, 0.32);
  border-radius: 4px;
  cursor: move;
  transition: all 0.2s ease;
}

.component-item:hover {
  background-color: rgba(0, 0, 0, 0.32);
}

.component-item i {
  margin-right: 8px;
}

/* Form Preview Styles */
.form-preview-container {
  min-height: 300px;
  border: 1px dashed rgba(0, 0, 0, 0.32);
  padding: 15px;
  border-radius: 4px;
}

.empty-form-message {
  padding: 30px;
  text-align: center;
  color: #6c757d;
  border: 2px dashed rgba(0, 0, 0, 0.32);
  border-radius: 4px;
}

.drop-highlight {
  background-color: rgba(0, 0, 0, 0.4);
  border: 2px dashed rgba(0, 0, 0, 0.32);
}

.field-wrapper {
  position: relative;
  padding: 10px;
  border: 1px solid rgba(0, 0, 0, 0.32);
  border-radius: 4px;
  margin-bottom: 15px;
  transition: all 0.2s ease;
}

.field-wrapper:hover {
  background-color: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(0, 0, 0, 0.32);
}

.field-wrapper.selected {
  border: 2px solid rgba(0, 0, 0, 0.4);
  background-color: rgba(0, 0, 0, 0.32);
}

.field-wrapper.dragging {
  opacity: 0.5;
  border: 2px dashed rgba(0, 0, 0, 0.4);
}

.field-actions {
  position: absolute;
  top: 5px;
  right: 5px;
  display: flex;
  gap: 5px;
  z-index: 10;
  flex-direction: row-reverse;
  flex-wrap: nowrap;
  align-items: center;
}

.step-selector {
  display: flex;
  gap: 5px;
  flex-direction: row;
  align-items: center;
}
.step-selector .form-label {
  margin-bottom: 0;
}

.drop-marker {
  height: 3px;
  background-color: #007bff;
  margin: 5px 0;
}

/* Properties Panel Styles */
.properties-panel {
  max-height: 500px;
  overflow-y: auto;
}

/* Preview Mode Styles */
.preview-mode .field-wrapper {
  border-color: transparent;
  padding: 0;
  margin-bottom: 1rem;
}

.preview-mode .field-wrapper:hover {
  background-color: transparent;
  border-color: transparent;
}

.preview-mode .field-wrapper.selected {
  border-color: transparent;
  background-color: transparent;
}

/* Form Embed Styles */

.embed-code {
  font-family: monospace;
  padding: 10px;
  background-color: #343a40;
  color: #fff;
  border-radius: 4px;
  margin-top: 10px;
}

/* Form Submission Styles */
.form-embed-container {
  max-width: 100%;
  margin: 0 auto;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.form-embed-container .alert {
  padding: 15px;
  margin-bottom: 20px;
  border: 1px solid transparent;
  border-radius: 4px;
}

.form-embed-container .alert-success {
  color: #155724;
  background-color: #d4edda;
  border-color: #c3e6cb;
}

.form-embed-container .alert-danger {
  color: #721c24;
  background-color: #f8d7da;
  border-color: #f5c6cb;
}

/* Analytics Dashboard Styles */
.stat-card {
  background-color: #2a2a2a;
  border-radius: 4px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  padding: 20px;
  margin-bottom: 20px;
  transition: all 0.3s ease;
}

.stat-card:hover {
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.stat-card h3 {
  margin-top: 0;
  font-size: 16px;
  color: #6c757d;
}

.stat-card .stat-value {
  font-size: 28px;
  font-weight: bold;
  color: #343a40;
  margin-bottom: 10px;
}

.stat-card .sub-text {
  font-size: 14px;
  color: #6c757d;
}

.chart-container {
  background-color: #2a2a2a;
  border-radius: 4px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  padding: 20px;
  margin-bottom: 20px;
}

/* Form Embed Iframe Styles */

/* Responsive adjustments */
@media (max-width: 768px) {
  .form-builder .row .col-md-3,
.form-builder .row .col-md-6 {
    margin-bottom: 20px;
  }
  .stat-card {
    margin-bottom: 15px;
  }
  .embed-code {
    overflow-x: auto;
  }
}
