.icon-picker-container {
  position: relative;
  width: 100%;
}

.icon-picker-wrapper {
  position: relative;
}

.icon-picker-trigger {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid #ddd;
  background: white;
  cursor: pointer;
  padding: 8px;
  border-radius: 4px;
}

.icon-picker-trigger img.icon-preview {
  width: 20px;
  height: 20px;
}

.icon-picker-placeholder {
  color: #666;
  font-size: 12px;
}

.icon-picker-popup {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 1000;
  width: 300px;
  background: white;
  border: 1px solid #ddd;
  border-radius: 4px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  margin-top: 4px;
  padding: 12px;
}

.icon-picker-search {
  margin-bottom: 12px;
}

.icon-picker-search input {
  width: 100%;
  padding: 8px;
  border: 1px solid #ddd;
  border-radius: 4px;
}

.icon-picker-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
  max-height: 300px;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 8px;
  margin-right: -8px;
}

/* Style moderne pour la scrollbar */
.icon-picker-grid::-webkit-scrollbar {
  width: 6px;
}

.icon-picker-grid::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 3px;
}

.icon-picker-grid::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 3px;
}

.icon-picker-grid::-webkit-scrollbar-thumb:hover {
  background: #666;
}

.icon-picker-option {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid #ddd;
  background: white;
  cursor: pointer;
  padding: 6px;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.icon-picker-option:hover {
  background: #f5f5f5;
}

.icon-picker-option.selected {
  border-color: #007cba;
  background: #f0f7fc;
}

.icon-picker-option img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.icon-picker-load-more {
  width: 100%;
  margin-top: 12px;
  padding: 8px;
  background: #f5f5f5;
  border: 1px solid #ddd;
  border-radius: 4px;
  cursor: pointer;
}

.icon-picker-load-more:hover {
  background: #e5e5e5;
}

.icon-picker-loading {
  text-align: center;
  padding: 12px;
  color: #666;
}

.form-label {
  margin-bottom: 8px;
  font-size: 14px;
  color: var(--color-text);
}