/* Estilos personalizados para o sistema de colaboração COP 30 */

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

.cop30-leaf {
  animation: float 3s ease-in-out infinite;
}

.chat-message {
  animation: slideIn 0.3s ease-out;
}

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

.notification-badge {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

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

.user-status-online {
  background-color: #22c55e;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.3);
}

.user-status-away {
  background-color: #f59e0b;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.3);
}

.user-status-offline {
  background-color: #6b7280;
  box-shadow: 0 0 0 3px rgba(107, 114, 128, 0.3);
}

/* Scrollbar personalizada */
.custom-scrollbar::-webkit-scrollbar {
  width: 8px;
}

.custom-scrollbar::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-radius: 4px;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
  background: #16a34a;
  border-radius: 4px;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
  background: #15803d;
}

/* Tema COP 30 */
.cop30-pattern {
  background-image: 
    repeating-linear-gradient(45deg, transparent, transparent 10px, rgba(34, 197, 94, 0.03) 10px, rgba(34, 197, 94, 0.03) 20px);
}

.urgent-card {
  border-left: 4px solid #dc2626;
  animation: urgentPulse 2s ease-in-out infinite;
}

@keyframes urgentPulse {
  0%, 100% {
    box-shadow: 0 4px 6px -1px rgba(220, 38, 38, 0.1), 0 2px 4px -1px rgba(220, 38, 38, 0.06);
  }
  50% {
    box-shadow: 0 10px 15px -3px rgba(220, 38, 38, 0.3), 0 4px 6px -2px rgba(220, 38, 38, 0.2);
  }
}

.file-upload-zone {
  border: 2px dashed #16a34a;
  transition: all 0.3s ease;
}

.file-upload-zone:hover {
  border-color: #15803d;
  background-color: rgba(34, 197, 94, 0.05);
}

.file-upload-zone.dragover {
  border-color: #15803d;
  background-color: rgba(34, 197, 94, 0.1);
  border-style: solid;
}

/* Cores das etiquetas de status - AJUSTE SOLICITADO */
.status-pending {
  background-color: #ec4899 !important;
  color: white !important;
}

.status-in_progress {
  background-color: #eab308 !important;
  color: white !important;
}

.status-resolved {
  background-color: #22c55e !important;
  color: white !important;
}

/* Estilos para mensagens com resposta */
.reply-preview {
  background-color: #e5e7eb;
  border-left: 4px solid #16a34a;
  padding: 10px;
  margin-bottom: 8px;
  border-radius: 6px;
  font-size: 0.875rem;
  color: #374151;
}

.reply-preview strong {
  color: #16a34a;
  font-weight: 600;
}

/* Estilos para anexos */
.attachment-preview {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background-color: #f3f4f6;
  border-radius: 8px;
  margin-top: 8px;
  cursor: pointer;
  transition: all 0.2s;
}

.attachment-preview:hover {
  background-color: #e5e7eb;
  transform: scale(1.02);
}

/* Avatar upload */
.avatar-upload-container {
  position: relative;
  cursor: pointer;
}

.avatar-upload-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.5);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s;
}

.avatar-upload-container:hover .avatar-upload-overlay {
  opacity: 1;
}
