@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600&display=swap");

@font-face {
  font-family: "Apfel Grotezk";
  src: url("/assets/ApfelGrotezk-Regular-b90cfa69.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Apfel Grotezk";
  src: url("/assets/ApfelGrotezk-Mittel-a66dd385.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
.font-montserrat {
  font-family: "Montserrat", sans-serif;
  font-optical-sizing: auto;
  font-style: normal;
}

body {
  font-family: "Apfel Grotezk", sans-serif;
  font-weight: 500;
  color: #302e33;
  background-color: #f8f8f8;
}

/* =====================================================================
   (:root)
===================================================================== */

:root {
  /* Greys (base + alpha) */
  --greys-base: 48 46 51; /* #302E33 */
  --greys-0: 0.0784; /* #302E3314  */
  --greys-100: 0.2392; /* #302E333D  */
  --greys-200: 0.4588; /* #302E3375  */
  --greys-300: 0.7608; /* #302E33C2  */

  --brand: #6a3e9e;
  --brand-hover: #562d87;
  --accent-pink: #b74fe7;
  --pale-purple: #efe3ff;
  --green: #34a688;
}

/* =====================================================================
   1) COLOR BG
===================================================================== */

.bg-greys-base {
  background-color: rgb(var(--greys-base));
}
.bg-greys-0 {
  background-color: rgb(var(--greys-base) / var(--greys-0));
}
.bg-greys-100 {
  background-color: rgb(var(--greys-base) / var(--greys-100));
}
.bg-greys-200 {
  background-color: rgb(var(--greys-base) / var(--greys-200));
}
.bg-greys-300 {
  background-color: rgb(var(--greys-base) / var(--greys-300));
}

.bg-brand {
  background-color: var(--brand);
}
.bg-brand-alt {
  background-color: #562d87;
}

.bg-pale {
  background-color: var(--pale-purple);
}
.bg-green {
  background-color: var(--green);
}

/* =====================================================================
   2) COLOR HOVER / FOCUS
===================================================================== */

.hover\:bg-greys-0:hover {
  background-color: rgb(var(--greys-base) / var(--greys-0));
}
.hover\:bg-greys-100:hover {
  background-color: rgb(var(--greys-base) / var(--greys-100));
}
.hover\:bg-greys-200:hover {
  background-color: rgb(var(--greys-base) / var(--greys-200));
}
.hover\:bg-greys-300:hover {
  background-color: rgb(var(--greys-base) / var(--greys-300));
}
.hover\:bg-brand-alt:hover {
  background-color: #562d87;
}
.hover\:bg-greys-base:hover {
  background-color: rgb(var(--greys-base));
}
.bg-brand-hover:hover {
  background-color: var(--brand-hover);
  transition: background-color 0.15s ease;
}

.border-accent {
  border-color: var(--accent-pink);
  transition: border-color 0.15s ease;
}

.hover\:text-greys-0:hover {
  color: rgb(var(--greys-base) / var(--greys-0));
}
.hover\:text-greys-100:hover {
  color: rgb(var(--greys-base) / var(--greys-100));
}
.hover\:text-greys-200:hover {
  color: rgb(var(--greys-base) / var(--greys-200));
}
.hover\:text-greys-300:hover {
  color: rgb(var(--greys-base) / var(--greys-300));
}

.hover\:border-greys-0:hover {
  border-color: rgb(var(--greys-base) / var(--greys-0));
}
.hover\:border-greys-100:hover {
  border-color: rgb(var(--greys-base) / var(--greys-100));
}
.hover\:border-greys-200:hover {
  border-color: rgb(var(--greys-base) / var(--greys-200));
}
.hover\:border-greys-300:hover {
  border-color: rgb(var(--greys-base) / var(--greys-300));
}

/* =====================================================================
   3) TEXT COLOR
===================================================================== */

.text-greys-0 {
  color: rgb(var(--greys-base) / var(--greys-0));
}
.text-greys-100 {
  color: rgb(var(--greys-base) / var(--greys-100));
}
.text-greys-200 {
  color: rgb(var(--greys-base) / var(--greys-200));
}
.text-greys-300 {
  color: rgb(var(--greys-base) / var(--greys-300));
}
.text-brand {
  color: var(--brand);
}
.text-base {
  color: rgb(var(--greys-base));
}
/* =====================================================================
   5) COLOR BORDER
===================================================================== */

.border-greys-base {
  border-color: rgb(var(--greys-base));
}
.border-greys-0 {
  border-color: rgb(var(--greys-base) / var(--greys-0));
}
.border-greys-100 {
  border-color: rgb(var(--greys-base) / var(--greys-100));
}
.border-greys-200 {
  border-color: rgb(var(--greys-base) / var(--greys-200));
}
.border-greys-300 {
  border-color: rgb(var(--greys-base) / var(--greys-300));
}
.border-brand {
  border-color: var(--brand);
}

/* =====================================================================
   4) COMPONENT/STATE UTILITIES
===================================================================== */

.active span {
  background-color: #302e33;
  color: #fff;
}
.active:hover span {
  background-color: #302e33 !important;
  color: #fff !important;
}

label {
  -webkit-tap-highlight-color: transparent;
}

/* =====================================================================
   5) FORM ELEMENTS (inputs & textarea)
===================================================================== */

input::placeholder,
textarea::placeholder {
  color: rgb(var(--greys-base) / var(--greys-200)) !important;
  font-weight: 400 !important;
}

:where(input:not([type="checkbox"]):not([type="radio"]), textarea) {
  color: #302e33;
  border: 1px solid transparent;
  border-radius: 0.5rem;
  background-color: rgb(var(--greys-base) / var(--greys-0));
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}

:where(input:not([type="checkbox"]):not([type="radio"]), textarea):hover {
  border-color: rgb(var(--greys-base) / var(--greys-200));
}

:where(input:not([type="checkbox"]):not([type="radio"]), textarea):focus {
  outline: none;
  border-color: var(--accent-pink);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent-pink) 20%, transparent);
}

/* Errors */
input.error,
textarea.error {
  border-color: #d30000 !important;
  color: #d30000 !important;
}
input.error::placeholder,
textarea.error::placeholder {
  color: #d30000 !important;
}

#inviteEmailInput:hover,
#inviteEmailInput:focus,
#inviteEmailInput:focus-visible {
  border-color: transparent !important;
  box-shadow: none !important;
  outline: none !important;
}

/* =====================================================================
   6) CHECKBOXES
===================================================================== */

input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  width: 20px;
  height: 20px;
  border: 1px solid black;
  outline: none;
  border-radius: 4px;
  background-color: transparent;
  cursor: pointer;
  position: relative;
  transition: all 0.2s ease;
}

input[type="checkbox"]:checked {
  border-color: #6a3e9e;
  background-color: #6a3e9e;
  outline: none;
}

input[type="checkbox"]:checked::after {
  content: "";
  position: absolute;
  top: 1.5px;
  left: 6.5px;
  width: 6px;
  height: 11px;
  border-right: 1.5px solid #fff;
  border-bottom: 1.5px solid #fff;
  transform: rotate(45deg);
  opacity: 0;
  animation: checkmarkFade 0.15s ease forwards;
}

@keyframes checkmarkFade {
  0% {
    opacity: 0;
    transform: scale(0.8) rotate(45deg);
  }
  100% {
    opacity: 1;
    transform: scale(1) rotate(45deg);
  }
}
input[type="radio"] {
  appearance: none;
  -webkit-appearance: none;

  width: 16px;
  height: 16px;
  border-radius: 9999px;
  border: 1px solid #000;
  background: transparent;

  position: relative;
  cursor: pointer;
}

input[type="radio"]:checked {
  border-color: #6a3e9e;
  background: transparent;
}

input[type="radio"]:checked::after {
  content: "";
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 9999px;
  background: #6a3e9e;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

input[type="radio"]:focus-visible {
  outline: none;
  box-shadow: none;
}

/* =====================================================================
   7) GLOBAL FOCUS RING (accent pink)
===================================================================== */

:focus-visible {
  outline: none !important;
  border-color: transparent !important;
  box-shadow: 0 0 0 2px var(--accent-pink) !important;
  transition:
    box-shadow 0.3s ease-in-out,
    border-color 0.3s ease-in-out;
}

.dt {
  appearance: none;
  -webkit-appearance: none;
  min-width: 0;
}

.dt::-webkit-datetime-edit {
  padding: 0;
  margin: 0;
}

.dt::-webkit-calendar-picker-indicator {
  display: none;
  -webkit-appearance: none;
}

.dt::-webkit-inner-spin-button,
.dt::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.dt:focus,
.dt:focus-visible {
  outline: none !important;
  box-shadow: none !important;
}

.dt::-moz-focus-inner {
  border: 0;
  padding: 0;
}

/* ——————————————————————————
  DATE PICKER
—————————————————————————— */
.datepicker {
  z-index: 99999 !important;
}

.datepicker-picker {
  border: none !important;
  width: 100%;
  padding: 12px 16px !important;
}

.datepicker-view {
  border: none !important;
  width: 100% !important;
  height: 100% !important;
  justify-content: center;
  display: block !important;
  padding: 0;
}

.datepicker-grid {
  border: none !important;
  width: 100% !important;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  padding: 0;

  justify-items: stretch !important;
  gap: 0 !important;
}

.datepicker-header {
  background-color: rgb(var(--greys-base) / var(--greys-0)) !important;
  border-radius: 25px;
  display: grid !important;
  grid-template-columns: auto 1fr auto;
  align-items: center !important;
  gap: 8px;
  padding: 4px 6px;
  margin-bottom: 16px !important;
}

.datepicker-title {
  color: #302e33c2 !important;
  text-align: center;
  margin: 0;
}

.datepicker-controls {
  display: contents !important;
}

.datepicker-controls .prev-btn {
  justify-self: start;
}

.datepicker-controls .next-btn {
  justify-self: end;
}

.prev-btn,
.next-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 25px;
  background-color: #ffffff !important;
  cursor: pointer;
}

.prev-btn svg,
.next-btn svg {
  display: none;
}

.prev-btn {
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='7' height='12' fill='none'%3E%3Cpath fill='%23302E33' d='M2.4 5.654 7 1.054 5.946 0 .293 5.654l5.653 5.653L7 10.255l-4.6-4.6Z'/%3E%3C/svg%3E")
    center/7px 12px no-repeat #ffffff;
}

.next-btn {
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='7' height='12' fill='none'%3E%3Cpath fill='%23302E33' d='M4.6 5.654 0 1.054 1.054 0l5.653 5.654-5.653 5.653L0 10.255l4.6-4.6Z'/%3E%3C/svg%3E")
    center/7px 12px no-repeat #ffffff;
}

#datepicker-inline .dow {
  font-weight: 400;
  text-transform: uppercase;
  color: #302e33c2 !important;
  background-color: transparent !important;
  cursor: default !important;
}

#datepicker-inline .datepicker-cell {
  position: relative;

  width: 100% !important;

  height: 40px;
  line-height: 40px;

  border-radius: 0 !important;

  font-weight: 400;
  color: black !important;
  background: transparent !important;

  display: flex;
  align-items: center;
  justify-content: center;

  isolation: isolate;
}

.datepicker-main {
  padding: 0px !important;
}

#datepicker-inline {
  background-color: #eeeeec;
  border-radius: 20px;
}

#datepicker-inline .datepicker-cell:hover::after {
  content: "";
  position: absolute;
  width: 32px;
  height: 32px;
  border-radius: 9999px;
  background: #efe3ff;
  z-index: -1;
}

#datepicker-inline .datepicker-cell.selected {
  background: transparent !important;
}
#datepicker-inline .datepicker-cell.prev,
#datepicker-inline .datepicker-cell.next {
  color: rgb(116, 116, 116) !important;
  background-color: transparent !important;
}

.datepicker-controls button {
  padding: 0 !important;
}

.datepicker-controls {
  display: flex;
}

#datepicker-inline .datepicker-cell.in-range::before {
  content: "";
  position: absolute;
  inset: 0;
  top: 6px;
  bottom: 6px;
  left: 0;
  right: 0;
  background: #efe3ff;
  z-index: -2;
}

#datepicker-inline:has(.datepicker-cell.range-end)
  .datepicker-cell.range-start::before,
#datepicker-inline:has(.datepicker-cell.range-end)
  .datepicker-cell.range-end::before {
  content: "";
  position: absolute;
  top: 6px;
  bottom: 6px;
  left: 0;
  right: 0;
  background: #efe3ff;
  z-index: -2;
}

#datepicker-inline:has(.datepicker-cell.range-end)
  .datepicker-cell.range-start::before {
  left: 50%;
}

#datepicker-inline:has(.datepicker-cell.range-end)
  .datepicker-cell.range-end::before {
  right: 50%;
}

#datepicker-inline .datepicker-cell.range-start::after,
#datepicker-inline .datepicker-cell.range-end::after {
  content: "";
  position: absolute;
  width: 32px;
  height: 32px;
  border-radius: 9999px;
  background: #6a3e9e;
  z-index: -1;
}

#datepicker-inline .datepicker-cell.in-range {
  color: black !important;
}

#datepicker-inline .datepicker-cell.range-start,
#datepicker-inline .datepicker-cell.range-end {
  color: #ffffff !important;
}

/* =====================================================================
   UPLOAD FILE META (wrap long filenames on small screens)
===================================================================== */
[data-filemeta] {
  max-width: clamp(16ch, 70vw, 28ch);
  text-align: center;
  word-break: break-word;
  overflow-wrap: anywhere;
  line-height: 1.3;
}

/* =====================================================================
   SWIPER THUMBS ACTIVE STATE
===================================================================== */
.thumbs-vertical .swiper-slide-thumb-active img,
.thumbs-horizontal .swiper-slide-thumb-active img {
  outline: 2px solid var(--accent-pink);
}

.thumbs-vertical .swiper-slide,
.thumbs-horizontal .swiper-slide {
  padding: 6px;
  box-sizing: border-box;
  margin: 0px !important;
}

.thumbs-vertical .swiper-scrollbar {
  left: -2px !important;
}

.watermark-preview {
  background-color: darkgray;
  padding: 20px;
  width: auto!important;
}