/**
 * PDFForge Studio - Unified Custom SVG Icon System
 * Standardized 24x24 viewBox, 2px stroke width, stroke-linecap round, currentColor inheritance.
 */

.forge-icon,
.pfi-icon {
  display: inline-block;
  width: 1.15em;
  height: 1.15em;
  stroke-width: 2px;
  stroke: currentColor;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  vertical-align: -0.15em;
  flex-shrink: 0;
  pointer-events: none;
  transition: color 0.15s ease, stroke 0.15s ease, transform 0.15s ease;
}

/* Sizing Modifiers */
.forge-icon-xs { width: 12px; height: 12px; }
.forge-icon-sm { width: 15px; height: 15px; }
.forge-icon-md { width: 18px; height: 18px; }
.forge-icon-lg { width: 22px; height: 22px; }
.forge-icon-xl { width: 28px; height: 28px; }

/* Interactive & Contextual Alignment */
.btn .forge-icon,
button .forge-icon,
a .forge-icon {
  vertical-align: -0.18em;
}

/* Tool Badges with Icons */
.tool-icon-badge .forge-icon {
  width: 18px;
  height: 18px;
  vertical-align: 0;
}

/* Theme Indicator in Header */
.theme-icon-indicator .forge-icon,
.theme-opt-emoji .forge-icon,
.mobile-theme-opt-btn .forge-icon {
  width: 16px;
  height: 16px;
  vertical-align: -0.15em;
  stroke: currentColor;
}

/* Quick Access Pills & Megamenu */
.megamenu-quick-pill .forge-icon,
.pill-emoji .forge-icon {
  width: 14px;
  height: 14px;
  margin-right: 4px;
  vertical-align: -0.12em;
  color: var(--ed-accent, #c2410c);
}

/* Tab & Input Icons */
.tab-btn .forge-icon,
.upload-tab-btn .forge-icon {
  width: 16px;
  height: 16px;
  margin-right: 6px;
  vertical-align: -0.15em;
}

/* Password Toggle & Modal Buttons */
.auth-pw-toggle .forge-icon {
  width: 16px;
  height: 16px;
  stroke: currentColor;
}

/* Toast Notification Icons */
.toast-icon-svg {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 8px;
}
.toast-icon-svg .forge-icon {
  width: 18px;
  height: 18px;
}

/* Category Accordion Chevron Rotation */
.category-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease;
}
.category-arrow.rotated {
  transform: rotate(180deg);
}

/* Spinning / Rotating utility */
.forge-icon-spin {
  animation: forgeIconSpin 1s linear infinite;
}
@keyframes forgeIconSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
