/* ========== Status Page 专用样式 ========== */

/* 等待状态样式 */
.inline-waiting {
    width: 100%;
    height: 28px;
    overflow: hidden;
    position: relative;
}

.res_running {
    margin-top: 3px;
    text-align: center;
    -moz-opacity: 0.60;
    opacity: 0.60;
}

/* 旋转动画 */
@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        -webkit-transform: rotate(360deg);
        transform: rotate(360deg);
    }
}

/* 按钮子文本样式 */
.btn-subtext {
    display: block;
    font-size: 0.75em;
    line-height: 1em;
    color: #6c757d; /* Bootstrap 5 secondary color */
}

/* Result 列等宽样式 */
.result-btn, .result-span {
    width: 60px;
    text-align: center;
    display: inline-block;
    font-weight: bold;
}

/* 加载状态叠加样式 */
.loading-overlay {
    position: relative;
    cursor: default;
}

.loading-text {
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.spinner-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
}

.spinner-overlay .spinner-border-sm {
    width: 2rem;
    height: 2rem;
    border-width: 0.15em;
    border-color: #6c757d transparent #6c757d transparent;
    opacity: 0.8;
    animation: spinner-border 2s linear infinite;
}

@keyframes spinner-border {
    to {
        transform: rotate(360deg);
    }
}

/* 语言列样式 */
.lang-strong, .lang-btn {
    width: 60px;
    text-align: center;
    display: inline-block;
    font-weight: bold;
}

/* ========== EXP 模式：Solution ID 列样式 ========== */

/* Solution ID 显示容器 */
.solution-id-exp {
    line-height: 1.2;
    font-size: 0.85em;
}

/* Solution ID 主文本（提交号） */
.solution-id-exp > div:first-child {
    font-weight: 600;
}

/* Solution ID 次要文本（course_key 和类型） */
.solution-id-exp > div:not(:first-child) {
    color: #6c757d;
    font-size: 0.9em;
}

.solution-id-exp > div:nth-child(3) {
    font-size: 0.85em;
}

/* Solution ID 链接样式 */
.solution-id-exp-link {
    text-decoration: none;
    color: inherit;
}

.solution-id-exp-link:hover {
    text-decoration: none;
    color: inherit;
}

/* Solution ID 禁用状态 */
.solution-id-exp-disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

/* ========== Solution ID Tooltip 样式 ========== */

/* ID 列 tooltip 左对齐样式 */
.solution-id-tooltip-custom .tooltip-inner {
    text-align: left !important;
}

/* 针对所有方向的 tooltip 都左对齐 */
.bs-tooltip-top.solution-id-tooltip-custom .tooltip-inner,
.bs-tooltip-bottom.solution-id-tooltip-custom .tooltip-inner,
.bs-tooltip-start.solution-id-tooltip-custom .tooltip-inner,
.bs-tooltip-end.solution-id-tooltip-custom .tooltip-inner {
    text-align: left !important;
}

/* ========== Status User 列样式 ========== */

/* 用户信息容器 */
.status-user-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 0;
    padding: 4px 0;
    text-align: center;
}

/* 用户名显示（更低调的样式） */
.status-user-name {
    max-width: 120px;
    font-weight: 400; /* 不加粗 */
    font-size: 0.8rem; /* 更小的字体 */
    color: #6c757d; /* 更低调的颜色 */
    margin-bottom: 3px;
    line-height: 1.3;
    text-align: center;
}

/* 用户ID显示 */
.status-user-id {
    text-align: center;
}

/* 用户ID链接样式（不加粗） */
.status-user-link {
    font-weight: 400; /* 不加粗 */
    font-size: 0.85rem;
    color: #0d6efd;
}

.status-user-link:hover {
    color: #0a58ca;
    text-decoration: underline;
}

/* ========== 查重列（Similarity）样式 ========== */

/* 查重列容器 */
.sim-container {
    min-width: 0;
    padding: 1px 0;
    text-align: center;
    cursor: pointer;
}

/* 相似度数值 */
.sim-value {
    font-size: 0.95rem;
    font-weight: 700;
    color: #dc3545;
    line-height: 1.1;
    margin-bottom: 1px;
    text-align: center;
}

/* 用户信息行 */
.sim-user-info {
    text-align: center;
    font-size: 0.7rem;
    line-height: 1.1;
    margin-bottom: 1px;
    color: #6c757d;
}

/* 用户名 */
.sim-user-name {
    font-weight: 500;
}

/* 分隔符 */
.sim-separator {
    color: #adb5bd;
    margin: 0 2px;
}

/* 用户ID链接 */
.sim-user-id {
    font-weight: 500;
    color: #0d6efd;
}

.sim-user-id:hover {
    color: #0a58ca;
    text-decoration: underline;
}

/* Solution ID */
.sim-solution-id {
    text-align: center;
    font-size: 0.7rem;
    line-height: 1.1;
}

.sim-solution-id a {
    color: #0d6efd;
    font-weight: 500;
}

.sim-solution-id a:hover {
    color: #0a58ca;
    text-decoration: underline;
}

