/* Botões de tela cheia */
.fullscreen-btn {
  background-color: var(--primary-color);
  color: var(--white);
  border: none;
  border-radius: var(--border-radius);
  padding: 0.8rem 1.5rem;
  font-family: var(--body-font);
  font-weight: 600;
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin: 1rem auto 0;
  cursor: pointer;
  transition: all var(--transition-fast);
  box-shadow: 0 4px 12px rgba(66, 100, 251, 0.3);
}

.fullscreen-btn:hover {
  background-color: var(--primary-color-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(66, 100, 251, 0.4);
}

.fullscreen-btn i {
  font-size: 1.6rem;
}

/* Estilos do Modal */
.demo-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(19, 20, 42, 0.95);
  z-index: var(--z-modal);
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition-medium);
}

.demo-modal.active {
  display: flex;
  opacity: 1;
}

.modal-content {
  position: relative;
  width: 95%;
  height: 90%;
  background-color: var(--dark-bg);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
}

.modal-header {
  padding: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-header h3 {
  color: var(--white);
  margin-bottom: 0;
}

.modal-body {
  flex: 1;
  position: relative;
}

.modal-canvas-container {
  width: 100%;
  height: 100%;
}

.modal-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background-color: rgba(255, 255, 255, 0.1);
  border: none;
  width: 4rem;
  height: 4rem;
  border-radius: var(--border-radius-round);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--white);
  font-size: 2rem;
  transition: all var(--transition-fast);
  z-index: 2;
}

.modal-close:hover {
  background-color: rgba(255, 255, 255, 0.2);
  transform: rotate(90deg);
}

.modal-instructions {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  color: var(--white);
  text-align: center;
  background-color: rgba(0, 0, 0, 0.5);
  padding: 1.5rem;
  z-index: 1;
}

.iframe-container-fullscreen {
  width: 100%;
  height: 100%;
  position: relative;
}

.iframe-container-fullscreen iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* Media queries para responsividade */
@media (max-width: 768px) {
  .fullscreen-btn {
    font-size: 1.2rem;
    padding: 0.6rem 1.2rem;
  }

  .modal-content {
    height: 80%;
  }

  .modal-header {
    padding: 1.5rem;
  }
}
