/* mil-onto 自定义样式（Tailwind 之外的少量补充） */

/* 滚动条美化 */
*::-webkit-scrollbar { width: 8px; height: 8px; }
*::-webkit-scrollbar-track { background: transparent; }
*::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 4px; }
*::-webkit-scrollbar-thumb:hover { background: #94a3b8; }

/* 等宽字体小调整 */
.font-mono { font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, monospace; }

/* HTMX 加载指示 */
.htmx-indicator { opacity: 0; transition: opacity 200ms ease-in; }
.htmx-request .htmx-indicator { opacity: 1; }
.htmx-request.htmx-indicator { opacity: 1; }

/* 表格悬停淡入 */
table tr { transition: background-color 80ms ease; }

/* Yasgui 容器避免被 Tailwind reset 影响 */
.yasgui-container { font-size: 13px; }

/* Alpine x-cloak：元素在 Alpine 初始化前隐藏，避免闪现 */
[x-cloak] { display: none !important; }

/* LLM 进度条扫光动画（表示后台仍在推理） */
@keyframes mil-pulse-bar {
  0%   { background-position: -200px 0; }
  100% { background-position: 200px 0; }
}
.mil-progress-stripe {
  background-image: linear-gradient(90deg,
    rgba(255,255,255,0) 0%, rgba(255,255,255,.5) 50%, rgba(255,255,255,0) 100%);
  background-size: 200px 100%;
  background-repeat: no-repeat;
  animation: mil-pulse-bar 1.2s linear infinite;
}
