/* DaisyUI tooltip overrides */

*,
::before,
::after {
  --tooltip-tail: 7px;
  --tooltip-tail-offset: calc(100% + 6px - var(--tooltip-tail));
  --tooltip-offset: calc(100% + 7px + var(--tooltip-tail, 0px));
  --tooltip-color: black;
  --tooltip-text-color: white;
  /* https://unused-css.com/blog/css-outer-glow/ */
}

.tooltip-bottom:before {
  padding: 0.4rem 0.7rem;
  box-shadow: 0px 0px 0px 1px #28282a;
  z-index: 8;
  pointer-events: none;
}

.tooltip-bottom:after {
  content: url("data:image/svg+xml,%3Csvg width='15' height='7.5' viewBox='0 0 15 7.5' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0,7.5 L7.5,0 L15,7.5' fill='black' stroke='%2328282A' stroke-width='1' stroke-linecap='butt'/%3E%3C/svg%3E");
  transform: translateX(-50%);
  bottom: 0;
  left: 50%;
  right: auto;
  bottom: auto;
  display: block;
  width: 15px;
  height: 7.5px;
  border-color: transparent;
  border-style: none;
  border-width: 0;
  z-index: 9;
  pointer-events: none;
}

.tooltip-top:before {
  padding: 0.4rem 0.7rem;
  box-shadow: 0px 0px 0px 1px #28282a;
  z-index: 8;
  pointer-events: none;
}

.tooltip-top:after {
  content: url("data:image/svg+xml,%3Csvg width='15' height='7.5' viewBox='0 0 15 7.5' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0,0 L7.5,7.5 L15,0' fill='black' stroke='%2328282A' stroke-width='1' stroke-linecap='butt'/%3E%3Cline x1='0' y1='0' x2='15' y2='0' stroke='black' stroke-width='1'/%3E%3C/svg%3E");
  transform: translateX(-50%);
  top: -25px;
  left: 50%;
  right: auto;
  bottom: auto;
  display: block;
  width: 15px;
  height: 7.5px;
  border-color: transparent;
  border-style: none;
  border-width: 0;
  z-index: 9;
  pointer-events: none;
}

.tooltip-right:before {
  padding: 0.4rem 0.7rem;
  box-shadow: 0px 0px 0px 1px #28282a;
  z-index: 8;
  pointer-events: none;
}

.tooltip-right:after {
  content: url("data:image/svg+xml,%3Csvg width='7.5' height='15' viewBox='0 0 7.5 15' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M7.5,0 L0,7.5 L7.5,15' fill='black' stroke='%2328282A' stroke-width='1' stroke-linecap='butt'/%3E%3C/svg%3E");
  transform: translateY(-50%);
  top: 50%;
  left: auto;
  bottom: auto;
  right: -14px;
  display: block;
  width: 7.5px;
  height: 19px;
  border-color: transparent;
  border-style: none;
  border-width: 0;
  z-index: 9;
  pointer-events: none;
}

.tooltip-left:before {
  padding: 0.4rem 0.7rem;
  box-shadow: 0px 0px 0px 1px #28282a;
  z-index: 8;
  pointer-events: none;
}

.tooltip-left:after {
  content: url("data:image/svg+xml,%3Csvg width='7.5' height='15' viewBox='0 0 7.5 15' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0,0 L7.5,7.5 L0,15' fill='black' stroke='%2328282A' stroke-width='1' stroke-linecap='butt'/%3E%3C/svg%3E");
  transform: translateY(-50%);
  top: 50%;
  right: auto;
  bottom: auto;
  left: -14px;
  display: block;
  width: 7.5px;
  height: 25px;
  border-color: transparent;
  border-style: none;
  border-width: 0;
  z-index: 9;
  pointer-events: none;
}

.tooltip.tooltip-open:active:before,
.tooltip:hover:active:before {
  opacity: 0 !important;
  transition-delay: 0ms;
}

.tooltip.tooltip-open:active:after,
.tooltip:hover:active:after {
  opacity: 0 !important;
  transition-delay: 0ms;
}

/* Daisy Toast override */

.toast > * {
  animation: slide-in 0.15s ease-in !important;
}

@keyframes slide-in {
  0%,
  20% {
    transform: translateX(100%);
    opacity: 0;
  }
  80% {
    transform: translateX(-10%);
    opacity: 1;
  }
  90% {
    transform: translateX(8%);
  }
  95% {
    transform: translateX(-5%);
    opacity: 1;
  }
  100% {
    transform: translateX(0);
    opacity: 1;
  }
}

/* If we were using the full version of tailwind, then we could use tailwind.config to customize the Daisy theme. */
/* Colors from: https://oklch.com */

.alert-info {
  --in: 85% 0 19;
  --inc: 0 0 0;
}

.alert-error {
  --er: 0% 0 0;
  --erc: 100% 0 0;
}

/* Form overrides */

.input {
  background-color: transparent;
}

/* Modal override */

dialog button:focus,
dialog button:focus-visible {
  outline: none !important;
}

/* Code overrides — undoing */

.prose :where(code):not(:where([class~='not-prose'] *, pre *)) {
  padding: 0;
  border-radius: 0;
  background-color: transparent;
}

.prose :where(code):not(pre code):not(:where([class~='not-prose'] *)):before,
.prose :where(code):not(pre code):not(:where([class~='not-prose'] *)):after {
  content: '`';
  display: inline-block;
}

:root .prose {
  --tw-prose-pre-bg: #0d0d0d !important;
  --tw-prose-pre-code: #ffffff !important;
}

/* dark_mode overrides */
@media (prefers-color-scheme: dark) {
  :root.light {
    color-scheme: light;
  }
  :root .prose {
    --tw-prose-body: rgb(236, 236, 236);
  }
}
:root.dark {
  :root .prose {
    --tw-prose-body: rgb(236, 236, 236);
  }
}
:root.dark {
  :root .prose {
    --tw-prose-body: rgb(236, 236, 236);
  }
}

:root.dark {
  :where(.menu li:not(.menu-title):not(.disabled) > :not(ul):not(details):not(.menu-title)):not(.active):hover,
  :where(.menu li:not(.menu-title):not(.disabled) > details > summary:not(.menu-title)):not(.active):hover {
    background-color: rgb(59 59 61);
  }
}

:root.dark {
  :where(.menu li:not(.menu-title):not(.disabled) > :not(ul):not(details):not(.menu-title)):not(.active):hover,
  :where(.menu li:not(.menu-title):not(.disabled) > details > summary:not(.menu-title)):not(.active):hover {
    background-color: rgb(59 59 61);
  }
}

/* hide tooltip on touch devices */

@media (hover: none), (hover: on-demand), (-moz-touch-enabled: 1), (pointer: coarse) {
  .tooltip:hover:after,
  .tooltip:hover:active:before,
  .tooltip:hover:active:after,
  .tooltip:hover:before {
    display: none;
  }
}
@import url("https://cdn.jsdelivr.net/npm/quill@2.0.2/dist/quill.snow.css");

/* Custom Quill styling to match the application theme */
.ql-editor {
  min-height: 300px;
  font-family: inherit;
  font-size: 14px;
  line-height: 1.6;
  background-color: #ffffff;
}

.ql-toolbar.ql-snow {
  border-top: 1px solid #e5e7eb;
  border-left: 1px solid #e5e7eb;
  border-right: 1px solid #e5e7eb;
  border-bottom: none;
  border-top-left-radius: 0.75rem;
  border-top-right-radius: 0.75rem;
  background: #f9fafb;
}

.ql-container.ql-snow {
  border-left: 1px solid #e5e7eb;
  border-right: 1px solid #e5e7eb;
  border-bottom: 1px solid #e5e7eb;
  border-top: none;
  border-bottom-left-radius: 0.75rem;
  border-bottom-right-radius: 0.75rem;
}

/* Match the background colors for different tabs */
.bg-green-50 .ql-container.ql-snow {
  background: #f0fdf4;
}

.bg-blue-50 .ql-container.ql-snow {
  background: #eff6ff;
}

.bg-indigo-50 .ql-container.ql-snow {
  background: #eef2ff;
}

.bg-gray-50 .ql-container.ql-snow {
  background: #f9fafb;
}

/* Responsive toolbar */
@media (max-width: 640px) {
  .ql-toolbar.ql-snow .ql-formats {
    margin-right: 8px;
  }
}
.scrollbar-hide::-webkit-scrollbar {
  display: none;
}

.scrollbar-hide::-webkit-scrollbar-track {
  background-color: transparent;
  border-radius: 9999px;
}

.scrollbar-hide::-webkit-scrollbar-thumb {
  visibility: hidden;
  background-color: transparent;
  --tw-border-opacity: 0;
}

.scrollbar-hide {
  /* IE ad Edge */
  -ms-overflow-style: none;

  /* Firefox */
  scrollbar-width: none;
}
/* Sortable drag and drop styles */
.sortable-ghost {
  opacity: 0.5;
  background-color: #f3f4f6 !important;
}

.sortable-chosen {
  background-color: #e5e7eb !important;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.sortable-drag {
  background-color: #ffffff !important;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  transform: rotate(5deg);
}

.drag-handle {
  cursor: grab;
}

.drag-handle:active {
  cursor: grabbing;
}

.assistants-sortable-container {
  min-height: 20px;
}

.no-drag {
  cursor: default !important;
  pointer-events: none;
}

.no-drag .drag-handle {
  display: none !important;
}

/* Ensure elements without assistant IDs cannot be dragged */
div:not([data-assistant-id]) {
  pointer-events: auto;
}

/* Dark mode support */
.dark .sortable-ghost {
  background-color: #374151 !important;
}

.dark .sortable-chosen {
  background-color: #4b5563 !important;
}

.dark .sortable-drag {
  background-color: #1f2937 !important;
}
/*
 * This is a manifest file that'll be compiled into application.css, which will include all the files
 * listed below.
 *
 * Any CSS (and SCSS, if configured) file within this directory, lib/assets/stylesheets, or any plugin's
 * vendor/assets/stylesheets directory can be referenced here using a relative path.
 *
 * You're free to add application-wide styles to this file and they'll appear at the bottom of the
 * compiled file so the styles you add here take precedence over styles defined in any other CSS
 * files in this directory. Styles in this file should be added after the last require_* statement.
 * It is generally better to create a new file per style scope.
 *
 * WARNING: Don't change this to "require_tree ." It will include an uncompiled application.tailwind.css
 *


 */
