/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

.modal-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 50;
}

.modal-content {
  background-color: white;
  border-radius: 0.75rem;
  padding: 1.75rem;
  max-width: 32rem;
  width: calc(100% - 2rem);
  position: relative;
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  color: #9ca3af;
  cursor: pointer;
  background: none;
  border: none;
}

.modal-close:hover {
  color: #4b5563;
}

/* Tom Select */
.ts-wrapper.single .ts-control {
  border: 1px solid #d1d5db;
  border-radius: 0.5rem;
  padding: 0.5rem 0.75rem;
  font-size: 0.9375rem;
}

.ts-wrapper.single.focus .ts-control {
  border-color: #6366f1;
  box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.15);
}

.ts-dropdown {
  border-radius: 0.5rem;
  margin-top: 0.25rem;
}

.ts-dropdown .active {
  background-color: #eef2ff;
  color: #4338ca;
}

/* Flatpickr */
.flatpickr-day.selected,
.flatpickr-day.selected:hover {
  background: #6366f1;
  border-color: #6366f1;
}

.flatpickr-day.today:not(.selected) {
  border-color: #6366f1;
}

.markdown p {
  margin-bottom: 0.75em;
}

.markdown p:last-child {
  margin-bottom: 0;
}

.markdown ul,
.markdown ol {
  margin-bottom: 0.75em;
  padding-left: 1.5em;
}

.markdown ul {
  list-style-type: disc;
}

.markdown ol {
  list-style-type: decimal;
}

.markdown li {
  margin-bottom: 0.25em;
}

