/* blog content */
.blog-content p {
  margin-bottom: 1.5em;
  /* Adds space after paragraphs */
}

.blog-content h1 {
  font-size: 2em;
  font-weight: bold;
  margin-top: 1em;
  margin-bottom: 0.5em;
}


.blog-content h2 {
  font-size: 1.5em;
  font-weight: bold;
  margin-top: 1em;
  margin-bottom: 0.5em;
}

.blog-content h3 {
  font-size: 1.25em;
  font-weight: bold;
  margin-top: 1em;
  margin-bottom: 0.5em;
}

/* Social Share */
.social-share a {
  margin: 0;
  padding: 0;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: #6B7280;
  margin: 0;
  padding: 0;
}

.social-share svg {
  width: 20px;
  height: 20px;
  background-color: #6B7280;
}

.social-share {
  display: flex;
  justify-content: flex-start;
  gap: 0.75rem;
  /* This creates even spacing */
}

button {
  background-color: #005F5F;
  color: white;
}

.shaddow {
  background-color: #E6F2E6;
  hover: #20b2aa;
}

.btn-main {
  background-color: #005F5F !important;
  color: white !important;
}



/* Icon buttons - for UI elements that should look like icons, not buttons */
.icon-button,
.icon-btn,
.copy-button,
/* .download-button, */
.edit-button,
.toggle-primary-btn,
.copy-prompt,
.btn-close,
.close {
  background-color: transparent !important;
  color: inherit !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* Specific fix for close buttons on messages/alerts */
.close,
.btn-close,
button[aria-label="Close"],
button[data-dismiss="alert"] {
  background-color: transparent !important;
  color: currentColor !important;
  opacity: 0.5;
  transition: opacity 0.15s;
}

.close:hover,
.btn-close:hover,
button[aria-label="Close"]:hover,
button[data-dismiss="alert"]:hover {
  opacity: 0.75;
  color: currentColor !important;
  background-color: transparent !important;
}

/* Ensure icon buttons don't get the main button styling */
button:not(.btn-main):not([type="submit"]) {
  background-color: transparent;
  color: inherit;
}

/* Override any conflicting styles for specific button types */
.copy-button,
.download-button,
.edit-button {
  background-color: transparent !important;
  color: #6B7280 !important;
  /* gray-500 */
  padding: 0.5rem !important;
  border-radius: 0.5rem !important;
  transition: all 0.2s ease;
}

.copy-button:hover,
.download-button:hover,
.edit-button:hover {
  background-color: rgba(0, 0, 0, 0.05) !important;
  color: #374151 !important;
  /* gray-700 */
}

/* Fix for Django messages close button */
.messages .close,
.alert .close,
.alert .btn-close {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  background: none !important;
  border: none !important;
  color: currentColor !important;
  opacity: 0.7;
  font-size: 1.25rem;
  line-height: 1;
  padding: 0.5rem !important;
}

.messages .close:hover,
.alert .close:hover,
.alert .btn-close:hover {
  opacity: 1;
  background: none !important;
}


/* Default styling for tab buttons */
.tab-button {
  @apply border-transparent text-gray-500 hover:text-gray-700 hover:border-gray-300 border-b-2 py-2 px-1 text-sm font-medium;
}

/* Active tab styling - this will override the default when a tab is active */
.tab-button.active {
  @apply border-purple-600 text-purple-600;
}



/* static/css/content_style.css */
.content-display h1,
.content-display h2,
.content-display h3,
.content-display h4,
.content-display h5,
.content-display h6 {
  margin-top: 1.5em;
  margin-bottom: 0.5em;
  font-weight: 600;
  color: #333;
}

.content-display h1 {
  font-size: 1.75rem;
  border-bottom: 1px solid #eee;
  padding-bottom: 0.3em;
}

.content-display h2 {
  font-size: 1.5rem;
}

.content-display h3 {
  font-size: 1.25rem;
}

.content-display p {
  margin-bottom: 1.25em;
  line-height: 1.625;
}

.content-display ul,
.content-display ol {
  margin-top: 0.5em;
  margin-bottom: 1em;
  padding-left: 1.5em;
}

.content-display li {
  margin-bottom: 0.5em;
}

.content-display pre {
  background-color: #f6f8fa;
  border-radius: 6px;
  padding: 16px;
  overflow: auto;
  margin-bottom: 1em;
}

.content-display blockquote {
  border-left: 4px solid #ddd;
  padding-left: 1em;
  color: #555;
  font-style: italic;
}

/* Fix checkbox alignment in content cards */
.content-card .flex.items-center input[type="checkbox"] {
  margin-top: 0;
  margin-bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Ensure consistent height for all control elements */
.content-card .flex.items-center>* {
  display: flex;
  align-items: center;
  height: 24px;
  /* Match the height of the SVG icons */
}

/* Improved hover effect for selection */
.content-card.ring-2 {
  transition: all 0.2s ease-in-out;
}

/* Make checkbox more visible */
.content-checkbox {
  cursor: pointer;
  border: 1.5px solid #d1d5db;
}

/* Focus styles for checkbox */
.content-checkbox:focus {
  outline: 2px solid rgba(79, 70, 229, 0.2);
  outline-offset: 2px;
}

/* checkboxes and outlines to match site theme */
.content-checkbox:checked {
  accent-color: #005F5F;
  /* adjust this to match your main color */
}

/* Add to the existing CSS for the ring styling */
.content-card.ring-2.ring-main {
  --tw-ring-color: #005F5F;
  /*  adjust this to match your main color */
  --tw-ring-opacity: 0.6;
  transition: all 0.2s ease-in-out;
}
/* Complete color overrides for teal theme */
.bg-purple-700,
.bg-purple-600,
.bg-purple-800 {
  background-color: #005F5F !important;
}

.hover\:bg-purple-800:hover,
.hover\:bg-purple-700:hover {
  background-color: #004040 !important;
}

.text-purple-600,
.text-teal-800,
.text-teal-800,
.text-purple-700,
.text-purple-500 {
  color: #005F5F !important;
}

.hover\:text-purple-800:hover,
.hover\:text-purple-700:hover {
  color: #004040 !important;
}

.border-purple-600,
.border-purple-500,
.border-teal-800
.border-teal-700 {
  border-color: #005F5F !important;
}

.ring-purple-500,
.focus\:ring-purple-500:focus,
.focus\:ring-purple-300:focus {
  --tw-ring-color: #005F5F !important;
}

/* Dark mode purple overrides */
.dark\:text-purple-500,
.dark\:hover\:text-purple-700:hover {
  color: #009292 !important;
}

.dark\:bg-purple-600 {
  background-color: #005F5F !important;
}

.dark\:hover\:bg-teal-800:hover {
  background-color: #004040 !important;
}