/* ============================================================
 * 执行中任务 Modal (RunningTasksModal)
 * ============================================================ */

.rtm-modal-content {
    border: none;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 24px 60px -12px rgba(15, 23, 42, 0.4),
                0 8px 20px -8px rgba(124, 58, 237, 0.18);
}

.rtm-modal-header {
    border-bottom: 1px solid #f0f0f0;
    padding: 16px 20px;
    background: linear-gradient(180deg, #faf9ff 0%, #ffffff 100%);
}

.rtm-header-left {
    display: flex;
    align-items: center;
}

/* ---------- 状态条 ---------- */
.rtm-status-bar {
    padding: 14px 20px;
    background: #faf9ff;
    border-bottom: 1px solid #ece9f7;
    flex-shrink: 0;
}

.rtm-status-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.rtm-status-label {
    font-size: 13px;
    color: #6b6b7b;
    font-weight: 500;
}

.rtm-status-value {
    font-weight: 700;
    color: #1f1f2e;
}

.rtm-status-current {
    color: #7C3AED;
    font-size: 22px;
    line-height: 1;
    transition: color 0.2s ease;
}

.rtm-status-divider {
    color: #c4c4d0;
    font-size: 18px;
    margin: 0 4px;
}

.rtm-status-max {
    color: #6b6b7b;
    font-size: 16px;
}

.rtm-progress-track {
    height: 6px;
    background: #ece9f7;
    border-radius: 100px;
    overflow: hidden;
    position: relative;
}

.rtm-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #7C3AED 0%, #a78bfa 100%);
    border-radius: 100px;
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.rtm-progress-bar::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.35) 50%, transparent 100%);
    animation: rtm-shimmer 1.6s linear infinite;
}

@keyframes rtm-shimmer {
    from { transform: translateX(-100%); }
    to   { transform: translateX(100%); }
}

/* ---------- 主体 ---------- */
.rtm-modal-body {
    padding: 0;
    min-height: 200px;
    max-height: 60vh;
    overflow-y: auto;
}

.rtm-modal-footer {
    border-top: 1px solid #f0f0f0;
    padding: 12px 20px;
    background: #fafafa;
}

/* ---------- 列表 ---------- */
.rtm-list {
    padding: 12px;
}

.rtm-item {
    display: grid;
    grid-template-columns: 88px 1fr 18px;
    gap: 12px;
    align-items: center;
    padding: 10px;
    border-radius: 12px;
    background: #ffffff;
    border: 1px solid #f0f0f0;
    margin-bottom: 8px;
    transition: all 0.18s ease;
    color: #1f1f2e;
}

.rtm-item:hover {
    background: #faf9ff;
    border-color: #d6c8f5;
    transform: translateX(2px);
    box-shadow: 0 4px 12px -4px rgba(124, 58, 237, 0.18);
}

.rtm-item:last-child {
    margin-bottom: 0;
}

.rtm-thumb-wrap {
    width: 88px;
    height: 64px;
    border-radius: 8px;
    overflow: hidden;
    background: #f5f5f7;
    flex-shrink: 0;
}

.rtm-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.rtm-thumb-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #c4c4d0;
    font-size: 22px;
}

.rtm-content {
    min-width: 0;
    overflow: hidden;
}

.rtm-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 4px;
}

.rtm-title {
    font-size: 14px;
    font-weight: 600;
    color: #1f1f2e;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
    min-width: 0;
}

.rtm-badge {
    font-size: 11px;
    font-weight: 500;
    padding: 2px 8px;
    border-radius: 6px;
    flex-shrink: 0;
    background: rgba(124, 58, 237, 0.1) !important;
    color: #7C3AED !important;
}

.rtm-meta {
    font-size: 12px;
    color: #9595a5;
    margin-bottom: 2px;
}

.rtm-desc {
    font-size: 12px;
    color: #6b6b7b;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rtm-chevron {
    color: #c4c4d0;
    font-size: 12px;
}

/* ---------- 空态 ---------- */
.rtm-empty {
    text-align: center;
    padding: 48px 20px;
    color: #9595a5;
}

.rtm-empty i {
    font-size: 48px;
    color: #c4c4d0;
    margin-bottom: 12px;
    display: block;
}

.rtm-empty-title {
    font-size: 15px;
    font-weight: 600;
    color: #6b6b7b;
    margin-bottom: 4px;
}

.rtm-empty-sub {
    font-size: 13px;
    color: #9595a5;
}
