@tailwind base;
@tailwind components;
@tailwind utilities;

.custom-underline::after {
  right: 1.875rem;
  left: -2.5rem;
  top: 4rem;
  bottom: -4rem;
  position: absolute;
  content: "";
  background-color: #6562f0;
  z-index: -1;
  height: 128px;
}

.custom-underline.left-aligned::after {
  right: 1.875rem;
  left: -2.5rem;
  top: 4.2rem;
  bottom: -4.2rem;
  position: absolute;
  content: "";
  background-color: #6562f0;
  z-index: -1;
  height: 72px;
}

.mobile.custom-underline.left-aligned::after {
  right: 1.875rem;
  left: -0.8rem;
  top: 2.2rem;
  bottom: -2.2rem;
  position: absolute;
  content: "";
  background-color: #6562f0;
  z-index: -1;
  height: 48px;
}

.custom-underline.small::after {
  width: 125%;
}

.custom-underline.medium::after {
  width: 96%;
}

.custom-underline.large::after {
  width: 125%;
}

.blockquote::before {
  content: "“";
  left: 0px;
  top: -0.8125rem;
  font-size: 10rem;
  line-height: 1;
  color: #6562f0;
  @apply font-oswald absolute;
}

code {
  counter-reset: step;
  counter-increment: step 0;
}

code .line::before {
  content: counter(step);
  counter-increment: step;
  width: 1rem;
  margin-right: 0.75rem;
  display: inline-block;
  text-align: right;
  color: rgba(115, 138, 148, 0.4);
}

input[type="range"]::-webkit-slider-thumb {
  border: 5px solid white;
  height: 25px;
  width: 25px;
  border-radius: 100%;
  background: #6562f0;
  cursor: pointer;
  -webkit-appearance: none;
}

input[type="range"]::-moz-range-thumb {
  box-shadow: 1px 1px 1px #000000;
  border: 1px solid #000000;
  height: 30px;
  width: 15px;
  border-radius: 5px;
  background: #ffffff;
  cursor: pointer;
}

input[type="range"]::-ms-thumb {
  margin-top: 1px;
  box-shadow: 1px 1px 1px #000000;
  border: 1px solid #000000;
  height: 30px;
  width: 15px;
  border-radius: 5px;
  background: #ffffff;
  cursor: pointer;
}

@media (max-width: 767px){
  html {overflow-x: hidden;}
}

details ul {
  list-style: disc;
  padding-left: 1.5rem;
}

details ul ul {
  list-style: circle;
  padding-left: 1.5rem;
  margin-top: 0.25rem;
}

/* ==========================================================================
   Flatpickr Modern Theme
   ========================================================================== */

/* Import base flatpickr styles via CDN in layout, then override here */

.flatpickr-calendar {
  background: #ffffff;
  border: none;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(0, 0, 0, 0.05);
  padding: 16px;
  width: 320px;
  font-family: inherit;
  animation: flatpickr-fade-in 0.15s ease-out;
}

@keyframes flatpickr-fade-in {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.flatpickr-calendar.arrowTop::before,
.flatpickr-calendar.arrowTop::after,
.flatpickr-calendar.arrowBottom::before,
.flatpickr-calendar.arrowBottom::after {
  display: none;
}

/* Month navigation */
.flatpickr-months {
  padding-bottom: 8px;
  margin-bottom: 8px;
  border-bottom: 1px solid #f3f4f6;
}

.flatpickr-months .flatpickr-month {
  height: 36px;
}

.flatpickr-current-month {
  font-size: 15px;
  font-weight: 600;
  color: #111827;
  padding-top: 6px;
}

.flatpickr-current-month .flatpickr-monthDropdown-months {
  font-weight: 600;
  background: transparent;
  border: none;
  appearance: none;
  padding-right: 4px;
}

.flatpickr-current-month input.cur-year {
  font-weight: 600;
  background: transparent;
}

.flatpickr-months .flatpickr-prev-month,
.flatpickr-months .flatpickr-next-month {
  padding: 8px;
  border-radius: 8px;
  transition: background-color 0.15s ease;
  top: 8px;
}

.flatpickr-months .flatpickr-prev-month:hover,
.flatpickr-months .flatpickr-next-month:hover {
  background-color: #f3f4f6;
}

.flatpickr-months .flatpickr-prev-month svg,
.flatpickr-months .flatpickr-next-month svg {
  fill: #6b7280;
  width: 12px;
  height: 12px;
}

/* Weekday headers */
.flatpickr-weekdays {
  margin-bottom: 4px;
}

.flatpickr-weekday {
  font-size: 11px;
  font-weight: 500;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Day cells */
.flatpickr-days {
  width: 100%;
}

.dayContainer {
  width: 100%;
  min-width: 100%;
  max-width: 100%;
  gap: 2px;
}

.flatpickr-day {
  font-size: 13px;
  font-weight: 500;
  color: #374151;
  border-radius: 8px;
  height: 36px;
  line-height: 36px;
  max-width: 40px;
  border: none;
  transition: all 0.15s ease;
}

.flatpickr-day:hover {
  background-color: #f3f4f6;
  border: none;
}

.flatpickr-day.today {
  border: 2px solid #6562f0;
  background: transparent;
  color: #6562f0;
}

.flatpickr-day.today:hover {
  background-color: #ede9fe;
  border-color: #6562f0;
  color: #6562f0;
}

.flatpickr-day.selected,
.flatpickr-day.selected:hover,
.flatpickr-day.selected:focus {
  background: #6562f0;
  border-color: #6562f0;
  color: #ffffff;
}

.flatpickr-day.prevMonthDay,
.flatpickr-day.nextMonthDay {
  color: #d1d5db;
}

.flatpickr-day.prevMonthDay:hover,
.flatpickr-day.nextMonthDay:hover {
  background-color: #f9fafb;
}

.flatpickr-day.disabled,
.flatpickr-day.disabled:hover {
  color: #e5e7eb;
  background: transparent;
}

/* Time picker */
.flatpickr-time {
  margin-top: 12px;
  padding-top: 12px;
  padding-bottom: 4px;
  border-top: 1px solid #f3f4f6;
  height: auto !important;
  max-height: none !important;
  overflow: visible !important;
  display: flex;
  align-items: center;
  justify-content: center;
}

.flatpickr-time input {
  font-size: 24px;
  font-weight: 600;
  color: #111827;
  background: #f9fafb;
  border-radius: 8px;
  padding: 12px 8px;
  height: 48px !important;
  line-height: 24px;
}

.flatpickr-time input:hover,
.flatpickr-time input:focus {
  background: #f3f4f6;
}

.flatpickr-time .flatpickr-time-separator {
  font-size: 24px;
  font-weight: 600;
  color: #9ca3af;
  width: 20px;
  height: 48px;
  line-height: 48px;
}

.flatpickr-time .flatpickr-am-pm {
  font-size: 14px;
  font-weight: 600;
  color: #6562f0;
  background: #ede9fe;
  border-radius: 8px;
  padding: 12px 16px;
  width: auto;
  height: 48px !important;
  line-height: 24px;
  transition: all 0.15s ease;
}

.flatpickr-time .flatpickr-am-pm:hover,
.flatpickr-time .flatpickr-am-pm:focus {
  background: #ddd6fe;
}

/* Numeric input spinners */
.numInputWrapper {
  width: 70px;
  height: 48px !important;
  overflow: visible !important;
}

.numInputWrapper:hover {
  background: transparent;
}

.numInputWrapper span {
  display: none;
}

/* Alt input (displayed) styling */
input.flatpickr-input[readonly] {
  background-color: #ffffff;
  cursor: pointer;
}

.flatpickr-input.active {
  border-color: #6562f0;
  box-shadow: 0 0 0 3px rgba(101, 98, 240, 0.1);
}

/* Date picker input field styling */
.date-picker-input {
  color-scheme: light;
  cursor: pointer;
}

.date-picker-input::-webkit-calendar-picker-indicator {
  display: none;
}
/*
 * 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.
 *


 */
