/* ========== 题库页面深色模式样式 ========== */

/* 1. 页面整体背景 */
.theme .padding {
    background: var(--bg-page);
}

/* 调整部分亮色的标签文字对比度（如黄色、灰色） */
.theme .ui.yellow.label,
.theme .ui.orange.label,
.theme .ui.grey.label {
    color: var(--bg-page) !important;
}
/* 保证所有标签悬停效果 */
.theme .ui.label a {
    color: inherit;
}

/* 3. 搜索框（当没有标签时显示） */
.theme .ui.search .ui.left.icon.input input {
    background: var(--bg-elevated);
    color: var(--text-primary);
    border-color: var(--border-light);
}
.theme .ui.search .ui.left.icon.input input::placeholder {
    color: var(--text-secondary);
}
.theme .ui.search .results {
    background: var(--bg-elevated);
    border-color: var(--border-light);
}
.theme .ui.search .results .result {
    color: var(--text-primary) !important;
}
.theme .ui.search .results .result .title {
    color: var(--text-primary) !important;
}
.theme .ui.search .results .result .description {
    color: var(--text-secondary) !important;
}
.theme .ui.search .results .result:hover {
    background: var(--border-light);
}
/* 搜索图标变亮 */


/* 6. 下拉菜单（添加题目下拉） */
.theme .ui.dropdown .menu {
    background: var(--bg-elevated);
    border-color: var(--border-light);
}
.theme .ui.dropdown .menu .item {
    color: var(--text-primary);
}
.theme .ui.dropdown .menu .item:hover {
    background: var(--border-light);
    color: var(--white-primary);
}
.theme .ui.dropdown .menu .divider {
    background: var(--border-light);
}

/* 9. 分页组件 */
.theme .ui.pagination.menu {
    background: var(--bg-elevated);
    border-color: var(--border-light);
}
.theme .ui.pagination.menu .item {
    color: var(--text-primary);
    background: var(--bg-elevated);
}
.theme .ui.pagination.menu .item:hover {
    background: var(--border-light);
    color: var(--white-primary);
}
.theme .ui.pagination.menu .active.item {
    background: var(--accent-blue);
    color: var(--white-primary);
    font-weight: bold;
}
.theme .ui.pagination.menu .disabled.item {
    color: var(--text-secondary);
}

/* 10. 空状态提示（placeholder segment） */
.theme .ui.placeholder.segment {
    background: var(--bg-page);
    border-color: var(--border-light);
}
.theme .ui.placeholder.segment .ui.icon.header {
    color: var(--text-secondary);
}
.theme .ui.placeholder.segment .ui.icon.header i.icon {
    color: var(--text-secondary);
}

/* 原来硬编码的 e67e22, f1c40f, 3498db 现在使用变量 */
.theme .status.Compile_Error,
.theme .status.Runtime_Error {
    color: var(--status-warning) !important;
}
.theme .status.Waiting,
.theme .status.Pending {
    color: var(--status-waiting) !important;
}
.theme .status.Compiling,
.theme .status.Judging {
    color: var(--status-judging) !important;
}