/* Term Replacer Modal Styles */
#termReplacer .modal-dialog {
  max-width: 800px;
}

/* Term list styling */
#term-list {
  height: 300px;
  overflow-y: auto;
}

/* Badge sizing */
#term-list .badge {
  font-size: 0.7rem;
  padding: 0.25em 0.4em;
}

/* Button disabled state */
#btn-replace-term:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  #termReplacer .modal-dialog {
    max-width: 95%;
    margin: 0.5rem;
  }
  
  #termReplacer .btn-group {
    flex-direction: column;
  }
  
  #termReplacer .btn-group .btn {
    border-radius: 0.375rem !important;
    margin-bottom: 0.25rem;
  }
  
  #termReplacer .modal-footer .d-flex {
    flex-direction: column;
    width: 100%;
  }
  
  #termReplacer .modal-footer .form-check {
    margin-bottom: 1rem;
  }
}

/* Animation for term addition */
.list-group-item.term-added {
  animation: slideInRight 0.3s ease-out;
}

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

/* Styling for replaced terms in content */
.term-replaced {
  text-decoration: underline;
  text-decoration-style: dotted;
  text-decoration-color: #6c757d;
  text-underline-offset: 2px;
  cursor: help;
  transition: all 0.2s ease;
}

.term-replaced:hover {
  background-color: rgba(13, 110, 253, 0.1);
  text-decoration-color: #0d6efd;
  border-radius: 2px;
  padding: 1px 2px;
}

/* Dark mode support for replaced terms */
[data-bs-theme="dark"] .term-replaced {
  text-decoration-color: #adb5bd;
}

[data-bs-theme="dark"] .term-replaced:hover {
  background-color: rgba(86, 183, 254, 0.15);
  text-decoration-color: #86b7fe;
}
