.svg-icon {
  display: inline-block;
  width: 1em;
  height: 1em;
  vertical-align: -0.15em;
  fill: currentColor;
  overflow: hidden;
  flex-shrink: 0;
}

.svg-icon-lg {
  width: 1.5em;
  height: 1.5em;
}

.svg-icon-sm {
  width: 0.875em;
  height: 0.875em;
}

.icon-search,
.icon-close,
.icon-heart,
.icon-warning,
.icon-document,
.icon-money,
.icon-folder,
.icon-industry,
.icon-building,
.icon-time,
.icon-lightbulb,
.icon-home,
.icon-settings {
  position: relative;
  display: inline-block;
  width: 1em;
  height: 1em;
}

.icon-search::before {
  content: '';
  position: absolute;
  width: 0.6em;
  height: 0.6em;
  border: 0.15em solid currentColor;
  border-radius: 50%;
  top: 0.1em;
  left: 0.1em;
}

.icon-search::after {
  content: '';
  position: absolute;
  width: 0.35em;
  height: 0.15em;
  background: currentColor;
  top: 0.55em;
  left: 0.55em;
  transform: rotate(45deg);
  border-radius: 0.05em;
}

.icon-close::before,
.icon-close::after {
  content: '';
  position: absolute;
  width: 0.85em;
  height: 0.15em;
  background: currentColor;
  top: 50%;
  left: 50%;
  transform-origin: center;
  border-radius: 0.05em;
}

.icon-close::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.icon-close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.icon-heart::before {
  content: '';
  position: absolute;
  width: 0.5em;
  height: 0.7em;
  background: currentColor;
  top: 0.2em;
  left: 0.25em;
  border-radius: 50% 50% 0 0;
  transform: rotate(-45deg);
}

.icon-heart::after {
  content: '';
  position: absolute;
  width: 0.5em;
  height: 0.7em;
  background: currentColor;
  top: 0.2em;
  left: 0.25em;
  border-radius: 50% 50% 0 0;
  transform: rotate(45deg);
}

.icon-heart-filled::before,
.icon-heart-filled::after {
  background: #ef4444;
}

.icon-heart-empty::before,
.icon-heart-empty::after {
  background: transparent;
  border: 0.12em solid currentColor;
}

.icon-warning::before {
  content: '';
  position: absolute;
  width: 0;
  height: 0;
  border-left: 0.5em solid transparent;
  border-right: 0.5em solid transparent;
  border-bottom: 0.85em solid #f59e0b;
  top: 0;
  left: 0;
}

.icon-warning::after {
  content: '';
  position: absolute;
  width: 0.15em;
  height: 0.15em;
  background: #f59e0b;
  border-radius: 50%;
  top: 0.65em;
  left: 0.425em;
}

.icon-document {
  border: 0.15em solid currentColor;
  border-radius: 0.1em;
}

.icon-document::before {
  content: '';
  position: absolute;
  width: 0.5em;
  height: 0.08em;
  background: currentColor;
  top: 0.25em;
  left: 0.15em;
}

.icon-document::after {
  content: '';
  position: absolute;
  width: 0.35em;
  height: 0.08em;
  background: currentColor;
  top: 0.45em;
  left: 0.15em;
}

.icon-money {
  border: 0.15em solid currentColor;
  border-radius: 50%;
}

.icon-money::before {
  content: '¥';
  position: absolute;
  font-size: 0.6em;
  font-weight: bold;
  color: currentColor;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.icon-folder::before {
  content: '';
  position: absolute;
  width: 0.8em;
  height: 0.65em;
  background: currentColor;
  border-radius: 0.08em;
  top: 0.25em;
  left: 0.1em;
}

.icon-folder::after {
  content: '';
  position: absolute;
  width: 0.35em;
  height: 0.2em;
  background: currentColor;
  border-radius: 0.08em 0.08em 0 0;
  top: 0.1em;
  left: 0.1em;
}

.icon-industry::before {
  content: '';
  position: absolute;
  width: 0.7em;
  height: 0.6em;
  background: currentColor;
  top: 0.25em;
  left: 0.15em;
}

.icon-industry::after {
  content: '';
  position: absolute;
  width: 0;
  height: 0;
  border-left: 0.2em solid transparent;
  border-right: 0.2em solid transparent;
  border-bottom: 0.25em solid currentColor;
  top: 0;
  left: 0.2em;
}

.icon-building::before {
  content: '';
  position: absolute;
  width: 0.8em;
  height: 0.65em;
  background: currentColor;
  top: 0.2em;
  left: 0.1em;
}

.icon-building::after {
  content: '';
  position: absolute;
  width: 0;
  height: 0;
  border-left: 0.4em solid transparent;
  border-right: 0.4em solid transparent;
  border-bottom: 0.2em solid currentColor;
  top: 0;
  left: 0.1em;
}

.icon-time {
  border: 0.15em solid currentColor;
  border-radius: 50%;
}

.icon-time::before {
  content: '';
  position: absolute;
  width: 0.08em;
  height: 0.35em;
  background: currentColor;
  top: 0.2em;
  left: 0.46em;
}

.icon-time::after {
  content: '';
  position: absolute;
  width: 0.25em;
  height: 0.08em;
  background: currentColor;
  top: 0.47em;
  left: 0.46em;
}

.icon-lightbulb::before {
  content: '';
  position: absolute;
  width: 0.55em;
  height: 0.55em;
  background: currentColor;
  border-radius: 50%;
  top: 0.1em;
  left: 0.225em;
}

.icon-lightbulb::after {
  content: '';
  position: absolute;
  width: 0.25em;
  height: 0.25em;
  background: currentColor;
  border-radius: 0 0 0.05em 0.05em;
  top: 0.6em;
  left: 0.375em;
}

.icon-home::before {
  content: '';
  position: absolute;
  width: 0.7em;
  height: 0.5em;
  background: currentColor;
  top: 0.35em;
  left: 0.15em;
}

.icon-home::after {
  content: '';
  position: absolute;
  width: 0;
  height: 0;
  border-left: 0.5em solid transparent;
  border-right: 0.5em solid transparent;
  border-bottom: 0.35em solid currentColor;
  top: 0;
  left: 0;
}

.icon-settings::before {
  content: '';
  position: absolute;
  width: 0.5em;
  height: 0.5em;
  border: 0.15em solid currentColor;
  border-radius: 50%;
  top: 0.25em;
  left: 0.25em;
}

.icon-settings::after {
  content: '';
  position: absolute;
  width: 0.15em;
  height: 0.25em;
  background: currentColor;
  top: 0;
  left: 0.425em;
}

.icon-primary { color: #2563eb; }
.icon-success { color: #16a34a; }
.icon-warning-color { color: #f59e0b; }
.icon-danger { color: #ef4444; }
.icon-muted { color: #6b7280; }

.stat-icon-wrapper {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 0.5rem;
  background: rgba(37, 99, 235, 0.1);
  margin-right: 0.75rem;
}

.stat-icon-wrapper .svg-icon {
  color: #2563eb;
}
