/* Inter Font */
@font-face {
  font-family: 'Inter';
  src: url('/static/fonts/Inter-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Inter';
  src: url('/static/fonts/Inter-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Inter';
  src: url('/static/fonts/Inter-SemiBold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Inter';
  src: url('/static/fonts/Inter-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* Apply Inter globally */
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-feature-settings: 'liga' 1, 'calt' 1;
}

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

#profile-picture img.avatar {
  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%;
}

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

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

/* this is the default class assigned to errors by django forms */
.errorlist {
  color: var(--danger);
}

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;
  }
}

.calendar-and-timeslots-container {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2rem;
  max-width: 100%;
  margin: 0;
  padding: 0 20px;
  align-items: start;
}

.calendar-container {
  width: 520px;
  margin-left: 0;
}

.timeslots-container {
  max-width: 400px;
  width: 100%;
}

.calendar-section,
.timeslots-section {
  display: flex;
  flex-direction: column;
}

.pg-subtitle {
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #e0e0e0;
}

/* New styles for the "Available Time Slots for..." heading */
#timeslots-container h4 {
  margin-bottom: 1rem; /* Add space below the heading */
  font-size: 1rem; /* Adjust font size if needed */
  color: #333; /* Adjust color if needed */
}

#timeslots-container {
  max-height: 400px;
  overflow-y: auto;
  padding-right: 10px;
}

.calendar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.calendar-nav-btn {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #4040ff;
  transition: color 0.3s ease;
}

.calendar-nav-btn:hover {
  color: #3030cc;
}

.calendar-title {
  font-size: 1.2rem;
  font-weight: bold;
}

.calendar {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0.25rem;
}

.calendar th {
  font-weight: normal;
  color: #888;
  padding: 0.5rem 0;
  text-align: center;
  font-size: 0.8rem;
}

.calendar td {
  padding: 0;
  text-align: center;
  vertical-align: middle;
}

.calendar-day {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.3s ease;
  margin: 0 auto;
}

.calendar-day:hover {
  background-color: #f0f0f0;
}

.calendar-day.selected {
  background-color: #4040ff;
  color: white;
}

.calendar-day.today {
  border: 2px solid #4040ff;
}

.calendar-day.past-date {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

.time-slots-list {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.time-slot {
  background-color: #ffffff;
  padding: 0.6rem 1rem;
  border-radius: 0.25rem;
  font-size: 1rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 1px solid #8a2be2;
  color: #8a2be2;
  box-shadow: 0 2px 4px rgba(138, 43, 226, 0.1);
}

.time-slot:hover {
  background-color: #8a2be2;
  color: #ffffff;
}

/* Optional: Add a subtle box-shadow for depth */
.time-slot {
  box-shadow: 0 2px 4px rgba(138, 43, 226, 0.1);
}

/* Optional: Adjust the scrollbar colors to match the purple theme */
#timeslots-container::-webkit-scrollbar-thumb {
  background: #8a2be2;
}

#timeslots-container::-webkit-scrollbar-thumb:hover {
  background: #7126b3;
}

/* Add styles for a custom scrollbar (optional) */
#timeslots-container::-webkit-scrollbar {
  width: 8px;
}

#timeslots-container::-webkit-scrollbar-track {
  background: #f1f1f1;
}

#timeslots-container::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 4px;
}

#timeslots-container::-webkit-scrollbar-thumb:hover {
  background: #555;
}

/* Adjust the page content container if necessary */
#page-content {
  padding-left: 0;
}

/* If there's a main content wrapper, adjust it too */
.main-content-wrapper {
  padding-left: 0;
}

/* Add a media query for responsiveness */
@media (max-width: 1024px) {
  .calendar-and-timeslots-container {
    grid-template-columns: 1fr;
  }

  .calendar-container,
  .timeslots-container {
    width: 100%;
    max-width: none;
  }
}

.calendar-nav .disabled {
  color: #ccc;
  cursor: not-allowed;
}

.calendar-nav-btn.disabled {
  color: #ccc;
  cursor: not-allowed;
}

@charset "utf-8";

@charset "utf-8";

