/* Theming */
:root {
  --bs-primary: #156CF7;
}

.bg-membership-gradient {
  background: rgb(229,247,21);
  background: linear-gradient(90deg, rgba(229,247,21,1) 0%, rgba(60,250,102,1) 100%);
}
.membership-fontsize {
  font-size: 0.70em;
  font-weight: 600;
}

/* Head texts
-------------------------------------------------- */

/* General */
/* MOBILE */
@media (max-width: 800px) {
  .head-text {
    font-size: 24px;
  }
}

/* DESKTOP */
@media (min-width: 800px) {
  .head-text {
    font-size: 28px;
  }
}

/* Feed
-------------------------------------------------- */
/* MOBILE */
@media (max-width: 800px) {
  .feed-post-title {
    font-size: 16px;
    font-weight: 600;
  }
}

/* DESKTOP */
@media (min-width: 800px) {
  .feed-post-title {
    font-size: 14px;
    font-weight: 600;
  }
}

/* Utility classes
-------------------------------------------------- */

.rounded-paj {
  border-radius: 5px !important;
}

.rounded-right-paj {
  border-bottom-right-radius: 5px !important;
  border-top-right-radius: 5px !important;
}

.rounded-left-paj {
  border-bottom-left-radius: 5px !important;
  border-top-left-radius: 5px !important;
}

.rounded-bottom-paj {
  border-bottom-right-radius: 5px !important;
  border-bottom-left-radius: 5px !important;
}

.bg-white-border-none-ex {
  background-color: white;
  border: none;
}

.clamp-3 {
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.lh-card {
  line-height: 1.15;
}

.lh-introtext {
  line-height: 1.15;
}

/* Animated burger toggle
-------------------------------------------------- */
.burger-wrapper {
  cursor: pointer;
  margin: auto;
  width: 32px;
  height: 34px;
}

.burger-wrapper .hamburger {
  background: white;
  width: 32px;
  height: 3px;
  position: relative;
  transition: background 10ms 300ms ease;
  transform: translateY(16px);
  border-radius: 5px;
}

.burger-wrapper .hamburger:before,
.burger-wrapper .hamburger:after {
  transition: top 300ms 350ms ease, transform 300ms 50ms ease;
  position: absolute;
  background: white;
  width: 32px;
  height: 3px;
  content: "";
  border-radius: 5px;
}

.burger-wrapper .hamburger:before {
  top: -10px;
}

.burger-wrapper .hamburger:after {
  top: 10px;
}

.burger-button:not(.collapsed) .menu-trigger ~ .burger-wrapper .hamburger {
  background: transparent;
}

.burger-button:not(.collapsed) .menu-trigger ~ .burger-wrapper .hamburger:after,
.burger-button:not(.collapsed) .menu-trigger ~ .burger-wrapper .hamburger:before {
  transition: top 300ms 50ms ease, transform 300ms 350ms ease;
  top: 0;
}

.burger-button:not(.collapsed) .menu-trigger ~ .burger-wrapper .hamburger:before {
  transform: rotate(45deg);
}

.burger-button:not(.collapsed) .menu-trigger ~ .burger-wrapper .hamburger:after {
  transform: rotate(-45deg);
}

/* Sticky footer styles
-------------------------------------------------- */
/*# TODO(BW-29.02.24): kann dat hier weg?*/
html {
  position: relative;
  min-height: 100%;
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

body {
  background-color: rgba(240, 242, 255, 1);
}

.blur::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;

  background: rgba(249, 250, 253, 1);
  mask: linear-gradient(to top, transparent, black 35%);
  backdrop-filter: blur(2px);
}

.container {
  max-width: 960px;
}

.max-width-600 {
  max-width: 600px;
}

.max-width-500 {
  max-width: 500px;
}

.max-width-700 {
  max-width: 700px;
}

/* Adjustment for home view
-------------------------------------------------- */
.home-card {
  border: none;
  -webkit-box-shadow: 0px 4px 4px 0px rgba(0, 0, 0, 0.1);
  box-shadow: 0px 4px 4px 0px rgba(0, 0, 0, 0.1);
}

.home-card-body {
  height: 140px;
}

/* Adjustment for pa cme
-------------------------------------------------- */

.filter-blur-4px {
  filter: blur(4px);
}

.filter-blur-and-brightness {
  filter: blur(4px) brightness(100%);
}

.opacity-90 {
  opacity: 0.9;
}

.preview-days {
  font-size: 12px;
}

.pa-cme-display {
  -webkit-box-shadow: 0px 4px 4px 0px rgba(0, 0, 0, 0.1);
  box-shadow: 0px 4px 4px 0px rgba(0, 0, 0, 0.1);
  background-color: white;
  width: 40px;
  height: 40px;
}

.pa-cme-display-small-text {
  font-size: 8px;
  margin-top: -6px;
}

.pacme-video-time {
  font-size: 12px;
}

.pacme-video-title {
  font-size: 20px;
  font-weight: 500 !important;
}

.pacme-completed {
  font-size: 24px;
}

/* DESKTOP */
@media (min-width: 800px) {
  .pacme-video {
    max-width: 550px;
  }
}


/* Adjustment for station briefing
-------------------------------------------------- */

.category-dropdown .dropdown-toggle::after {
  position: absolute;
  top: 10px;
  right: 12px;
  border: 0;

  /* copied symbols ref here */
  font-family: 'Material Symbols Rounded';
  font-weight: normal;
  font-style: normal;
  font-size: 24px; /* Preferred icon size */
  display: inline-block;
  line-height: 1;
  text-transform: none;
  letter-spacing: normal;
  word-wrap: normal;
  white-space: nowrap;
  direction: ltr;

  content: 'expand_more';
}

@media (min-width: 800px) {
  .category-dropdown .dropdown-toggle::after {
    top: 14px;
  }
}

/* Adjustment for patient safety
-------------------------------------------------- */

.small-text {
  font-size: 1rem;
}

@media screen and (min-width: 768px) {
  .small-text {
    font-size: 0.8rem;
  }
}



/* Adjustments for landingpage
-------------------------------------------------- */

.heading-color {
  color: #252B42 !important;
}

.light-background {
  background-color: rgb(243, 245, 254);
}

.accordion-item {
  border: none;
}

.big-spacer {
  padding-top: 12rem;
  padding-bottom: 12rem;
}

.blue-background-element {
  position: absolute;
  top: 0;
  right: 0;
  background-color: rgb(215, 227, 253);
  width: 40%;
  height: 700px;
  z-index: -1;
  border-bottom-left-radius: 10%;
}

.bbe-lg {
  width: 50%;
  height: 600px;
}

.bbe-md {
  width: 40%;
  height: 600px;
}

.bbe-sm {
  width: 40%;
  height: 370px;
}

.transform-xs {
  transform: translate(75%, -60%);
}

.waiting-list-cta {
  padding: 1rem 2rem;
}

.grey-text {
  color: #737373;
}

.lead-desc {
  font-size: 1.2rem;
  color: #737373;
}

.white-breakout {
  width: 100%;
  padding-right: calc(var(--bs-gutter-x) * .5);
  padding-left: calc(var(--bs-gutter-x) * .5);
  margin-right: auto;
  margin-left: auto;
}

.checklist .list-descriptor {
  vertical-align: top;
}

.mheight-100 {
  min-height: 100px;
}

/* Adjustments for Dashboard
-------------------------------------------------- */
.no-margin-bottom {
  margin: 0 !important;
}

.margin-left-56 {
  margin-left: 56px;
}

.margin-left-60 {
  margin-left: 60px;
}

a.active {
  color: var(--bs-primary) !important;
}

a.active:hover {
  color: var(--bs-primary) !important;
}

.burger-button span {
  font-size: 2.5rem;
}

.triangle-down {
  width: 0;
  height: 0;
  border-left: 20px solid transparent;
  border-right: 20px solid transparent;
  border-top: 20px solid #ffffff;
  position: absolute;
  bottom: -19px;
  left: 50%;
  transform: translate(-50%, 0px);
}

.modal-dialog-bottom {
  display: flex;
  align-items: flex-end;
  min-height: calc(100% - var(--bs-modal-margin) * 2);
}

.badge-custom {
  --bs-badge-padding-x: 0.9em;
  --bs-badge-padding-y: 0.7em;
}

.badge .btn-close {
  width: 0.4em;
  height: 0.4em;
  --bs-btn-close-bg: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23ffffff'><path d='M.293.293a1 1 0 0 1 1.414 0L8 6.586 14.293.293a1 1 0 1 1 1.414 1.414L9.414 8l6.293 6.293a1 1 0 0 1-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 0 1-1.414-1.414L6.586 8 .293 1.707a1 1 0 0 1 0-1.414z'/></svg>");
  --bs-btn-close-opacity: 0.9
}

/* Top site progress bar */
.htmx-request.indeterminate-progress-bar {
  display: block;
}

.indeterminate-progress-bar {
  display: none;
  position: fixed;
  top: 0;
  z-index: 1021; /* nav has z-index 1020 */
  height: 4px;
  background-color: rgba(5, 114, 206, 0.2);
  width: 100%;
  overflow: hidden;
}

.indeterminate-progress-bar-value {
  width: 100%;
  height: 100%;
  background-color: rgb(5, 114, 206);
  animation: indeterminateAnimation 1s infinite linear;
  transform-origin: 0% 50%;
}

@keyframes indeterminateAnimation {
  0% {
    transform: translateX(0) scaleX(0);
  }
  40% {
    transform: translateX(0) scaleX(0.4);
  }
  100% {
    transform: translateX(100%) scaleX(0.5);
  }
}

/* Station briefing introtext */
.white-overlay-80 {
  background-color: rgba(255, 255, 255, 80%);
}

.ul-check-icon {
  padding-left: 0;
}

.ul-check-icon li {
  list-style: none;
  background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" height="24px" viewBox="0 -960 960 960" width="24px" fill="%23156CF7FF"><path d="m424-296 282-282-56-56-226 226-114-114-56 56 170 170Zm56 216q-83 0-156-31.5T197-197q-54-54-85.5-127T80-480q0-83 31.5-156T197-763q54-54 127-85.5T480-880q83 0 156 31.5T763-763q54 54 85.5 127T880-480q0 83-31.5 156T763-197q-54 54-127 85.5T480-80Zm0-80q134 0 227-93t93-227q0-134-93-227t-227-93q-134 0-227 93t-93 227q0 134 93 227t227 93Zm0-320Z"/></svg>');
  background-position: left top;
  background-repeat: no-repeat;
  padding-left: 30px;
}


/* PA CME Table */

.table-spaced {
  border-collapse: separate;
  border-spacing: 0 1rem;

}

/* https://dev.to/temmietope/rounded-edges-on-table-rows-1d0n */
td:first-child,
th:first-child {
  border-radius: var(--bs-border-radius) 0 0 var(--bs-border-radius);
}

td:last-child,
th:last-child {
  border-radius: 0 var(--bs-border-radius) var(--bs-border-radius) 0;
}

.td-no-break {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 0;
  width: 100%;
}


/* Job Profile */
.emoji-list {
  list-style-type: none;
  padding-left: 0;
}

.emoji-list li::before {
  content: attr(data-emoji);
  margin-right: 7px;
}

/* Onboarding */
/* MOBILE */
.onboarding-line-height {
  line-height: 29px;
}

@media (max-width: 800px) {
  .head-text-onboarding {
    font-size: 24px;
    line-height: 29px;
  }
}

/* DESKTOP */
@media (min-width: 800px) {
  .head-text-onboarding {
    font-size: 24px;
    line-height: 29px;
  }
}

.carousel-indicators [data-bs-target] {
  background-color: #999;
}

.carousel-indicators button.active {
  background-color: #0d6efd;
}

/* payment options */
.btn-check+.btn {
  background-color: white;
  border-width: 4px;
}
.btn-check+.btn:hover {
  background-color: white;
}
.btn-check:checked+.btn {
  border-image: linear-gradient(90deg, rgba(229,247,21,1) 0%, rgba(60,250,102,1) 100%) 1;
  border-color: rgba(229,247,21,1);
  border-style: solid;
  background-color: white;
}

.btn-check+.btn .check {
  display: none;
}
.btn-check:checked+.btn .check {
  display: block;
}

/* ckeditor copied styles for rendering */
figure.image-style-align-left {
  float: left;
  margin-right: 1.5em;
}
figure.image-style-align-right {
  float: right;
  margin-left: 1.5em;
}
figure.image-style-align-left, figure.image-style-align-right {
  clear: none;
}

/* Membership Modal */
.membership-modal-bg {
  background-color: rgba(240, 242, 255, 1);
}


/* Journal */
.competency-icon {
  align-self: stretch;
  flex-shrink: 0;
  aspect-ratio: 1 / 1;
  width: 60px;
  height: auto;
  font-size: 1.5rem;
  font-weight: bold;
}

.transition {
  transition: transform 0.2s;
}

.form-check-input {
  transform: scale(1.4);
}

.table-font-size {
  font-size: 14px;
}


/* No asterisk for required fields */
.no-asterisk .asteriskField {
  display: none;
}

/* Remove bottom margin on days missed input to align with minus and plus buttons */
#div_id_days_missed.mb-3 {
  margin-bottom: 0 !important;
}
