/* ===============================
   VIDAPI LEFT SLIDING DOOR
=============================== */

/* Button Style */
.vidapi-door-toggle {
  position: fixed;
  top: 20px;  /* Align at the top */
  right: 20px;  /* Align to the right */
  z-index: 99999994;
  background: #173239;
  color: #fff;
  border: none;
  padding: 10px 16px;
  letter-spacing: 2px;
  cursor: pointer;
  display: flex;
  align-items: center;
  border-radius: 8px;
  font-weight: bold;
  font-size: 16px;
  overflow-x: hidden; /* Disable horizontal scroll for children */
  overflow-y: hidden;
}

/* Red dot indicator */
.vidapi-door-toggle .red-dot {
  width: 12px;
  height: 12px;
  background-color: red;
  border-radius: 50%;
  margin-right: 10px; /* Space between the dot and the text */
}

/* Overlay */
.vidapi-door-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  opacity: 0;
  visibility: hidden;
  transition: 0.3s ease;
  z-index: 999;
}

/* Door Panel */
.vidapi-door {
  position: fixed;
  top: 0;
  left: -600px; /* Initially hidden off screen on the left */
  width: 600px;
  height: 100vh;
  background: #2c3d41;
  box-shadow: 6px 0 20px rgba(0, 0, 0, 0.5); /* Shadow on the right side */
  transition: left 0.4s cubic-bezier(0.77, 0, 0.18, 1);
  z-index: 1000;
  display: flex;
  flex-direction: column;
}

/* Header */
.vidapi-door-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  border-bottom: 1px solid #173239;
  letter-spacing: 3px;
}

/* Content */
.vidapi-door-content {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  overflow:hidden;
}

/* Active state (door slides in from the left) */
.vidapi-door.active {
  left: 0;
}

.vidapi-door-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Mobile full-width */
@media (max-width: 768px) {
  .vidapi-door {
    width: 100%;
  }
}