/* ═══════════════════════════════════════════════════════════════════
   SIMPLE QUEUE STYLES v1.0
   Clean, minimal queue UI for driver messages
   ═══════════════════════════════════════════════════════════════════ */

/* ═══════════════════════════════════════════════════════════════════
   🔧 ANTI-FLICKER CSS v2 - Override animations
   ═══════════════════════════════════════════════════════════════════ */
#simpleQueueContainer *,
#simpleQueueContainer *::before,
#simpleQueueContainer *::after {
  animation: none !important;
  transition: none !important;
}

/* Container */
#simpleQueueContainer {
  background: rgba(15, 23, 42, 0.95);
  border-radius: 12px;
  padding: 16px;
  margin: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Header */
.sq-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sq-title {
  font-size: 16px;
  font-weight: 700;
  color: white;
}

.sq-stats {
  display: flex;
  gap: 12px;
}

.sq-stat {
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.1);
}

.sq-stat.sq-pending { color: #94a3b8; }
.sq-stat.sq-sent { color: #22c55e; background: rgba(34, 197, 94, 0.15); }
.sq-stat.sq-failed { color: #ef4444; background: rgba(239, 68, 68, 0.15); }

/* Controls */
.sq-controls {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.sq-btn {
  padding: 8px 16px;
  border: none;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 6px;
}

.sq-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.1);
}

.sq-btn:active {
  transform: translateY(0);
}

.sq-btn.sq-start {
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: white;
}

.sq-btn.sq-pause {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: white;
}

.sq-btn.sq-resume {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  color: white;
}

.sq-btn.sq-skip {
  background: rgba(100, 116, 139, 0.3);
  color: #94a3b8;
}

.sq-btn.sq-stop {
  background: rgba(239, 68, 68, 0.2);
  color: #ef4444;
}

.sq-btn.sq-clear {
  background: rgba(255, 255, 255, 0.1);
  color: #94a3b8;
}

/* Queue List */
.sq-list {
  max-height: 400px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sq-list::-webkit-scrollbar {
  width: 6px;
}

.sq-list::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 3px;
}

/* Empty State */
.sq-empty {
  text-align: center;
  padding: 32px 16px;
  color: #64748b;
}

.sq-empty-icon {
  font-size: 48px;
  margin-bottom: 12px;
  opacity: 0.5;
}

.sq-empty-text {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 4px;
}

.sq-empty-hint {
  font-size: 12px;
  opacity: 0.7;
}

/* Queue Item */
.sq-item {
  position: relative;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: 12px 16px;
  border-left: 4px solid #94a3b8;
  transition: all 0.2s;
}

.sq-item:hover {
  background: rgba(255, 255, 255, 0.08);
}

.sq-item.sq-sending {
  background: rgba(251, 191, 36, 0.1);
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

.sq-item.sq-sent {
  opacity: 0.6;
}

.sq-item.sq-skipped {
  opacity: 0.4;
}

.sq-item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.sq-item-num {
  font-size: 11px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.1);
  padding: 2px 8px;
  border-radius: 10px;
}

.sq-item-status {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.sq-item-company {
  font-size: 14px;
  font-weight: 700;
  color: white;
  margin-bottom: 4px;
}

.sq-item-details {
  display: flex;
  gap: 16px;
  font-size: 12px;
  color: #94a3b8;
}

.sq-item-order,
.sq-item-contact {
  display: flex;
  align-items: center;
  gap: 4px;
}

.sq-item-remove {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 20px;
  height: 20px;
  border: none;
  border-radius: 50%;
  background: rgba(239, 68, 68, 0.2);
  color: #ef4444;
  font-size: 12px;
  cursor: pointer;
  opacity: 0;
  transition: all 0.2s;
}

.sq-item:hover .sq-item-remove {
  opacity: 1;
}

.sq-item-remove:hover {
  background: #ef4444;
  color: white;
}

.sq-item-error {
  font-size: 11px;
  color: #ef4444;
  margin-top: 6px;
  padding: 4px 8px;
  background: rgba(239, 68, 68, 0.1);
  border-radius: 4px;
}

/* Progress indicator for current item */
.sq-item.sq-sending::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, #fbbf24, #f59e0b);
  border-radius: 0 0 4px 4px;
  animation: progress 2s linear infinite;
}

@keyframes progress {
  0% { width: 0%; }
  100% { width: 100%; }
}
