/**
 * TCP协议分析工具
 * 页面外壳（顶部导航、居中容器、底部版权行）由 ../../tools-page.css 提供，
 * 本文件只保留该工具的专属样式。
 */

/* 代码 / 密文区域统一使用等宽字体，便于查看与复制 */
#otWorkspace textarea,
#otWorkspace pre,
#otWorkspace code {
    font-family: Consolas, Monaco, "Courier New", monospace;
}

/* 补齐页面使用到的自定义工具类 */

/* 状态色：成功 / 警告 / 危险（页面用到，但 Tailwind 主题中未定义，这里补齐） */
.text-success { color: #52c41a; }
.text-warning { color: #faad14; }
.text-danger { color: #f53f3f; }
.bg-success { background-color: #52c41a; }
.bg-warning { background-color: #faad14; }
.bg-danger { background-color: #f53f3f; }
.border-success { border-color: #52c41a; }
.border-warning { border-color: #faad14; }
.border-danger { border-color: #f53f3f; }

/* 带透明度修饰符的工具类 */
[class~="bg-success/5"] { background-color: rgba(82, 196, 26, 0.05); }
[class~="bg-success/10"] { background-color: rgba(82, 196, 26, 0.1); }
[class~="bg-danger/10"] { background-color: rgba(245, 63, 63, 0.1); }

/* 十六进制 / ASCII 视图：保留空格与换行，保证偏移列与 ASCII 列对齐 */
#hex-view,
#ascii-view {
    white-space: pre;
}
