/* Modal Base */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.6);
  z-index: 10001;
  align-items: center;
  justify-content: center;
}

.modal-overlay.viewer {
  z-index: 10002;
}

/* Modal Content */
.modal-content {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  position: relative;
  max-width: 450px;
  width: 85vw;
  padding: 40px;
}

.modal-content.viewer {
  width: 95vw;
  height: 90vh;
  max-width: none;
  padding: 20px;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
}

/* Modal Header */
.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.modal-title {
  font-family: Montserrat, sans-serif;
  margin: 0;
  color: #2c3e50;
  font-weight: 600;
  text-align: center;
}

.modal-title.main {
  font-size: 24px;
  margin-bottom: 32px;
}

.modal-title.viewer {
  font-size: 20px;
}

/* Close Button */
.modal-close {
  position: absolute;
  top: 16px;
  right: 20px;
  font-size: 28px;
  background: none;
  border: none;
  cursor: pointer;
  color: #6c757d;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.modal-close.viewer {
  position: static;
  font-size: 24px;
  width: 36px;
  height: 36px;
}

.modal-close:hover {
  background: #f8f9fa;
}

.modal-option {
  display: block;
  width: 80%;
  padding: 16px 24px;
  margin: 0 auto 20px auto;
  /* background: linear-gradient(135deg,  #516af5 0%, #516af5 25%, #ffffff 50%,#2044e6 75%,#01187c 100%); */
   background: linear-gradient(135deg,  #516af5 0%, #516af5 25%, #ffffff 50%,#01187c 75%,#000a35 100%);
  background-size: 400% 400%;
  background-position: 0% 50%;
  border: none;
  border-radius: 12px;
  text-decoration: none;
  color: white;
  font-family: 'Montserrat', sans-serif;
  font-size: 18px;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
  
  /* Transições suaves para mudança gradual */
  transition: transform 0.3s ease, box-shadow 0.3s ease, background-position 1.2s ease-in-out;
  -webkit-transition: transform 0.3s ease, box-shadow 0.3s ease, background-position 1.2s ease-in-out;
  -moz-transition: transform 0.3s ease, box-shadow 0.3s ease, background-position 1.2s ease-in-out;
  -o-transition: transform 0.3s ease, box-shadow 0.3s ease, background-position 1.2s ease-in-out;
}

.modal-option:hover {
  transform: translateY(-3px) scale(1.02);
  background-position: 100% 50%;
  /* box-shadow: 0 8px 25px rgba(55, 55, 255, 0.4); */
  box-shadow: 0 5px 5px rgba(31, 35, 255, 0.8);
}

.modal-option:active {
  transform: translateY(-1px) scale(1.01);
  transition: all 0.1s ease;
}

.modal-option:active {
  transform: translateY(-1px) scale(1.01);
  transition: all 0.1s ease;
}

.modal-option:active {
  transform: translateY(-1px) scale(1.01);
  transition: all 0.1s ease;
}

.modal-option.disabled {
  background: #e9ecef;
  color: #6c757d;
  cursor: not-allowed;
  box-shadow: none;
  transition: none;
}

.modal-option.disabled:hover {
  transform: none;
  box-shadow: none;
}

/* Iframe Container */
.iframe-container {
  width: 100%;
  flex: 1;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  overflow: hidden;
}