/* Activity Dashboard */
.activity-dashboard {
  background: linear-gradient(135deg, #f5f7fa 0%, #e4e9f2 100%);
  padding: 40px 0;
  position: relative;
}

.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
}

.dashboard-header h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--color-dark);
  margin: 0;
}

.live-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  background-color: rgba(255, 65, 65, 0.1);
  color: #ff4141;
  font-size: 14px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 50px;
}

.pulse-dot {
  width: 12px;
  height: 12px;
  background-color: #ff4141;
  border-radius: 50%;
  position: relative;
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(255, 65, 65, 0.7);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 6px rgba(255, 65, 65, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(255, 65, 65, 0);
  }
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-bottom: 25px;
}

.dashboard-card {
  background-color: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.card-header {
  padding: 15px 20px;
  background: rgba(0, 0, 0, 0.02);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.card-header h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
}

.counter {
  background: var(--color-primary);
  color: #fff;
  font-weight: bold;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 14px;
}

.processing-list,
.completed-list {
  padding: 15px;
  flex-grow: 1;
  overflow-y: auto;
  max-height: 250px;
}

.activity-item {
  padding: 10px;
  margin-bottom: 10px;
  border-radius: 8px;
  background: #f9f9f9;
  position: relative;
  transition: all 0.3s ease;
}

.activity-item:last-child {
  margin-bottom: 0;
}

.activity-item.new {
  animation: fadeIn 0.5s ease;
}

.activity-item.premium {
  background: rgba(255, 215, 0, 0.1);
  border-left: 3px solid #ffd700;
}

.activity-item .filename {
  font-weight: 500;
  display: block;
  margin-bottom: 4px;
  color: var(--color-dark);
}

.activity-item .details {
  font-size: 12px;
  color: #666;
  display: flex;
  justify-content: space-between;
}

.activity-item .status {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
}

.activity-item .premium-badge {
  font-size: 10px;
  background: linear-gradient(45deg, #ffd700, #ffa500);
  color: #000;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: bold;
}

.progress-micro {
  height: 4px;
  background: #eee;
  border-radius: 2px;
  margin-top: 8px;
  overflow: hidden;
}

.progress-micro .bar {
  height: 100%;
  background: linear-gradient(90deg, var(--color-primary), #4da6ff);
  transition: width 0.5s ease;
}

.queue-stats {
  display: flex;
  gap: 15px;
}

.queue-stat {
  display: flex;
  flex-direction: column;
  font-size: 12px;
}

.queue-stat .label {
  color: #666;
}

.queue-stat .value {
  font-weight: 600;
  color: var(--color-dark);
}

.comparison-table {
  padding: 15px;
}

.table-header,
.table-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  padding: 10px;
}

.table-header {
  font-weight: 600;
  font-size: 13px;
  color: #666;
  border-bottom: 1px solid #eee;
}

.table-row {
  font-size: 14px;
  border-bottom: 1px solid #f5f5f5;
}

.table-row.premium {
  background: rgba(255, 215, 0, 0.05);
}

.dashboard-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  background: rgba(0, 0, 0, 0.02);
  border-radius: 12px;
}

.dashboard-footer p {
  margin: 0;
  font-size: 14px;
  color: #666;
}

.btn-sm {
  padding: 8px 16px;
  font-size: 14px;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes highlight {
  0% {
    background-color: rgba(var(--color-primary-rgb), 0.2);
  }
  100% {
    background-color: #f9f9f9;
  }
}

@media (max-width: 768px) {
  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .queue-stats {
    flex-direction: column;
    gap: 5px;
  }

  .dashboard-footer {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }
}
