/* === Lucide icon system (Glowsy) === */

[data-lucide] {
  width: 1em;
  height: 1em;
  stroke-width: 1.75;
  vertical-align: -0.125em;
  display: inline-block;
  flex-shrink: 0;
}

.icon-sm [data-lucide],
[data-lucide].icon-sm {
  width: 16px;
  height: 16px;
}

.icon-md [data-lucide],
[data-lucide].icon-md {
  width: 20px;
  height: 20px;
}

.icon-lg [data-lucide],
[data-lucide].icon-lg {
  width: 24px;
  height: 24px;
}

.icon-xl [data-lucide],
[data-lucide].icon-xl {
  width: 32px;
  height: 32px;
}

.icon-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  min-width: 40px;
  border-radius: 12px;
  flex-shrink: 0;
}

.icon-badge [data-lucide] {
  width: 20px;
  height: 20px;
}

.icon-badge-sm {
  width: 32px;
  height: 32px;
  min-width: 32px;
  border-radius: 8px;
}

.icon-badge-sm [data-lucide] {
  width: 16px;
  height: 16px;
}

.icon-badge-primary {
  background: rgba(var(--accent-rgb, 99, 102, 241), 0.12);
  color: var(--accent, var(--accent-color, #6366f1));
}

.icon-badge-success {
  background: rgba(34, 197, 94, 0.12);
  color: #16a34a;
}

.icon-badge-warning {
  background: rgba(245, 158, 11, 0.12);
  color: #d97706;
}

.icon-badge-danger {
  background: rgba(239, 68, 68, 0.12);
  color: #dc2626;
}

.icon-badge-info {
  background: rgba(59, 130, 246, 0.12);
  color: #2563eb;
}

.icon-badge-neutral {
  background: rgba(107, 114, 128, 0.12);
  color: #6b7280;
}

.icon-success {
  color: #16a34a;
}

.icon-warning {
  color: #d97706;
}

.icon-danger {
  color: #dc2626;
}

.icon-info {
  color: #2563eb;
}

.icon-muted {
  color: #9ca3af;
}

/* Рейтинг: залитая звезда */
[data-lucide].icon-rating-star {
  fill: currentColor;
  stroke: currentColor;
  color: #e6a336;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--accent, var(--accent-color, #6366f1));
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  flex-shrink: 0;
}

.input-with-icon {
  position: relative;
  display: flex;
  align-items: center;
}

.input-with-icon > [data-lucide] {
  position: absolute;
  left: 12px;
  width: 18px;
  height: 18px;
  color: #9ca3af;
  pointer-events: none;
}

.input-with-icon input {
  padding-left: 38px;
}

/* Тёмная тема (атрибут, как в themes.css) */
html[data-theme="dark"] .icon-badge-success {
  background: rgba(34, 197, 94, 0.15);
  color: #4ade80;
}

html[data-theme="dark"] .icon-badge-warning {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
}

html[data-theme="dark"] .icon-badge-danger {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
}

html[data-theme="dark"] .icon-badge-info {
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
}

html[data-theme="dark"] .icon-badge-neutral {
  background: rgba(107, 114, 128, 0.15);
  color: #9ca3af;
}

html[data-theme="dark"] .icon-success {
  color: #4ade80;
}

html[data-theme="dark"] .icon-warning {
  color: #fbbf24;
}

html[data-theme="dark"] .icon-danger {
  color: #f87171;
}

html[data-theme="dark"] .icon-info {
  color: #60a5fa;
}

/* Кнопка закрытия с иконкой lucide */
.btn-icon-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  line-height: 1;
  border: none;
  background: transparent;
  cursor: pointer;
  color: inherit;
}

.btn-icon-close [data-lucide] {
  width: 22px;
  height: 22px;
}
