.paper-viewer-main .p3 {
  color: #093350;
  font-family: "Roboto", sans-serif;
  font-weight: 400;
  font-style: Regular;
  font-size: 16px;
  leading-trim: NONE;
  line-height: 24px;
  letter-spacing: 0%;
}
.paper-viewer-main .image-container {
  position: relative;
  display: inline-block;
  width: 100%;
}

.paper-viewer-main #interactivePoints {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.paper-viewer-main .paper-pdf {
  box-shadow: 0px 12px 150px 0px #00000026;
  border-radius: 8px;
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
}
.paper-viewer-main .floating-circle {
  position: absolute;
  background: linear-gradient(180deg, #338af1 0%, #10adda 69.72%);
  width: 30.990942001342773px;
  height: 30.990942001342773px;
  border-radius: 50%;
  box-shadow: 0px 4px 4px 0px #0000001f;
  transform: translate(-50%, -50%);
  cursor: pointer;
  pointer-events: auto;
  z-index: 10;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.paper-viewer-main .floating-circle:hover {
  transform: translate(-50%, -50%) scale(1.1);
  box-shadow: 0px 6px 8px 0px #0000003f;
}

.paper-viewer-main .floating-circle:focus {
  outline: 2px solid #338af1;
  outline-offset: 2px;
}
.paper-viewer-main .cercle-container {
  width: 33;
  height: 33;
  background: linear-gradient(
    180deg,
    rgba(51, 138, 241, 0.3) 0%,
    rgba(16, 173, 218, 0.3) 69.72%
  );
  backdrop-filter: blur(16.700000762939453px);
}
.paper-viewer-main .title-circle {
  background: linear-gradient(180deg, #338af1 0%, #10adda 69.72%);
  width: 22.23263168334961;
  height: 22.23263168334961;
  border-radius: 50%;
  box-shadow: 0px 4px 4px 0px #0000001f;
  top: 50%;
  left: 50%;
}
.paper-viewer-main .page-fader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #06182c66;
  box-shadow: 0px 4px 4px 0px #0000001f;
  z-index: 1000;
  display: none;
}
.paper-viewer-main .modal-content {
  position: absolute;
  top: 50%;
  left: 55%;
  transform: translate(-50%, -50%);
  background: #1a4470;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0px 8px 32px rgba(0, 0, 0, 0.3);
  max-width: 750px;
  max-height: 100vh;
  z-index: 1001;
  opacity: 1;
  padding-top: 24px;
  padding-right: 44px;
  padding-bottom: 44px;
  padding-left: 44px;
  gap: 10px;
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  overflow: auto;
}

/* Close button - hidden by default (desktop) */
.paper-viewer-main .modal-close-btn {
  display: flex;
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  cursor: pointer;
  z-index: 1002;
  transition: background-color 0.3s ease;
  color: #ffffff;
  padding: 0;
  align-items: center;
  justify-content: center;
}

.paper-viewer-main .modal-close-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

.paper-viewer-main .modal-close-btn svg {
  width: 18px;
  height: 18px;
}

/* Custom scrollbar styles for modal */
.paper-viewer-main .modal-content::-webkit-scrollbar {
  width: 8px;
  padding-right: 10px;
}

.paper-viewer-main .modal-content::-webkit-scrollbar-track {
  background: #1a4470;
  border-radius: 4px;
  margin-right: 10px;
}

.paper-viewer-main .modal-content::-webkit-scrollbar-thumb {
  background: white;
  border-radius: 4px;
  margin-right: 10px;
}

.paper-viewer-main .modal-content::-webkit-scrollbar-thumb:hover {
  background: #f0f0f0;
}

.paper-viewer-main .modal-content::-webkit-scrollbar-button {
  display: none;
}

/* Mobile-specific adjustments for floating circles */
@media (max-width: 768px) {
  .paper-viewer-main .floating-circle {
    width: 25px;
    height: 25px;
  }

  .paper-viewer-main .floating-circle:hover {
    transform: translate(-50%, -50%) scale(1.2);
  }
}

@media (max-width: 480px) {
  .paper-viewer-main .floating-circle {
    width: 20px;
    height: 20px;
  }
}

/* Mobile devices (up to 480px) */
@media (max-width: 480px) {
  .paper-viewer-main .modal-content {
    padding: 12px;
    margin: 8px;
    max-width: calc(100vw - 16px);
    width: calc(100vw - 16px);
    max-height: calc(100vh - 16px);
    left: 50%;
    font-size: 13px;
  }
  .paper-viewer-main .h3-bold {
    font-size: 18px;
  }
  .paper-viewer-main .content-header {
    flex-direction: column;
    gap: 8px;
    text-align: center;
    margin-bottom: 12px;
  }

  .paper-viewer-main .modal-content .modal-desc {
    font-size: 13px;
    line-height: 1.3;
  }

  .paper-viewer-main .h3-bold {
    font-size: 20px !important;
    line-height: 24px !important;
  }
}

/* Small tablets and large phones (481px to 768px) */
@media (min-width: 481px) and (max-width: 768px) {
  .paper-viewer-main .modal-content {
    padding: 16px;
    margin: 12px;
    max-width: calc(100vw - 24px);
    width: calc(100vw - 24px);
    max-height: calc(100vh - 24px);
    left: 50%;
    font-size: 14px;
  }
  .paper-viewer-main .h3-bold {
    font-size: 20px;
  }
}

/* Tablets (769px to 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
  .paper-viewer-main .modal-content {
    padding: 20px;
    margin: 16px;
    max-width: 90vw;
    width: 90vw;
    max-height: calc(100vh - 32px);
    left: 50%;
    font-size: 15px;
  }
  .paper-viewer-main .h3-bold {
    font-size: 22px;
  }
}

/* Desktop and larger screens (1025px and up) */
@media (min-width: 1025px) {
  .paper-viewer-main .modal-content {
    max-width: 750px;
    width: auto;
    left: 55%;
  }
  .paper-viewer-main .h3-bold {
    font-size: 24px;
  }
}

@media (max-width: 480px) {
  .paper-viewer-main .modal-content {
    padding: 8px;
    margin: 4px;
    width: calc(100vw - 8px);
    max-height: calc(100vh - 8px);
    overflow-y: auto;
    font-size: 12px;
  }
  .paper-viewer-main .h3-bold {
    font-size: 20px !important;
  }
  .paper-viewer-main .modal-carrousel {
    padding-left: 12px;
    padding-right: 12px;
    flex-direction: column;
    gap: 10px;
  }

  .modal-carrousel .prev-step,
  .modal-carrousel .next-step {
    position: static;
    transform: none;
    margin: 0 auto;
    width: 32px;
    height: 32px;
  }

  .modal-carrousel .main-content {
    padding: 12px;
    width: 100%;
  }

  .modal-carrousel .step-title {
    font-size: 16px;
    margin-bottom: 12px;
  }

  .modal-carrousel .main-content .p-4 {
    font-size: 11px;
    line-height: 16px;
  }

  .paper-viewer-main .h3-bold {
    font-size: 18px !important;
    line-height: 22px !important;
  }

  .paper-viewer-main .modal-content .modal-desc {
    font-size: 12px;
    line-height: 1.2;
  }

  .paper-viewer-main .navigation-buttons {
    flex-direction: column;
    gap: 10px;
  }

  .paper-viewer-main .nav-btn-next,
  .paper-viewer-main .nav-btn-prev {
    width: 100%;
    text-align: center;
    padding: 10px 16px;
    font-size: 14px;
  }

  .paper-viewer-main .step-indicator {
    justify-content: center;
    margin: 10px 0;
  }

  .paper-viewer-main .h3-bold {
    font-size: 24px !important;
    line-height: 28px !important;
    text-align: center;
  }
}

.paper-viewer-main .modal-content .modal-desc {
  font-family: "Roboto", sans-serif;
  font-weight: 400;
  font-style: Regular;
  font-size: 16px;
  line-height: 140%;
  letter-spacing: 0%;
  color: #fff;
  text-align: left;
}

.paper-viewer-main .h3-bold {
  font-family: Inter;
  font-weight: 700;
  font-size: 40px;
  line-height: 46px;
  color: #ffffff;
  display: flex;
  align-items: center;
  margin-top: 0px;
  margin-bottom: 0px;
}
.paper-viewer-main .glow-circle {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: linear-gradient(180deg, #338af1 0%, #10adda 69.72%);
  box-shadow: 0 0 20px 10px rgba(16, 173, 218, 0.25),
    0 0 40px 20px rgba(16, 173, 218, 0), inset 0 0 10px rgba(255, 255, 255, 0.3);
  margin-right: 10px;
}
.paper-viewer-main .modal-carrousel {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  padding-left: 45px;
  padding-right: 45px;
  width: -webkit-fill-available;
  position: relative;
}
.modal-carrousel .prev-step {
  background: #093350;
  border-radius: 50%;
  height: 40px;
  width: 40px;
  position: absolute;
  left: 25px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.3s ease;
}
.modal-carrousel .next-step {
  background: #093350;
  border-radius: 50%;
  height: 40px;
  width: 40px;
  position: absolute;
  right: 25px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.3s ease;
}
.modal-carrousel .prev-step:hover,
.modal-carrousel .next-step:hover {
  background-color: #0a4a66;
}
.modal-carrousel .step-icon-img {
  width: 60px;
  height: 60px;
  max-width: unset;
}
.modal-carrousel .step-icon-img.flipped {
  transform: scaleX(-1);
}
.modal-carrousel .step-title {
  font-family: "Roboto", sans-serif;
  font-weight: 600;
  font-size: 28px;
  line-height: 100%;
  margin: 0 0 20px 0;
  color: #093350;
  text-align: left;
}
.modal-carrousel .main-content {
  background-color: #fff;
  border-radius: 8px;
  padding: 55px;
  width: -webkit-fill-available;
  padding-left: 40px;
  padding-right: 40px;
}
.modal-carrousel .main-content .p-4 {
  font-family: "Roboto", sans-serif;
  font-weight: 400;
  font-style: Regular;
  font-size: 14px;
  line-height: 20px;
  letter-spacing: 0%;
  color: #093350;
  text-align: left;
}

.paper-viewer-main .hover-text {
  text-decoration: underline;
  cursor: pointer;
  font-weight: 600;
  position: relative;
}

.paper-viewer-main .hover-text .tooltip {
  visibility: hidden;
  width: 250px;
  background: #edf5fe;
  color: #093350;
  text-align: left;
  border-radius: 16px;
  padding: 24px;
  gap: 14px;
  border: 1px solid #d4d4d8;
  position: absolute;
  z-index: 1002;
  bottom: 125%;
  left: 50%;
  margin-left: -125px;
  opacity: 0;
  transition: opacity 0.3s;
  font-size: 12px;
  line-height: 16px;
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
}

.custom-tooltip-popup h4 {
  margin: 0 0 8px 0 !important;
  font-family: "Roboto", sans-serif !important;
  font-weight: 700 !important;
  font-size: 20px !important;
  line-height: 28px !important;
  color: #093350 !important;
}

.custom-tooltip-popup p {
  margin: 0;
  font-family: "Roboto", sans-serif;
  font-weight: 400 !important;
  font-size: 14px !important;
  line-height: 20px !important;
  color: #093350 !important;
}

.paper-viewer-main .hover-text .tooltip::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: #edf5fe transparent transparent transparent;
}

.paper-viewer-main .hover-text:hover .tooltip {
  visibility: visible;
  opacity: 1;
}

.paper-viewer-main .content-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.paper-viewer-main .content-header p {
  margin: 0;
  flex: 1;
}

.paper-viewer-main .step-indicator {
  display: flex;
  border: 1px solid #6e759099;
  border-radius: 2px;
  padding-top: 6px;
  padding-right: 8px;
  padding-bottom: 6px;
  padding-left: 8px;
  gap: 14px;
  border-width: 1px;
  font-family: "Roboto", sans-serif;
  font-weight: 400;
  font-style: Regular;
  font-size: 12px;
  line-height: 24px;
  color: #6e7590;
}

.paper-viewer-main .step-counter {
  font-size: 14px;
  min-width: 40px;
  text-align: center;
}

.paper-viewer-main .step-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 24px;
  fill: #6e7590;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.paper-viewer-main .step-arrow svg {
  width: 14px;
  height: 24px;
}

.paper-viewer-main .step-arrow:disabled:hover {
  background-color: #ccc;
  transform: none;
}

.paper-viewer-main .navigation-buttons {
  padding-top: 20px;
  display: flex;
  margin-bottom: 20px;
  gap: 20px;
}

.paper-viewer-main .nav-btn-next {
  padding: 12px 24px;
  border: 1px solid #066fac;
  color: #fff;
  background-color: #066fac;
  border-radius: 2px;
  font-family: Roboto;
  font-weight: 500;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
  border-radius: 2px;
  padding-top: 12px;
  padding-right: 16px;
  padding-bottom: 12px;
  padding-left: 16px;
  font-family: Roboto;
  font-weight: 600;
  font-size: 16px;
  line-height: 24px;
}
.paper-viewer-main .nav-btn-prev {
  padding: 12px 24px;
  border: 1px solid #066fac;
  color: #066fac;
  background-color: #fff;
  border-radius: 2px;
  font-family: Roboto;
  font-weight: 500;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
  border-radius: 2px;
  padding-top: 12px;
  padding-right: 16px;
  padding-bottom: 12px;
  padding-left: 16px;
  font-family: Roboto;
  font-weight: 600;
  font-size: 16px;
  line-height: 24px;
}

.paper-viewer-main .nav-btn:hover {
  background: #093350;
  color: #fff;
}

.paper-viewer-main .nav-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.paper-viewer-main .nav-btn:disabled:hover {
  background: #fff;
  color: #093350;
}

/* Custom tooltip styles */
.custom-tooltip-popup {
  width: 250px;
  background: #edf5fe;
  color: #093350;
  text-align: left;
  border-radius: 16px;
  padding: 24px;
  gap: 14px;
  border: 1px solid #d4d4d8;
  transition: opacity 0.3s;
  font-size: 12px;
  line-height: 16px;
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
  pointer-events: none;
}

.paper-viewer-main .custom-tooltip-popup.show {
  opacity: 1;
}
.custom-tooltip-popup h4 {
  margin: 0 0 8px 0;
  font-family: "Roboto", sans-serif;
  font-weight: 700;
  font-size: 20px;
  line-height: 28px;
  color: #093350;
}

.custom-tooltip-popup p {
  margin: 0;
  font-family: "Roboto", sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 20px;
  color: #093350;
}

.paper-viewer-main .custom-tooltip-popup::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: #edf5fe transparent transparent transparent;
}

@keyframes fadeInTooltip {
  from {
    opacity: 0;
    transform: translateY(-5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Style for elements with custom-tooltip attribute */
.paper-viewer-main [custom-tooltip] {
  cursor: help;
  position: relative;
}
