/* Mobile customization and deletion styles */
.longpress-active {
  transform: scale(1.05);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.delete-btn-touched {
  opacity: 1 !important;
  transform: scale(1.5);
  width: 30px !important;
  height: 30px !important;
  background-color: rgba(255, 0, 0, 0.9) !important;
  z-index: 100;
}

.mobile-delete-confirmation {
  background-color: rgba(0, 0, 0, 0.7);
  padding: 10px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  z-index: 1000;
  animation: fadeIn 0.2s ease;
  width: 180px;
}

.mobile-delete-content {
  background-color: white;
  padding: 15px;
  border-radius: 8px;
  text-align: center;
}

.mobile-delete-content p {
  margin: 0 0 10px 0;
  font-weight: bold;
  color: #333;
}

.mobile-delete-buttons {
  display: flex;
  justify-content: space-around;
  margin-top: 10px;
}

.mobile-delete-confirm {
  background-color: #e74c3c;
  color: white;
  border: none;
  padding: 8px 15px;
  border-radius: 5px;
  font-weight: bold;
}

.mobile-delete-cancel {
  background-color: #eee;
  color: #333;
  border: none;
  padding: 8px 15px;
  border-radius: 5px;
}

/* Make delete button more visible on mobile */
@media (max-width: 768px) {
  .object .delete-btn {
    width: 24px;
    height: 24px;
    font-size: 16px;
    opacity: 0.8;
  }
  
  .object:hover .delete-btn {
    opacity: 1;
  }
  
  /* Simplified toolbars for mobile */
  .text-toolbar,
  .button-toolbar,
  .image-toolbar {
    max-width: 90vw;
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .toolbar-group {
    margin-bottom: 5px;
  }
}