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

/* 代码 / 密文区域统一使用等宽字体，便于查看与复制 */
#otWorkspace textarea,
#otWorkspace pre,
#otWorkspace code {
    font-family: Consolas, Monaco, "Courier New", monospace;
}

/* 全局消息提示框 */
.ot_notification {
    top: 20px;
    right: 16px;
    z-index: 100;
    transform: translateX(calc(100% + 24px));
    pointer-events: none;
}

@media (max-width: 900px) {
    .ot_notification {
        top: 16px;
        right: 12px;
    }
}

/* 补齐页面使用到的自定义工具类 */

/* 自定义卡片阴影 */
.shadow-card { box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08); }
.hover:shadow-card-hover:hover { box-shadow: 0 8px 30px rgba(0, 0, 0, 0.14); }

/* 统一的过渡效果 */
.transition-all-300 {
    transition: all 300ms ease-in-out;
}

/* 细滚动条 */
.scrollbar-thin {
    scrollbar-width: thin;
}
.scrollbar-thin::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
.scrollbar-thin::-webkit-scrollbar-thumb {
    background-color: rgba(156, 163, 175, 0.5);
    border-radius: 3px;
}
.scrollbar-thin::-webkit-scrollbar-track {
    background: transparent;
}

/* 状态色：成功 / 警告 / 危险（页面用到，但 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; }

/* 页面用到的灰度色阶 */
.text-dark-light { color: #86909c; }
.bg-light-gray { background-color: #f2f3f5; }
.bg-mid-gray { background-color: #e5e6eb; }
.border-mid-gray { border-color: #e5e6eb; }

/* 带透明度修饰符的工具类 */
[class~="bg-light-gray/50"] { background-color: rgba(242, 243, 245, 0.5); }
[class~="hover:bg-mid-gray/30"]:hover { background-color: rgba(229, 230, 235, 0.3); }
[class~="bg-danger/10"] { background-color: rgba(245, 63, 63, 0.1); }
[class~="bg-warning/10"] { background-color: rgba(250, 173, 20, 0.1); }
[class~="bg-success/10"] { background-color: rgba(82, 196, 26, 0.1); }

/* 通用组件类补齐 */

/* 复选框（未引入 Tailwind forms 插件，这里手动补齐基础样式） */
.form-checkbox {
    appearance: none;
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    border: 1px solid #c9cdd4;
    border-radius: 4px;
    background: #fff;
    cursor: pointer;
    vertical-align: middle;
    transition: all 0.2s;
}
.form-checkbox:checked {
    border-color: #0989E2;
    background: #0989E2 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23fff'%3E%3Cpath d='M6.2 11.4 3 8.2l1.2-1.2 2 2 5.6-5.6L13 4.6z'/%3E%3C/svg%3E") center/12px no-repeat;
}
