/* Status badges */
.status-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
}
.status-new    { background: #fef3c7; color: #92400e; }
.status-open   { background: #dbeafe; color: #1e40af; }
.status-pending { background: #ede9fe; color: #5b21b6; }
.status-solved { background: #d1fae5; color: #065f46; }
.status-closed { background: #f3f4f6; color: #6b7280; }

/* Priority badges */
.priority-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 9999px;
  font-size: 0.75rem;
}
.priority-urgent { background: #fee2e2; color: #b91c1c; }
.priority-high   { background: #ffedd5; color: #c2410c; }
.priority-normal { background: #f3f4f6; color: #374151; }
.priority-low    { background: #f9fafb; color: #9ca3af; }

/* Stats bar badges */
.stat-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 9999px;
  font-size: 0.75rem;
  border: 1px solid;
}
.stat-badge.new     { background: #fef3c7; border-color: #f59e0b; color: #92400e; }
.stat-badge.open    { background: #dbeafe; border-color: #3b82f6; color: #1e40af; }
.stat-badge.pending { background: #ede9fe; border-color: #8b5cf6; color: #5b21b6; }
.stat-badge.solved  { background: #d1fae5; border-color: #10b981; color: #065f46; }

/* Tab buttons */
.tab-btn {
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 500;
  border: 1px solid #e5e7eb;
  background: white;
  color: #6b7280;
  cursor: pointer;
  transition: all 0.15s;
}
.tab-btn:hover { background: #f5f3ff; border-color: #6366f1; color: #6366f1; }
.tab-btn.active { background: #6366f1; border-color: #6366f1; color: white; }

/* Comment bubbles */
.comment-customer {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px 12px 12px 4px;
  padding: 12px 16px;
}
.comment-agent {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 12px 12px 4px 12px;
  padding: 12px 16px;
}
.comment-internal {
  background: #fffbeb;
  border: 1px dashed #fbbf24;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 0.8rem;
  color: #92400e;
}

/* Suggestion cards */
.suggestion-card {
  border: 2px solid #e5e7eb;
  border-radius: 10px;
  padding: 12px 14px;
  cursor: pointer;
  transition: all 0.15s;
}
.suggestion-card:hover { border-color: #6366f1; background: #f5f3ff; }
.suggestion-card.selected { border-color: #6366f1; background: #eff6ff; }

/* Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
}
.modal-overlay.hidden { display: none; }
.modal-box {
  background: white;
  border-radius: 16px;
  padding: 24px;
  max-width: 440px;
  width: 100%;
  margin: 16px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}

/* Toast */
.toast {
  padding: 12px 20px;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 500;
  color: white;
  animation: slideIn 0.3s ease;
  min-width: 200px;
  max-width: 350px;
}
.toast-success { background: #10b981; }
.toast-error   { background: #ef4444; }
.toast-info    { background: #6366f1; }

@keyframes slideIn {
  from { transform: translateX(100%); opacity: 0; }
  to   { transform: translateX(0); opacity: 1; }
}

/* Table row hover */
tbody tr:hover { background: #f8f9ff; cursor: pointer; }
tbody tr { border-bottom: 1px solid #f1f5f9; transition: background 0.1s; }

/* Scrollbar */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #94a3b8; }
