a {
  word-wrap: break-word;
}

.instructor-modal a.large-button h4 {
  width: auto;
}

.error-message {
  margin-top: -12px;
  font-size: 16px;
  color: red;
}

.success-message {
  font-size: 16px;
  color: green;
}

.text-uppercase {
  text-transform: uppercase;
}

.form-group {
  margin-bottom: 24px;
}

.position-relative {
  position: relative;
}

.d-flex {
  display: flex;
}

.items-center {
  align-items: center;
}

.content-between {
  justify-content: space-between;
}

.content-center {
  justify-content: center;
}

.mr-3 {
  margin-right: 12px;
}

.mb-1 {
  margin-bottom: 4px;
}

.tooltip-icon {
  margin-left: 4px;
  font-size: 16px;
  color: #7c7c7c;
  cursor: pointer;
}

/* Tooltip container */
.tooltip {
  position: relative;
  display: inline-block;
}

/* Tooltip text */
.tooltip .tooltiptext {
  visibility: hidden;
  width: 250px;
  background-color: #d9eef7;
  color: #24375a;
  text-align: center;
  padding: 10px;
  border-radius: 8px;
  bottom: 100%;
  left: 50%;

  /* Position the tooltip text - see examples below! */
  position: absolute;
  z-index: 1;
}

/* Show the tooltip text when you mouse over the tooltip container */
.tooltip:hover .tooltiptext {
  visibility: visible;
}

.textarea .ql-editor {
  min-height: 100px !important;
}

/* recertify-modal */
.recertify-modal .container {
  padding: 16px 0;
}

/* modal */
.basic-modal .modal-header {
  height: 110px;
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 20px;
  font-size: 2rem;
  cursor: pointer;
}

/* Maze login */
.mazelogin-title {
  color: #62181e;
  font-weight: 500;
  font-size: 30px;
  margin-bottom: 30px;
}

.mazelogin-description {
  font-style: italic;
  font-weight: 400;
  color: #24375a;
  font-size: 24px;
  margin-bottom: 24px;
}

.maze-header {
  border-bottom: 8px solid #ff6600;
}

/* jQuery error css  */
label.error {
  color: red;
  font-size: 16px;
  font-weight: normal;
  text-transform: none;
}

/* Prompt modal */
.prompt-modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background: rgba(0, 0, 0, 0.4);
}
.prompt-title {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 16px;
}
.prompt-modal-content {
  background: #fff;
  margin: 10% auto;
  padding: 20px;
  border: 1px solid #888;
  width: 90%;
  max-width: 460px;
  border-radius: 8px;
  position: relative;
}
.prompt-close {
  position: absolute;
  right: 12px;
  top: 14px;
  font-size: 30px;
  font-weight: bold;
  cursor: pointer;
}

@media screen and (max-width: 690px) {
  .prompt-title {
    font-size: 20px;
  }
  .prompt-close {
    right: 16px;
    top: 16px;
    font-size: 24px;
  }
}

/* dropdown */
div.trigger.open {
  border-bottom-right-radius: 0 !important;
  border-bottom-left-radius: 0 !important;
}

ul.options {
  margin-top: 0 !important;
  z-index: 52 !important;
}

@media (max-width: 690px) {
  .fancy-select {
    margin-bottom: 1rem !important;
  }
}

/* Toast notification */
.toast {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 9999;
  color: #fff;
  padding: 16px 24px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  font-size: 16px;
  transition: opacity 0.3s;
}

.toast-body {
  margin: 0;
}

/* Fancy select */
/* Search container - positioned absolutely within the dropdown */
div.fancy-select .search-container {
  position: absolute;
  width: fill-available;
  width: -webkit-fill-available;
  width: -moz-fill-available;
  width: 100%;
  background: #fff;
  border: 3px solid #24375a;
  border-top: 0;
  border-bottom: 0;
  padding: 8px;
  z-index: 52;
  display: none; /* Hidden by default, no space taken */
}

/* Show search container when dropdown is open */
div.fancy-select .trigger.open + .search-container {
  display: block; /* Show when open */
}

/* Search input styling to match your design */
div.fancy-select .search-input {
  width: 100%;
  padding: 8px;
  border: 2px solid #24375a;
  border-radius: 4px;
  font-size: 16px;
  outline: none;
  color: #24375a;
  background: #fff;
  font-family: inherit;
  box-sizing: border-box;
  transition: all 0.24s ease-out;
  -webkit-transition: all 0.24s ease-out;
  -moz-transition: all 0.24s ease-out;
  -ms-transition: all 0.24s ease-out;
  -o-transition: all 0.24s ease-out;
}

div.fancy-select .search-input:focus {
  border-color: #a4c9d8;
  box-shadow: 0 0 0 2px rgba(164, 201, 216, 0.3);
}

div.fancy-select .search-input::placeholder {
  color: #7a8498;
  font-style: italic;
}

/* Adjust options position when search is enabled */
div.fancy-select.has-search ul.options {
  top: 90px; /* Position below search container */
}
div.fancy-select.has-search ul.options li {
  white-space: break-spaces;
}

/* No results styling */
div.fancy-select ul.options li.no-results {
  color: #7a8498;
  font-style: italic;
  pointer-events: none;
  background: #f9f9f9;
}

/* Icons */
.icon-warning {
  content: url("/assets/icons/warning.svg");
}

.icon-copy {
  content: url("/assets/icons/copy.svg");
}

.icon-qr-code {
  content: url("/assets/icons/qr-code.svg");
}

.icon-analytic-bars {
  content: url("/assets/icons/analytic-bars.svg");
}

.icon-download {
  content: url("/assets/icons/download.svg");
}

.icon-analytics {
  content: url("/assets/icons/analytics.svg");
}

.icon-display {
  content: url("/assets/icons/display.svg");
}

.icon-chart {
  content: url("/assets/icons/chart.svg");
}

.icon-meter {
  content: url("/assets/icons/meter.svg");
}

.icon-information {
  content: url("/assets/icons/information.svg");
}

.qpr_card-wrapper {
  display: grid;
  /* two column */
  grid-template-columns: repeat(auto-fill, minmax(375px, 1fr));
  gap: 20px;
  justify-content: center;
  align-items: stretch;
  margin-top: 36px;
}

@media screen and (max-width: 690px) {
  .qpr_card-wrapper {
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  }
}

.qpr_card {
  border: 3px solid #e0e0e0;
  border-radius: 8px;
  padding: 24px;
  vertical-align: top;
  /* margin: 10px 10px !important; */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  top: 0;
  transform: scale(1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.qpr_card:hover {
  transform: translateY(-4px);
  background-color: #f8f8f8;
}

.card-content {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1 1 0%;
}

.qpr_card-body {
  flex: 1 1 0%;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.qpr_card-footer {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.qpr_card-title {
  font-size: 18px !important;
  font-weight: 600;
  color: #24375a;
  margin-bottom: 0 !important;
}

.qpr_card-description {
  margin-bottom: 0 !important;
  color: #24375a;
  font-weight: 300;
  font-size: 16px;
}

.qpr_card-content-content {
  flex: 1 1 0%;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.qpr_card-link-group {
  position: relative;
}

.qpr_card-input {
  width: 100%;
  padding: 10px 94px 10px 12px !important;
  border: 1px solid #e0e0e0 !important;
  border-radius: 0.375rem;
  color: #24375a;
  background-color: #f8f8f8 !important;
  font-size: 0.875rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 0 !important;
  box-shadow: none !important;
  height: 44px;
}

.qpr_card-input:focus {
  outline: none;
  border-color: #24375a !important;
}

.qpr_card-copy-button {
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  padding: 8px 16px;
  height: calc(100% - 8px);
  border: none;
  color: #ffffff;
  background-color: #24375a;
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: 0.25rem;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
  white-space: nowrap;
  display: flex;
  align-items: center;
  justify-content: center;
  text-transform: none;
  letter-spacing: 0.2px;
}

.qpr_card-copy-button:hover {
  background-color: #1a294a;
}

.qpr_card-copy-button i {
  height: 12px;
  width: 12px;
}

.qpr_card-actions {
  display: flex;
  gap: 0.5rem;
  width: 100%;
  padding-top: 0.25rem;
}

.qpr_card-action-button {
  flex: 1;
  padding: 10px 16px;
  font-size: 0.875rem;
  font-weight: 600;
  color: #ffffff;
  background-color: #24375a;
  border: none;
  border-radius: 0.375rem;
  cursor: pointer;
  text-align: center;
  transition: all 0.2s ease-in-out;
  text-decoration: none;
  margin: 0 !important;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 0.2px;
}

.qpr_card-action-button:hover {
  background-color: #1a294a;
  color: #ffffff;
  transform: translateY(-1px);
}

/* QR Code button specific styles */
.qpr_card-action-button.qr-button {
  background-color: #ffffff;
  color: #24375a;
  border: 2px solid #24375a;
}

.qpr_card-action-button.qr-button:hover {
  background-color: #f8f8f8;
  color: #24375a;
  border-color: #24375a;
}

.qpr_card-action-button i {
  color: #24375a;
  margin-right: 8px;
  height: 14px;
  width: 14px;
  font-size: 12px;
}

/* Analytics button specific styles */
.qpr_card-action-button.analytics-button {
  background-color: #24375a;
  color: #ffffff;
  border: none;
}

.qpr_card-action-button.analytics-button:hover {
  background-color: #1a294a;
  transform: translateY(-1px);
}

/* Card tags styling based on reference image */
.qpr_card-tags {
  display: flex;
  flex-direction: row !important;
  gap: 8px !important;
}

.qpr_card-tag {
  display: inline-block;
  padding: 8px 12px;
  font-size: 11px;
  line-height: 1;
  font-weight: 600;
  border-radius: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.qpr_card-tag.secondary {
  background-color: #c9d9f4;
  color: #25385a;
}

.qpr_card-tag.primary {
  background-color: #efe7e8;
  color: #62181e;
}

.qpr_card-tag.success {
  background-color: #e3eff4;
  color: #447486;
}

.qpr_card-tag.warning {
  background-color: #fff6b2;
  color: #854d0e;
}

.qpr_card-tag.info {
  background-color: #ccf6fa;
  color: #0e7490;
}

.qpr_card-tag.danger {
  background-color: #f7d9d9;
  color: #b91c1c;
}

/* Icon support in buttons */
.qpr_card-action-button i,
.qpr_card-action-button svg {
  margin-right: 8px;
  vertical-align: middle;
}

.qpr_card-copy-button i,
.qpr_card-copy-button svg {
  margin-right: 6px;
  font-size: 15px;
}

/* QR Card with image styles */
.qpr_card-with-image {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 20px;
  min-height: 295px;
}

.qpr_card-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.qpr_card-content-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.qpr_card-image {
  width: 130px;
  background-color: #e6f2fa;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 15px;
  overflow: hidden;
  align-self: center;
  margin: 0 !important;
  height: -webkit-fill-available;
}

.qpr_card-image.analytics {
  /* background: linear-gradient(135deg, #e0f2fe, #a5f3fc); */
  background: #24375a0d;
}

.qpr_card-image.dashboard {
  /* background: linear-gradient(135deg, #ccfbf1, #d1fae5); */
  background: #24375a0d;
}

.qpr_card-image img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.placeholder-chart {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.placeholder-chart i {
  color: #4a90e2;
  opacity: 0.8;
  width: 48px;
}

/* Enhanced icon styling for the new layout */
.qpr_card-with-image .placeholder-chart i {
  font-size: 56px;
  color: #24375a;
  opacity: 0.9;
}

.icon-chart:before {
  content: "\e906";
}

/* Make sure cards are responsive */
@media (max-width: 768px) {
  .qpr_card-title {
    margin-bottom: 0 !important;
  }

  .qpr_card-with-image {
    flex-direction: column;
  }

  .qpr_card-image {
    flex: 0 0 auto;
    max-width: 100%;
    height: 100px;
    /* margin-top: 15px !important; */
    margin-bottom: 0 !important;
    width: 100%;
  }

  .qpr_card-content > div {
    flex-direction: column;
  }
}
