/* IconPicker.css - Styles for the IconPicker component */

.icon-picker-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
}

.icon-picker-modal {
  background: white;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  max-width: 650px;
  width: 100%;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.icon-picker-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid #e5e7eb;
}

.icon-picker-header h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: #111827;
}

.icon-picker-close {
  background: none;
  border: none;
  font-size: 18px;
  color: #6b7280;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
  transition: all 0.15s ease;
}

.icon-picker-close:hover {
  background: #f3f4f6;
  color: #111827;
}

.icon-picker-content {
  display: flex;
  flex: 1;
  overflow: hidden;
}

.icon-picker-sidebar {
  width: 140px;
  flex-shrink: 0;
  border-right: 1px solid #e5e7eb;
  padding: 12px;
  overflow-y: auto;
  background: #f9fafb;
}

.icon-picker-category-btn {
  display: block;
  width: 100%;
  text-align: left;
  padding: 8px 10px;
  margin-bottom: 4px;
  font-size: 11px;
  font-weight: 500;
  color: #4b5563;
  background: none;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.icon-picker-category-btn:hover {
  background: #e5e7eb;
  color: #111827;
}

.icon-picker-category-btn.active {
  background: #991b1b;
  color: white;
}

.icon-picker-grid-container {
  flex: 1;
  padding: 16px;
  overflow-y: auto;
}

.icon-picker-category-title {
  margin: 0 0 12px 0;
  font-size: 14px;
  font-weight: 600;
  color: #374151;
}

.icon-picker-grid {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 4px;
}

.icon-picker-emoji-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  font-size: 22px;
  background: none;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.icon-picker-emoji-btn:hover {
  background: #f3f4f6;
  transform: scale(1.1);
}

.icon-picker-emoji-btn.selected {
  background: #fee2e2;
  outline: 2px solid #991b1b;
}

.icon-picker-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  border-top: 1px solid #e5e7eb;
  background: #f9fafb;
}

.icon-picker-reset-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  font-size: 13px;
  color: #4b5563;
  background: none;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.icon-picker-reset-btn:hover {
  background: #e5e7eb;
  color: #111827;
}

.icon-picker-cancel-btn {
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 500;
  color: #374151;
  background: white;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.icon-picker-cancel-btn:hover {
  background: #f9fafb;
  border-color: #9ca3af;
}
