.job-stat-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    transition: border-color 0.3s, background 0.3s;
}

.job-stat-card.has-items {
    border-color: #fbbf24;
    background: #fffbeb;
}

.job-stat-card.processing {
    border-color: #3b82f6;
    background: #eff6ff;
}

.job-stat-card.has-failed {
    border-color: #ef4444;
    background: #fef2f2;
}

.job-stat-value {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
    color: #111827;
}

.job-stat-label {
    font-size: 0.8rem;
    color: #6b7280;
    margin-top: 4px;
}

.job-class-name {
    font-family: monospace;
    font-size: 0.85rem;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.job-exception {
    font-size: 0.8rem;
    color: #dc2626;
    max-width: 300px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    cursor: help;
}

.btn-xs {
    padding: 2px 8px;
    font-size: 0.75rem;
    line-height: 1.4;
}

/* ライブ監視インジケータ */
.job-polling-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    color: #16a34a;
}

.job-polling-status.error {
    color: #dc2626;
}

.job-polling-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #16a34a;
    animation: pulse-dot 2s ease-in-out infinite;
}

.job-polling-status.error .job-polling-dot {
    background: #dc2626;
    animation: none;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: 0.4; transform: scale(0.7); }
}

/* トースト通知 */
.job-toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    padding: 10px 18px;
    border-radius: 6px;
    font-size: 0.875rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    animation: slide-up 0.2s ease;
}

.job-toast-success {
    background: #16a34a;
    color: #fff;
}

.job-toast-error {
    background: #dc2626;
    color: #fff;
}

@keyframes slide-up {
    from { transform: translateY(16px); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
}
