.j3-edit-mode-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  padding: 12px 24px;
  background-color: rgba(0, 0, 0, 0.25);
  border: 2px solid white;
  border-radius: 2px;
  color: white;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.j3-edit-mode-btn:hover {
  background-color: rgba(0, 0, 0, 0.35);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.j3-edit-mode-btn:active {
  transform: scale(0.98);
}

.j3-edit-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  margin-left: 8px;
  background-color: #f5f5f5;
  border: 2px solid #759849;
  border-radius: 50%;
  font-size: 18px;
  color: #759849;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  user-select: none;
  font-weight: bold;
}

.j3-edit-icon:hover {
  background-color: #e8f4e1;
  box-shadow: 0 2px 8px rgba(117, 152, 73, 0.3);
  transform: scale(1.1);
}

.j3-edit-icon:active {
  transform: scale(0.95);
}

body.j3-edit-mode-enabled [data-editable] .j3-edit-icon,
body.j3-edit-mode-enabled [data-ck] .j3-edit-icon {
  opacity: 1;
}

.j3-edit-input {
  width: 100%;
  padding: 8px 10px;
  border: 2px solid #759849;
  border-radius: 4px;
  font-size: 14px;
  font-family: inherit;
  box-sizing: border-box;
}

.j3-edit-input:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(117, 152, 73, 0.2);
  border-color: #5f7a3a;
}

[data-editable].j3-editing,
[data-ck].j3-editing {
  background-color: #fafafa;
  box-shadow: inset 0 0 0 2px #759849;
  padding: 8px !important;
  border-radius: 4px;
}

.j3-toast-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9999;
}

.j3-toast {
  padding: 12px 16px;
  margin-bottom: 8px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  animation: j3SlideIn 0.3s ease;
}

@keyframes j3SlideIn {
  from { transform: translateX(400px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

.j3-toast-success { background-color: #4caf50; color: white; }
.j3-toast-error { background-color: #f44336; color: white; }

@media (prefers-color-scheme: dark) {
  .j3-edit-icon {
    background-color: #2a2a2a;
    border-color: #b8d4a0;
    color: #b8d4a0;
  }

  .j3-edit-icon:hover {
    background-color: #3a3a3a;
    box-shadow: 0 2px 8px rgba(184, 212, 160, 0.3);
  }
}
