@charset "utf-8";

#profile-picture {
  display: flex;
  justify-content: center;
}

#profile-picture img.avatar {
  -o-object-fit: cover;
     object-fit: cover;
  width: 128px;
  height: 128px;
  border-radius: 50%;
}

#profile-upload-holder {
  padding-top: 0.5em;
}

#profile-upload-holder input[type="file"] {
  display: none;
}

.progress-bar {
  background-color: var(--primary);
  width: 2px;
}

#progress-bar-message {
  color: var(--gray);
}

.add-loading-dots:after {
  content: ' .';
  animation: dots 1s steps(5, end) infinite;
}

@keyframes dots {
  0%, 20% {
    color: rgba(0, 0, 0, 0);
    text-shadow: .25em 0 0 rgba(0, 0, 0, 0), .5em 0 0 rgba(0, 0, 0, 0);
  }

  40% {
    color: black;
    text-shadow: .25em 0 0 rgba(0, 0, 0, 0), .5em 0 0 rgba(0, 0, 0, 0);
  }

  60% {
    text-shadow: .25em 0 0 black, .5em 0 0 rgba(0, 0, 0, 0);
  }

  80%, 100% {
    text-shadow: .25em 0 0 black, .5em 0 0 black;
  }
}

/* this makes the list items look nice on mobile */

.upgrade-features li {
  display: flex;
}

.upgrade-features li .pg-icon {
  margin-right: 0.5rem;
}

.upgrade-features li .upgrade-feature {
  width: 100%;
}

#subscription-details-table .subscription-detail {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  margin: 0.5rem;
}

#subscription-details-table .subscription-detail .subscription-detail-label {
  width: 16rem;
  text-align: right;
  margin-right: 1rem;
}

#subscription-details-table .subscription-detail .subscription-detail-value {
  width: 100%;
}

#subscription-details-table .subscription-detail .subdetail {
  font-size: 0.8rem;
  margin-top: 0.2rem;
}

#plan-selector .plan {
  height: 100%; /* fill the whole column */
  /* prevent shifting when border is added */
  border: 3px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  padding: 1rem;
}

#plan-selector .plan.is-selected {
  border: 3px solid var(--primary);
}

#plan-selector .plan .plan-summary {
  display: flex;
  flex-direction: row;
  align-items: center;
}

#plan-selector .plan .price {
  font-size: 1.5rem;
}

/* alpine.js cloak support */

[x-cloak] {
  display: none !important;
}

/* ensure htmx links use pointers */

a[hx-get] {
  cursor: pointer;
}

.h-100 {
  height: 100%;
}

.min-h-18 {
  min-height: 4.5rem; /* 72px */
}

.muted-link {
  color: hsl(0, 0%, 71%);
}

.muted-link:hover {
  color: hsl(0, 0%, 48%);
  text-decoration: underline;
}

.font-\[870\] {
  font-weight: 870;
}

/* this is the default class assigned to errors by django forms */

.errorlist{
  --tw-text-opacity: 1;
  color: rgb(180 35 24 / var(--tw-text-opacity, 1));
}

img.socialicon {
  padding-right: 0.5em;
  max-width: 24px;
  max-height: 24px;
}

/* css loader https://loading.io/css/ */

.lds-ripple {
  display: inline-block;
  position: relative;
  width: 80px;
  height: 80px;
}

.lds-ripple div {
  position: absolute;
  border: 4px solid var(--primary);
  opacity: 1;
  border-radius: 50%;
  animation: lds-ripple 1s cubic-bezier(0, 0.2, 0.8, 1) infinite;
}

.lds-ripple div:nth-child(2) {
  animation-delay: -0.5s;
}

@keyframes lds-ripple {
  0% {
    top: 36px;
    left: 36px;
    width: 0;
    height: 0;
    opacity: 1;
  }

  100% {
    top: 0px;
    left: 0px;
    width: 72px;
    height: 72px;
    opacity: 0;
  }
}

.quill-dark-theme .ql-toolbar{
  border-bottom-width: 1px;
  --tw-border-opacity: 1;
  border-color: rgb(255 255 255 / var(--tw-border-opacity, 1));
  border-top: none !important;
  border-left: none !important;
  border-right: none !important;
}

.quill-dark-theme .ql-container{
  --tw-text-opacity: 1;
  color: rgb(255 255 255 / var(--tw-text-opacity, 1));
  border: none !important;
}

.quill-dark-theme .ql-toolbar .ql-stroke {
  stroke: #FFFFFF;
  fill: none;
}

.quill-dark-theme .ql-toolbar .ql-fill {
  fill: #FFFFFF;
  stroke: none;
}

.quill-dark-theme .ql-toolbar .ql-picker-label{
  --tw-text-opacity: 1;
  color: rgb(255 255 255 / var(--tw-text-opacity, 1));
}

.quill-dark-theme .ql-toolbar .ql-picker-options{
  --tw-bg-opacity: 1;
  background-color: rgb(28 30 31 / var(--tw-bg-opacity, 1));
  border: none !important;
}

.quill-dark-theme .ql-toolbar .ql-picker-item{
  --tw-text-opacity: 1;
  color: rgb(255 255 255 / var(--tw-text-opacity, 1));
}

/* Proper SVG icon styling - preserve stroke/fill behavior */

.quill-dark-theme .ql-toolbar button svg .ql-stroke {
  stroke: #FFFFFF !important;
  fill: none !important;
}

.quill-dark-theme .ql-toolbar button svg .ql-fill {
  fill: #FFFFFF !important;
  stroke: none !important;
}

.quill-dark-theme .ql-toolbar button svg path {
  stroke: #FFFFFF !important;
  fill: none !important;
}

/* Code block styling */

.quill-dark-theme .ql-editor pre.ql-syntax{
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
  border-radius: 0.25rem;
  --tw-bg-opacity: 1;
  background-color: rgb(17 17 17 / var(--tw-bg-opacity, 1));
  padding: 0.75rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.875rem;
  line-height: 1.25rem;
  line-height: 1.625;
  --tw-text-opacity: 1;
  color: rgb(238 238 238 / var(--tw-text-opacity, 1));
}

/* Inline code styling */

.quill-dark-theme .ql-editor code{
  border-radius: 0.25rem;
  --tw-bg-opacity: 1;
  background-color: rgb(52 58 64 / var(--tw-bg-opacity, 1));
  padding-left: 0.25rem;
  padding-right: 0.25rem;
  padding-top: 0.125rem;
  padding-bottom: 0.125rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.875rem;
  line-height: 1.25rem;
  --tw-text-opacity: 1;
  color: rgb(238 238 238 / var(--tw-text-opacity, 1));
}

.quill-dark-theme .ql-toolbar .ql-formats button:hover,
.quill-dark-theme .ql-toolbar .ql-formats button:focus{
  border-radius: 0.25rem;
  background-color: rgb(248 153 29 / 0.1);
  --tw-text-opacity: 1;
  color: rgb(248 153 29 / var(--tw-text-opacity, 1));
  outline-style: solid;
  outline-width: 2px;
  outline-offset: 1px;
  outline-color: #F8991D;
}

.quill-dark-theme .ql-toolbar .ql-formats button:active{
  border-radius: 0.25rem;
  background-color: rgb(248 153 29 / 0.2);
}

.quill-dark-theme .ql-toolbar .ql-formats button.ql-active{
  border-radius: 0.25rem;
  --tw-bg-opacity: 1;
  background-color: rgb(248 153 29 / var(--tw-bg-opacity, 1));
  --tw-text-opacity: 1;
  color: rgb(17 24 39 / var(--tw-text-opacity, 1));
}

/* Generic picker styles */

.quill-dark-theme .ql-toolbar .ql-formats .ql-picker:hover .ql-picker-label,
.quill-dark-theme .ql-toolbar .ql-formats .ql-picker:focus-within .ql-picker-label{
  border-radius: 0.25rem;
  background-color: rgb(248 153 29 / 0.1);
  --tw-text-opacity: 1;
  color: rgb(248 153 29 / var(--tw-text-opacity, 1));
  outline-style: solid;
  outline-width: 2px;
  outline-offset: 1px;
  outline-color: #F8991D;
}

/* Specific picker styles for color picker */

.quill-dark-theme .ql-toolbar .ql-formats .ql-color:hover .ql-picker-label,
.quill-dark-theme .ql-toolbar .ql-formats .ql-color:focus-within .ql-picker-label,
.quill-dark-theme .ql-toolbar .ql-formats .ql-color .ql-picker-label:hover,
.quill-dark-theme .ql-toolbar .ql-formats .ql-color .ql-picker-label:focus{
  border-radius: 0.25rem !important;
  background-color: rgb(248 153 29 / 0.1) !important;
  --tw-text-opacity: 1 !important;
  color: rgb(248 153 29 / var(--tw-text-opacity, 1)) !important;
  outline-style: solid !important;
  outline-width: 2px !important;
  outline-offset: 1px !important;
  outline-color: #F8991D !important;
}

/* Specific picker styles for alignment picker */

.quill-dark-theme .ql-toolbar .ql-formats .ql-align:hover .ql-picker-label,
.quill-dark-theme .ql-toolbar .ql-formats .ql-align:focus-within .ql-picker-label,
.quill-dark-theme .ql-toolbar .ql-formats .ql-align .ql-picker-label:hover,
.quill-dark-theme .ql-toolbar .ql-formats .ql-align .ql-picker-label:focus{
  border-radius: 0.25rem !important;
  background-color: rgb(248 153 29 / 0.1) !important;
  --tw-text-opacity: 1 !important;
  color: rgb(248 153 29 / var(--tw-text-opacity, 1)) !important;
  outline-style: solid !important;
  outline-width: 2px !important;
  outline-offset: 1px !important;
  outline-color: #F8991D !important;
}

/* Header picker styles */

.quill-dark-theme .ql-toolbar .ql-formats .ql-header:hover .ql-picker-label,
.quill-dark-theme .ql-toolbar .ql-formats .ql-header:focus-within .ql-picker-label,
.quill-dark-theme .ql-toolbar .ql-formats .ql-header .ql-picker-label:hover,
.quill-dark-theme .ql-toolbar .ql-formats .ql-header .ql-picker-label:focus{
  border-radius: 0.25rem !important;
  background-color: rgb(248 153 29 / 0.1) !important;
  --tw-text-opacity: 1 !important;
  color: rgb(248 153 29 / var(--tw-text-opacity, 1)) !important;
  outline-style: solid !important;
  outline-width: 2px !important;
  outline-offset: 1px !important;
  outline-color: #F8991D !important;
}

/* Active state for pickers */

.quill-dark-theme .ql-toolbar .ql-formats .ql-picker.ql-expanded .ql-picker-label{
  border-radius: 0.25rem !important;
  --tw-bg-opacity: 1 !important;
  background-color: rgb(248 153 29 / var(--tw-bg-opacity, 1)) !important;
  --tw-text-opacity: 1 !important;
  color: rgb(17 24 39 / var(--tw-text-opacity, 1)) !important;
}

/* Simplified SVG icon hover/focus styles - only for active state */

.quill-dark-theme .ql-toolbar .ql-stroke {
  fill: none;
  stroke: white !important;
}

.quill-dark-theme .ql-toolbar .ql-formats button.ql-active .ql-fill {
  fill: white !important;
  stroke: none;
}

.ql-snow.ql-toolbar button:hover, .ql-snow .ql-toolbar button:hover, .ql-snow.ql-toolbar button:focus, .ql-snow .ql-toolbar button:focus, .ql-snow.ql-toolbar button.ql-active, .ql-snow .ql-toolbar button.ql-active, .ql-snow.ql-toolbar .ql-picker-label:hover, .ql-snow .ql-toolbar .ql-picker-label:hover, .ql-snow.ql-toolbar .ql-picker-label.ql-active, .ql-snow .ql-toolbar .ql-picker-label.ql-active, .ql-snow.ql-toolbar .ql-picker-item:hover, .ql-snow .ql-toolbar .ql-picker-item:hover, .ql-snow.ql-toolbar .ql-picker-item.ql-selected, .ql-snow .ql-toolbar .ql-picker-item.ql-selected{
  --tw-text-opacity: 1 !important;
  color: rgb(255 255 255 / var(--tw-text-opacity, 1)) !important;
}

.ql-editor, .ql-toolbar, .quill-content{
  font-family: Lexend, sans-serif;
}

.ql-editor h1, .ql-editor h2, .ql-editor h3, .ql-editor h4, .ql-editor h5, .ql-editor h6, .quill-content h1, .quill-content h2, .quill-content h3, .quill-content h4, .quill-content h5, .quill-content h6{
  font-weight: 700;
  line-height: 130%;
}

.ql-editor h1, .quill-content h1{
  font-size: 2.25rem !important;
  line-height: 2.5rem !important;
}

.ql-editor h2, .quill-content h2{
  font-size: 1.5rem !important;
  line-height: 2rem !important;
}

.ql-editor h3, .quill-content h3{
  font-size: 1.125rem !important;
  line-height: 1.75rem !important;
}

.ql-editor p, .quill-content p{
  font-size: 1rem !important;
  line-height: 1.5rem !important;
}

.ql-editor ol, .quill-content ol{
  list-style-type: none !important;
  padding-left: 0px !important;
  font-size: 1rem !important;
  line-height: 1.5rem !important;
}

.ql-editor li{
  padding-left: 1rem !important;
}

.quill-content ol{
  padding-left: 1rem;
}

.quill-content [data-list="bullet"]{
  list-style-type: disc;
}

.quill-content [data-list="ordered"]{
  list-style-type: decimal;
}

