src/assets/css/downloads/logsDisplay.css
.log-title-container {
  @apply flex justify-between items-center w-full;
}

.log-actions {
  @apply flex gap-2;
}

.shell-container {
  @apply h-[300px] overflow-y-auto rounded-lg mb-2.5 relative;
  /* 使用DaisyUI的背景色 */
  @apply bg-neutral;
}

.empty-logs {
  @apply h-full flex items-center justify-center;
}

.terminal {
  @apply w-full h-full flex flex-col rounded-md overflow-hidden font-mono shadow-lg;
  /* 使用DaisyUI的变量保持与主题一致性 */
  background: var(--tw-neutral-900, #0d0d0d);
}

.terminal-header {
  @apply bg-neutral-focus p-2 flex items-center rounded-t-lg;
}

.terminal-controls {
  @apply flex gap-1.5 mr-4;
}

.control {
  @apply w-3 h-3 rounded-full;
}

.close {
  @apply bg-error;
}

.minimize {
  @apply bg-warning;
}

.maximize {
  @apply bg-success;
}

.terminal-title {
  @apply text-base-content text-sm font-medium select-none flex-1 text-center;
}

.terminal-body {
  @apply flex-1 p-2.5 font-mono text-sm overflow-y-auto;
  /* 使用DaisyUI颜色变量 */
  color: hsl(var(--nc));

  /* 等宽字体优化 */
  font-family: "Fira Code", "SF Mono", Monaco, "Cascadia Code", "Roboto Mono",
    Consolas, "Courier New", monospace;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

.terminal-line {
  @apply mb-1 whitespace-pre-wrap break-all leading-relaxed flex flex-wrap items-start;
  /* 日志行字体优化 */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

.command-prompt {
  @apply text-success mr-1.5;
}

.command-content {
  @apply text-base-content;
}

.command-line {
  @apply my-2 p-0.5 text-accent;
  background-color: rgba(255, 255, 255, 0.05);
}

.important-line {
  @apply font-medium text-base-content bg-primary/10 border-l-2 border-primary pl-1;
}

.timestamp {
  @apply text-neutral-content mr-2 text-[0.9em] min-w-[80px] inline-block;
}

.prefix {
  @apply mr-1.5 font-semibold p-0.5 rounded min-w-[70px] inline-block text-center text-xs;
}

.prefix.pip {
  @apply text-warning bg-primary/10;
}

.prefix.python {
  @apply text-info bg-info/10;
}

.prefix.napcat {
  @apply text-warning bg-success/10;
}

.prefix.nonebot {
  @apply text-primary bg-primary/10;
}

.prefix.install {
  @apply text-accent bg-secondary/10;
}

.prefix.system {
  @apply text-neutral-content bg-neutral-content/10;
}

.content {
  @apply flex-1 break-words whitespace-pre-wrap text-base-content;
}

.content.error {
  @apply text-error;
}

.content.warning {
  @apply text-warning;
}

.content.success {
  @apply text-success;
}

.terminal-options {
  @apply flex justify-end mt-1.5;
}

/* 增强选项按钮样式 */
.terminal-options .btn {
  @apply btn-sm btn-ghost;
}

/* Iconify图标支持 */
.terminal-options .iconify {
  @apply inline-flex align-middle;
}

/* 增强按钮的可点击性 */
.log-actions .btn {
  @apply btn-sm;
}

/* 添加图标按钮样式 */
.icon-btn {
  @apply btn btn-sm btn-ghost p-1;
}

.icon-btn .iconify {
  @apply text-lg;
}

/* 深色模式下的空日志文本 - DaisyUI会自动处理 */
[data-theme="dark"] .empty-description {
  @apply text-base-content/60;
}

/* 空日志状态美化 */
.empty-logs .empty-icon {
  @apply text-4xl text-base-content/30 mb-2;
}

.empty-logs .empty-text {
  @apply text-base-content/50;
}
