/* Custom Styles */

.templates-container {
  max-height: 300px;
  overflow-y: auto;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  background-color: #f9f9f9;
}

.template-category {
  margin-bottom: 15px;
}

.template-category-title {
  font-weight: 600;
  font-size: 0.95rem;
  color: #495057;
  margin-bottom: 8px;
  padding-bottom: 5px;
  border-bottom: 2px solid #e9ecef;
}

.load-template-btn {
  display: block;
  width: 100%;
  padding: 8px 12px;
  margin-bottom: 6px;
  background-color: #fff;
  border: 1px solid #dee2e6;
  border-radius: 4px;
  text-align: left;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s ease;
  color: #212529;
}

.load-template-btn:hover {
  background-color: #e7f3ff;
  border-color: #0d6efd;
  color: #0d6efd;
  font-weight: 500;
}

.load-template-btn:active {
  transform: scale(0.98);
}

/* TinyMCE Custom Styling */
.tox .tox-toolbar {
  background-color: #f8f9fa;
  border-bottom: 1px solid #dee2e6;
}

.tox .tox-tbtn {
  color: #495057;
}

.tox .tox-tbtn:hover {
  background-color: #e9ecef;
}

/* Alert styling */
.alert-success {
  background-color: #d4edda;
  border-color: #c3e6cb;
  color: #155724;
}

.alert-error {
  background-color: #f8d7da;
  border-color: #f5c6cb;
  color: #721c24;
}

/* Form improvements */
.form-control:focus {
  border-color: #0d6efd;
  box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

/* Button improvements */
.btn-primary:hover {
  background-color: #0b5ed7;
  border-color: #0a58ca;
}

.btn-secondary:hover {
  background-color: #5a6268;
  border-color: #545b62;
}

/* Modal improvements */
.modal-header {
  background-color: #f8f9fa;
  border-bottom: 1px solid #dee2e6;
}

.modal-content {
  border: 1px solid #dee2e6;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .templates-container {
    max-height: 250px;
  }
  
  .load-template-btn {
    padding: 6px 10px;
    font-size: 0.85rem;
  }
}
