/* ── GPU Pods list (RunPod-style table) ── */

.gpu-pods-table-wrap {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
}

.gpu-pods-table {
    width: 100%;
    margin: 0;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.gpu-pods-table thead th {
    padding: 0.75rem 1rem;
    font-weight: 600;
    font-size: 0.8125rem;
    color: var(--text-secondary);
    background: #fafafa;
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
}

.gpu-pods-table tbody td {
    padding: 0.85rem 1rem;
    border-bottom: 1px solid var(--border-light);
    vertical-align: middle;
}

.gpu-pods-table tbody tr:last-child td {
    border-bottom: 0;
}

.gpu-pods-table tbody tr:hover {
    background: #fafbfc;
}

.gpu-pod-name-cell {
    min-width: 180px;
}

.gpu-pod-name-row {
    display: flex;
    align-items: center;
    gap: 0.55rem;
}

.gpu-pod-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.gpu-pod-status-dot--running { background: #22c55e; }
.gpu-pod-status-dot--starting,
.gpu-pod-status-dot--provisioning { background: #eab308; }
.gpu-pod-status-dot--exited { background: #9ca3af; }
.gpu-pod-status-dot--terminated { background: #6b7280; }
.gpu-pod-status-dot--error { background: #ef4444; }

.gpu-pod-name-link {
    font-weight: 600;
    color: var(--text-primary);
    text-decoration: none;
}

.gpu-pod-name-link:hover {
    color: var(--accent, #f55036);
}

.gpu-pod-name-sub {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.1rem;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

.gpu-pod-metrics {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.gpu-pod-metric-ring {
    position: relative;
    width: 44px;
    height: 44px;
    flex-shrink: 0;
}

.gpu-pod-metric-ring svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.gpu-pod-metric-ring__track {
    fill: none;
    stroke: #e5e7eb;
    stroke-width: 3;
}

.gpu-pod-metric-ring__fill {
    fill: none;
    stroke: #6366f1;
    stroke-width: 3;
    stroke-linecap: round;
    transition: stroke-dasharray 0.3s ease;
}

.gpu-pod-metric-ring__fill--idle {
    stroke: #d1d5db;
}

.gpu-pod-metric-ring__icon {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    color: var(--text-muted);
    pointer-events: none;
}

.gpu-pod-metric-ring__value {
    position: absolute;
    left: 50%;
    bottom: -1px;
    transform: translateX(-50%);
    font-size: 0.625rem;
    font-weight: 700;
    color: var(--text-secondary);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.gpu-pod-metric-ring__value--dash {
    font-weight: 500;
    color: var(--text-muted);
}

.gpu-pod-compute {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    white-space: nowrap;
}

.gpu-pod-compute i {
    font-size: 1rem;
    color: var(--text-muted);
}

.gpu-pod-cost {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.35rem;
    font-variant-numeric: tabular-nums;
    font-weight: 600;
    white-space: nowrap;
}

.gpu-pod-cost small {
    font-weight: 500;
    color: var(--text-muted);
}

.gpu-pods-table-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.65rem 1rem;
    border-top: 1px solid var(--border);
    background: #fafafa;
    font-size: 0.8125rem;
    color: var(--text-muted);
}

.gpu-pods-table-footer .form-select {
    width: auto;
    min-width: 110px;
    font-size: 0.8125rem;
    padding: 0.25rem 2rem 0.25rem 0.5rem;
}

.gpu-pods-pagination {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.gpu-pods-pagination button {
    border: 1px solid var(--border);
    background: #fff;
    border-radius: 6px;
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    padding: 0;
}

.gpu-pods-pagination button:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

@media (max-width: 991px) {
    .gpu-pods-table-wrap {
        overflow-x: auto;
    }

    .gpu-pods-table {
        min-width: 920px;
    }
}
