/* Copiloto de Conversación: Notificador predictivo tipo diccionario en tiempo real (sin modales) */
.chat-copilot {
  padding: 4px 10px;
  background: rgba(245, 247, 250, 0.95);
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  font-size: 0.85rem;
  transition: all 0.2s ease-in-out;
  min-width: 0;
}

.copilot-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.copilot-toggle-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  user-select: none;
  font-weight: 500;
  color: #374151;
  font-size: 0.8rem;
}

.copilot-toggle-label input[type="checkbox"] {
  cursor: pointer;
  width: 14px;
  height: 14px;
  margin: 0;
  accent-color: #2563eb;
}

.copilot-status {
  font-size: 0.75rem;
  color: #6b7280;
  font-style: italic;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.copilot-suggestion-card {
  margin-top: 6px;
  padding: 8px 12px;
  background: #ffffff;
  border: 1px solid #d1d5db;
  border-left: 3px solid #2563eb;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
  max-height: 22vh;
  overflow-y: auto;
  animation: copilotFadeIn 0.25s ease-out;
}

.copilot-suggestion-card[hidden] {
  display: none !important;
}

.copilot-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  color: #2563eb;
  background: #eff6ff;
  padding: 2px 6px;
  border-radius: 4px;
  margin-bottom: 4px;
}

.copilot-text {
  margin: 4px 0 8px 0;
  font-size: 0.875rem;
  color: #1f2937;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  line-height: 1.4;
}

.copilot-actions {
  display: flex;
  gap: 8px;
}

.btn-copilot-use {
  padding: 4px 10px;
  font-size: 0.8rem;
  font-weight: 600;
  background-color: #2563eb;
  color: #ffffff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.15s;
}

.btn-copilot-use:hover {
  background-color: #1d4ed8;
}

.btn-copilot-dismiss {
  padding: 4px 8px;
  font-size: 0.8rem;
  background-color: #f3f4f6;
  color: #4b5563;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.15s;
}

.btn-copilot-dismiss:hover {
  background-color: #e5e7eb;
}

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