#agenticwp-jobs-monitor {
    margin-top: 0;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 0;
}

.agenticwp-jobs-controls {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 24px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.agenticwp-jobs-controls label {
    font-weight: 600;
    color: #1d2327;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.agenticwp-jobs-controls input[type="checkbox"] {
    margin: 0;
}

#agenticwp-refresh-jobs {
    margin-left: auto;
}

#agenticwp-jobs-list {
    min-height: 100px;
    max-height: 500px;
    overflow-y: auto;
}

.agenticwp-jobs-loading,
.agenticwp-no-jobs {
    text-align: center;
    padding: 40px 20px;
    color: #646970;
    font-style: italic;
}

.agenticwp-job-card {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    margin-bottom: 16px;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease-in-out;
}

.agenticwp-job-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.agenticwp-job-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.agenticwp-job-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.agenticwp-job-info .agenticwp-job-type {
    font-weight: 600;
    color: #1d2327;
    font-size: 14px;
}

.agenticwp-job-info .agenticwp-job-time {
    font-size: 12px;
    color: #646970;
}

.agenticwp-job-status {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.agenticwp-status-queued {
    background: #f0f6fc;
    color: #0969da;
    border: 1px solid #b6e3ff;
}

.agenticwp-status-starting {
    background: #fff8e1;
    color: #bf8700;
    border: 1px solid #ffd60a;
}

.agenticwp-status-polling {
    background: #e1f5fe;
    color: #0277bd;
    border: 1px solid #4fc3f7;
    animation: pulse 2s infinite;
}

.agenticwp-status-complete {
    background: #e8f5e8;
    color: #00a32a;
    border: 1px solid #68de7c;
}

.agenticwp-status-failed {
    background: #fbeaea;
    color: #d63638;
    border: 1px solid #f87171;
}

.agenticwp-status-cancelled {
    background: #f3f4f6;
    color: #6b7280;
    border: 1px solid #9ca3af;
}

.agenticwp-cancel-job {
    padding: 4px 12px;
    font-size: 12px;
    font-weight: 500;
    border-radius: 4px;
    background: #ffffff;
    border: 1px solid #dc3545;
    color: #dc3545;
    transition: all 0.2s ease;
    cursor: pointer;
    text-transform: none;
    letter-spacing: normal;
}

.agenticwp-cancel-job:hover {
    background: #dc3545;
    border-color: #dc3545;
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(220, 53, 69, 0.25);
}

.agenticwp-cancel-job:active {
    transform: translateY(0);
    box-shadow: 0 1px 3px rgba(220, 53, 69, 0.3);
}

.agenticwp-cancel-job:disabled,
.agenticwp-cancel-job.loading {
    background: #f6f7f7;
    border-color: #c3c4c7;
    color: #8c8f94;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.agenticwp-job-error {
    background: #fbeaea;
    color: #d63638;
    padding: 8px 12px;
    border-radius: 3px;
    border: 1px solid #f87171;
    font-size: 12px;
    margin-top: 8px;
}

@media screen and (max-width: 782px) {
    .agenticwp-jobs-controls {
        flex-wrap: wrap;
        gap: var(--agenticwp-space-md);
    }

    .agenticwp-jobs-controls label {
        flex: 0 0 auto;
    }

    #agenticwp-refresh-jobs,
    #agenticwp-cleanup-jobs {
        flex: 1 1 calc(50% - 10px);
        margin: 0 !important;
    }

    #agenticwp-refresh-jobs {
        order: 10;
    }

    #agenticwp-cleanup-jobs {
        order: 11;
    }

    .agenticwp-job-header {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--agenticwp-space-sm);
    }

    .agenticwp-job-actions {
        align-self: stretch;
        justify-content: space-between;
    }

    .agenticwp-cancel-job {
        padding: var(--agenticwp-space-xs) var(--agenticwp-space-lg);
        font-size: 13px;
    }
}