/**
 * Cron 表达式生成工具
 * 页面外壳（顶部导航、居中容器、底部版权行）由 ../../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); }

/* 统一的过渡效果 */
.transition-all-300 {
    transition: all 300ms ease-in-out;
}

/* 隐藏滚动条 */
.scrollbar-hide {
    -ms-overflow-style: none;
    scrollbar-width: none;
}
.scrollbar-hide::-webkit-scrollbar {
    display: none;
}

/* 选项卡选中态 */
.tab-active {
    color: #0989E2;
    border-bottom: 2px solid #0989E2;
    font-weight: 600;
}

/* 5 位格式下“秒”Tab 不可用 */
.tab-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

/* 顶层功能选项卡（解析 / 生成） */
.main-tab {
    color: #4e5969;
    border-bottom: 2px solid transparent;
    transition: all 300ms ease-in-out;
}
.main-tab:hover {
    color: #0989E2;
}
.main-tab-active {
    color: #0989E2;
    border-bottom-color: #0989E2;
    font-weight: 600;
}

/* 字段拆解表格 */
.cron-field-table {
    width: 100%;
    text-align: left;
    font-size: 13px;
    border: 1px solid #e5e6eb;
    border-radius: 8px;
    overflow: hidden;
}
.cron-field-table th,
.cron-field-table td {
    padding: 8px 12px;
    border-bottom: 1px solid #f2f3f5;
}
.cron-field-table th {
    background: #f7f8fa;
    color: #4e5969;
    font-weight: 600;
}
.cron-field-table tr:last-child td {
    border-bottom: none;
}
