/* === JITSI VISIO IDEA SERVICE === */

/* Base responsive iframe style */
.responsive-iframe {
  width: 500px;
  height: 350px;
  position: fixed;
  bottom: 80px;
  left: 20px;
  border: none;
  z-index: 9999;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}

/* Fullscreen simulated mode */
.responsive-iframe.fullscreen {
  width: 100vw !important;
  height: 100vh !important;
  left: 0 !important;
  bottom: 0 !important;
  border-radius: 0 !important;
}

/* Visio control buttons (Open, Close, Expand) */
#visio-button,
#visio-close,
#visio-expand,
#visio-fullscreen-close {
  position: fixed;
  z-index: 10000;
  font-size: 14px;
  padding: 10px;
  background: linear-gradient(135deg, #376ab3 0%, #2a5694 100%);
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  transition: all 0.3s ease;
  color: white;
  font-weight: 600;
}

#visio-button {
  bottom: 20px;
  left: 20px;
  display: flex;
  align-items: center;
  gap: 5px;
  font-weight: bold;
  backdrop-filter: blur(5px);
}

#visio-button:hover,
#visio-close:hover,
#visio-expand:hover,
#visio-fullscreen-close:hover {
  background: linear-gradient(135deg, #4a7bc4 0%, #3567a5 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(55, 106, 179, 0.4);
}

#visio-close {
  bottom: 20px;
  left: 160px;
}

#visio-expand {
  bottom: 20px;
  left: 220px;
}

#visio-fullscreen-close {
  top: 20px;
  left: 20px;
  font-size: 16px;
  font-weight: bold;
  padding: 12px 16px;
}

.visio-icon {
  width: 20px;
  height: 20px;
}

@media screen and (max-width: 768px) {
  .responsive-iframe {
    width: 90vw;
    height: 30vh;
    bottom: 80px;
    left: 5vw;
  }

  #visio-button {
    left: 5vw;
  }

  #visio-close {
    left: calc(5vw + 140px);
  }

  #visio-expand {
    left: calc(5vw + 200px);
  }

  #visio-fullscreen-close {
    left: 5vw;
  }
}

@media screen and (orientation: portrait) {
  #visio-fullscreen-close {
    display: none !important;
  }
  #visio-button {
    display: none !important;
  }
}
