body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  background-color: #f4f4f8;
  color: #333;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

h1, h2 {
  color: #444;
}

.refresh-control {
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

select, button {
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  background-color: white;
  font-size: 14px;
}

button {
  background-color: #4a6fff;
  color: white;
  border: none;
  cursor: pointer;
}

button:hover {
  background-color: #3a5fee;
}

button:disabled {
  background-color: #a0a0a0;
  cursor: not-allowed;
}

.stats-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.card {
  padding: 20px;
  border-radius: 8px;
  color: white;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.card h3 {
  margin-top: 0;
  font-size: 16px;
  font-weight: normal;
  margin-bottom: 10px;
}

.card p {
  font-size: 36px;
  font-weight: bold;
  margin: 0;
}

.card.completed {
  background-color: #4caf50;
}

.card.processing {
  background-color: #2196f3;
}

.card.pending {
  background-color: #ff9800;
}

.card.failed {
  background-color: #f44336;
}

.chart-container {
  margin-bottom: 30px;
  background-color: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 30px;
  background-color: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

table th, table td {
  padding: 12px 15px;
  text-align: left;
  border-bottom: 1px solid #ddd;
}

table th {
  background-color: #f8f8f8;
  font-weight: bold;
}

.task-filter {
  margin-bottom: 15px;
}

.badge {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 12px;
  font-size: 12px;
  color: white;
}

.badge.completed {
  background-color: #4caf50;
}

.badge.processing {
  background-color: #2196f3;
}

.badge.pending {
  background-color: #ff9800;
}

.badge.failed {
  background-color: #f44336;
}

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  margin-bottom: 30px;
}

#pageInfo {
  font-size: 14px;
}

@media (max-width: 768px) {
  .stats-cards {
    grid-template-columns: repeat(2, 1fr);
  }
  
  table {
    font-size: 14px;
  }
  
  table th, table td {
    padding: 8px 10px;
  }
}

@media (max-width: 480px) {
  .stats-cards {
    grid-template-columns: 1fr;
  }
  
  .container {
    padding: 10px;
  }
}