/* Lucide Icons Styling */

/* Base icon styling */
[data-lucide],
.lucide {
  width: 1.25rem;
  height: 1.25rem;
  stroke-width: 2;
  stroke: currentColor;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  vertical-align: -0.125em;
  display: inline-block;
}

/* Sizing classes */
.lucide-sm {
  width: 0.875rem;
  height: 0.875rem;
}

.lucide-md {
  width: 1.25rem;
  height: 1.25rem;
}

.lucide-lg {
  width: 1.5rem;
  height: 1.5rem;
}

.lucide-xl {
  width: 2rem;
  height: 2rem;
}

.lucide-2xl {
  width: 2.5rem;
  height: 2.5rem;
}

/* Color variants */
.lucide-primary {
  stroke: var(--brand-600, #5B9BD5);
}

.lucide-success {
  stroke: var(--success, #16a34a);
}

.lucide-danger {
  stroke: var(--danger, #dc2626);
}

.lucide-warning {
  stroke: var(--warning, #f59e0b);
}

.lucide-muted {
  stroke: var(--muted, #6b7280);
}

.lucide-text-muted {
  color: var(--muted, #6b7280);
}

.lucide-text-primary {
  color: var(--brand-600, #5B9BD5);
}

/* Icon in buttons */
button .lucide,
button [data-lucide] {
  margin-right: 0;
  margin-left: 0;
  vertical-align: -0.15em;
  flex-shrink: 0;
}

/* Route clicks to the button itself, not the SVG node. */
button .lucide,
button [data-lucide],
button i[data-lucide],
button svg.lucide,
button svg[data-lucide] {
  pointer-events: none;
}

button.small .lucide,
button.small [data-lucide] {
  width: 1rem;
  height: 1rem;
}

button .lucide:last-child,
button [data-lucide]:last-child {
  margin-right: 0;
  margin-left: 0;
}

/* Icon in links */
a .lucide,
a [data-lucide] {
  vertical-align: -0.15em;
  margin: 0 0.25rem;
}

/* Icon in badges/pills */
.pill .lucide,
.pill [data-lucide],
.badge .lucide,
.badge [data-lucide] {
  margin-right: 0.375rem;
  width: 1rem;
  height: 1rem;
}

/* Loading spinner animation */
.lucide-loader {
  animation: spin 2s linear infinite;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* Status icons */
.lucide-check-circle {
  stroke: #16a34a;
}

button .lucide-check-circle {
  stroke: inherit;
}

.lucide-x-circle {
  stroke: #dc2626;
}

.lucide-alert-circle {
  stroke: #f59e0b;
}

.lucide-info {
  stroke: var(--brand-600, #5B9BD5);
}

/* Keep icons visible in buttons after Lucide replaces placeholders */
button .lucide,
button svg.lucide,
button svg[data-lucide] {
  display: inline-block !important;
}
