
/* --- Bulk Progress Card (Redesign) --- */
.bulk-progress-card {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 320px;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.2);
  z-index: 1060;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  animation: slideUpFade 0.3s ease-out;
  border: 1px solid rgba(0,0,0,0.05);
}

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

[data-theme="dark"] .bulk-progress-card {
  background: #1e1e24;
  border-color: rgba(255,255,255,0.1);
  box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.6);
}

/* Header */
.bulk-progress-header {
  background: linear-gradient(135deg, #4f46e5 0%, #3b82f6 100%);
  color: white;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: grab;
}

.bulk-progress-header:active {
  cursor: grabbing;
}

.bulk-progress-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.3px;
}

/* Spinner */
.bulk-spinner {
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top: 2px solid #fff;
  border-radius: 50%;
  animation: bulk-spin 1s linear infinite;
}

@keyframes bulk-spin { to { transform: rotate(360deg); } }

.bulk-progress-actions .action-icon {
  background: rgba(255,255,255,0.2);
  border: none;
  color: white;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  cursor: pointer;
  transition: all 0.2s;
}

.bulk-progress-actions .action-icon:hover {
  background: rgba(255,255,255,0.35);
}

/* Body */
.bulk-progress-body {
  padding: 20px;
}

.progress-section {
  margin-bottom: 20px;
}

.progress-info {
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px;
  font-size: 12px;
}

.progress-label {
  color: #64748b;
  font-weight: 500;
}

[data-theme="dark"] .progress-label { color: #94a3b8; }

.progress-text {
  font-weight: 700;
  color: #0f172a;
}

[data-theme="dark"] .progress-text { color: #f8fafc; }

.progress-track {
  height: 6px;
  background: #e2e8f0;
  border-radius: 999px;
  overflow: hidden;
}

[data-theme="dark"] .progress-track { background: #334155; }

.bulk-progress-card .progress-bar {
  height: 100%;
  background: #3b82f6;
  border-radius: 999px;
  transition: width 0.3s ease;
}

/* Red bar when processing cancel */
.bulk-progress-card .progress-bar.bg-danger {
  background: #ef4444 !important;
}

/* Stats Grid */
.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 20px;
}

.stat-box {
  background: #f8fafc;
  border-radius: 10px;
  padding: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid #e2e8f0;
}

[data-theme="dark"] .stat-box {
  background: #0f172a;
  border-color: #334155;
}

.stat-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

[data-theme="dark"] .stat-icon { background: #1e293b; }

.stat-box.success .stat-icon {
  color: #10b981;
  background: rgba(16, 185, 129, 0.1);
}

.stat-box.error .stat-icon {
  color: #ef4444;
  background: rgba(239, 68, 68, 0.1);
}

.stat-content {
  display: flex;
  flex-direction: column;
}

.stat-value {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.1;
  color: #0f172a;
}
[data-theme="dark"] .stat-value { color: #f8fafc; }

.stat-label {
  font-size: 10px;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 2px;
}

/* Footer Cancel Button */
.btn-cancel-send {
  width: 100%;
  border: 1px solid #fee2e2;
  background: #fff;
  color: #ef4444;
  padding: 8px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-cancel-send:hover {
  background: #fef2f2;
  border-color: #fecaca;
}

[data-theme="dark"] .btn-cancel-send {
  background: transparent;
  border-color: rgba(239, 68, 68, 0.3);
  color: #ef4444;
}

[data-theme="dark"] .btn-cancel-send:hover {
  background: rgba(239, 68, 68, 0.1);
}
