/**
 * Lucide Icons - SVG 图标样式
 * Shadcn/UI 风格图标系统
 */

/* 基础图标样式 */
.icon {
  width: 1em;
  height: 1em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.icon svg {
  width: 100%;
  height: 100%;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

/* 图标尺寸变体 */
.icon-xs {
  width: 12px;
  height: 12px;
}

.icon-sm {
  width: 16px;
  height: 16px;
}

.icon-md {
  width: 20px;
  height: 20px;
}

.icon-lg {
  width: 24px;
  height: 24px;
}

.icon-xl {
  width: 32px;
  height: 32px;
}

.icon-2xl {
  width: 48px;
  height: 48px;
}

/* 导航图标 */
.nav-icon {
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-icon svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

/* 按钮内图标 */
.btn-icon-inner svg,
.action-btn svg,
.btn-daemon svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

/* 空状态图标 */
.empty-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

.empty-icon svg {
  width: 48px;
  height: 48px;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
  opacity: 0.5;
}

/* 菜单图标 */
.menu-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
}

.menu-icon svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

/* 警告图标 */
.warning-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

.warning-icon svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

/* 选项图标 */
.option-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

.option-icon svg {
  width: 28px;
  height: 28px;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

/* 成功/完成图标 */
.success-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

.success-icon svg {
  width: 48px;
  height: 48px;
  stroke: var(--success);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.complete-icon svg {
  width: 64px;
  height: 64px;
  stroke: var(--success);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

/* 错误图标 */
.error-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

.error-icon svg {
  width: 36px;
  height: 36px;
  stroke: var(--destructive);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

/* 欢迎图标 */
.welcome-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

.welcome-icon svg {
  width: 48px;
  height: 48px;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

/* 状态图标 */
.status-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

.status-icon svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

/* 发送/中止按钮图标 */
.send-btn svg,
.abort-btn svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

/* 复制按钮图标 */
.btn-copy svg,
.btn-copy-inline svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

/* 小型图标按钮 */
.btn-icon svg,
.btn-icon-xs svg,
.btn-icon-sm svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

/* 账户操作按钮图标 */
.account-action-buttons button svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

/* Loader 动画 */
.icon-loader svg {
  animation: spin 1s linear infinite;
}

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