/* Estilos para modal fullscreen */
.modal-fullscreen {
  padding: 0 !important;
  background: transparent;
  max-width: unset;
  margin: 1.75rem auto;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

.modal-fullscreen .modal-dialog {
  width: 100vw;
  height: 100vh;
  max-width: none;
  margin: 0;
  padding: 0;
}

.modal-fullscreen .modal-content {
  height: 100vh;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.modal-fullscreen .modal-body {
  height: 100vh;
  padding: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-body {
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  perspective: 2000px;
}

.modal-body img {
  max-height: 90vh;
  max-width: 100vw;
  width: auto;
  height: auto;
  object-fit: contain;
  transform-origin: left;
  animation: bookOpen 2s ease-in-out forwards;
  box-shadow: 0 0 30px rgba(0,0,0,0.4);
  transform-style: preserve-3d;
  backface-visibility: hidden;
}

.view {
  display: none;
  width: 100%;
  height: 100%;
  position: relative;
}

.view.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

@keyframes bookOpen {
  0% {
    transform: perspective(2000px) rotateY(90deg) translateX(-100%);
    opacity: 0;
  }
  20% {
    transform: perspective(2000px) rotateY(90deg) translateX(-100%);
    opacity: 0;
  }
  100% {
    transform: perspective(2000px) rotateY(0deg) translateX(0);
    opacity: 1;
  }
}

.floating-close {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1060;
  padding: 10px 30px;
  font-size: 1.2rem;
  opacity: 0;
  animation: fadeIn 0.5s ease-in-out 2s forwards;
}

.floating-next {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1060;
  padding: 10px 30px;
  font-size: 1.2rem;
  opacity: 0;
  animation: fadeIn 0.5s ease-in-out 2s forwards;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translate(-50%, 20px);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

.modal-content {
  background: transparent;
  border: none;
}

.modal-header {
  border: none;
}

.btn-close {
  opacity: 0;
  animation: fadeIn 0.5s ease-in-out 2s forwards;
}

.qr-image {
  max-width: 30rem !important;
  width: 100%;
  height: auto;
  animation: qrRotateFade 2s ease-out forwards;
  opacity: 0;
  transform-origin: center;
}

@keyframes qrRotateFade {
  0% {
    opacity: 0;
    transform: rotate(-10deg) scale(0.9);
  }
  100% {
    opacity: 1;
    transform: rotate(0deg) scale(1);
  }
}
.modal-body .btn.btn-primary {
  background-color: #f45700 !important;
  border-color: #f45700 !important;
}

