/* =====================================================
   MetaLab 管理面板 - 审核管理 CSS
   ===================================================== */

/* TAB 切换 */
.audit-tabs {
    display: flex;
    gap: 0;
    border-bottom: 2px solid #e9ecef;
}

.audit-tab {
    padding: 10px 24px;
    border: none;
    background: none;
    color: #636e72;
    font-size: 14px;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: color .2s, border-color .2s;
}

.audit-tab:hover {
    color: #2d3436;
}

.audit-tab.active {
    color: #0984e3;
    border-bottom-color: #0984e3;
    font-weight: 600;
}

/* 审核面板显隐 */
.audit-panel {
    display: none;
}

.audit-panel.active {
    display: block;
}

/* 头像审核网格 */
.avatar-audit-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 16px;
}

.avatar-audit-card {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.avatar-audit-card .card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: #636e72;
}

.avatar-audit-card .card-header strong {
    color: #2d3436;
}

.avatar-audit-card .avatar-compare {
    display: flex;
    align-items: center;
    gap: 12px;
    justify-content: center;
}

.avatar-audit-card .avatar-compare img {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    object-fit: cover;
    border: 2px solid #e9ecef;
}

.avatar-audit-card .avatar-compare .arrow {
    font-size: 24px;
    color: #0984e3;
    flex-shrink: 0;
}

.avatar-audit-card .card-actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}

/* 表格内长文本截断 */
.col-long-text {
    max-width: 280px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* 审核记录状态标签 */
.audit-status-tag {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.audit-status-tag.pending {
    background: #fff3cd;
    color: #856404;
}

.audit-status-tag.approved {
    background: #d4edda;
    color: #155724;
}

.audit-status-tag.rejected {
    background: #f8d7da;
    color: #721c24;
}

/* 全屏加载 */
.table-loading-full {
    text-align: center;
    padding: 40px;
    color: #636e72;
    grid-column: 1 / -1;
}

/* 拒绝弹窗 */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
}

.modal-box {
    background: #fff;
    border-radius: 12px;
    padding: 28px;
    width: 420px;
    max-width: 90vw;
    box-shadow: 0 8px 30px rgba(0,0,0,.15);
}

.modal-box h3 {
    margin: 0 0 8px;
    font-size: 18px;
}

.modal-box p {
    color: #636e72;
    margin: 0 0 12px;
    font-size: 14px;
}

.modal-box textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #dcdde1;
    border-radius: 6px;
    font-size: 14px;
    resize: vertical;
    box-sizing: border-box;
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 16px;
}
