/* style-example-button.css */
#gradientPreview {
  background: linear-gradient(90deg, #0d6efd, #6610f2);
  transition: background 0.3s ease;
}

#gradientPreview {
  min-width: 100px;
  height: 40px;
  border-radius: 8px;
  border: 1px solid #ccc;
  background-size: cover;
  background-position: center;
}

.icon-style-select select:disabled {
  background-color: #f5f5f5;
  cursor: not-allowed;
}

#dynamicFieldContainer select:disabled,
#dynamicFieldContainer input:disabled {
  background-color: #f8f9fa;
  cursor: not-allowed;
}


/* Stile per bottone selezionato */
.style-item.active {
  outline: 2px solid #0d6efd;
  border-radius: 8px;
}

.style-preview-container {
  position: relative;
}

.custom-style-select {
  border: 1px solid #dee2e6;
  border-radius: 8px;
  background: white;
}

.select-trigger {
  padding: 10px 15px;
  display: flex;
  align-items: center;
  cursor: pointer;
}

.select-options {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  margin-top: 5px;
  z-index: 1000;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  padding: 10px;
}

.select-options.show {
  display: block;
}

.button-style-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.style-item {
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  height: 60px;
}

.btn-preview {
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  border: none;
  transition: all 0.3s ease;
  font-size: 14px;
}

.btn-preview i {
  font-size: 18px;
}

.btn-preview.circle {
  width: 50px;
  height: 50px;
  background: #0d6efd;
  border-radius: 50%;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.btn-preview.square {
  width: 50px;
  height: 50px;
  background: #0d6efd;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.btn-preview.rounded-square {
  width: 50px;
  height: 50px;
  background: #0d6efd;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.btn-preview.rounded-rect {
  width: 100px;
  height: 40px;
  background: #0d6efd;
  border-radius: 20px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.btn-preview.wide-square {
  width: 80px;
  height: 45px;
  background: #0d6efd;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.btn-preview.top-rounded {
  width: 120px;
  height: 45px;
  background: #0d6efd;
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.btn-preview.hexagon {
  width: 90px;
  height: 50px;
  background: #0d6efd;
  border-radius: 10px;
  clip-path: polygon(20% 0%, 80% 0%, 100% 50%, 80% 100%, 20% 100%, 0% 50%);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}