/* Floating Quick Panel Styles */
.floating-quick-panel {
  position: fixed;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  background-color: #fff;
  border: 1px solid #dee2e6;
  border-right: none;
  border-radius: 6px 0 0 6px;
  box-shadow: -2px 0 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  z-index: 10000 !important; /* Highest priority - must be above all elements including dropdowns */
  display: flex;
}

/* Tab that sticks out for toggling the panel */
.floating-quick-panel .floating-tab {
  width: 25px;
  background-color: rgb(68, 110, 155);
  border-radius: 6px 0 0 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 10px 0;
  align-self: stretch;
  transition: background-color 0.2s;
}

.floating-quick-panel .floating-tab:hover {
  background-color: #a2d0ff;
}

.floating-quick-panel .floating-tab i {
  font-size: 1.2rem;
  color: #6c757d;
}

/* Main panel content */
.floating-quick-panel .panel-content {
  padding: 15px;
  width: 280px;
  overflow: visible;
  transition: max-width 0.3s ease, opacity 0.2s ease;
}

/* State transitions */
.floating-quick-panel.collapsed .panel-content {
  max-width: 0;
  padding: 15px 0;
  opacity: 0;
}

.floating-quick-panel.expanded .panel-content {
  max-width: 280px;
  opacity: 1;
}

/* Disabled state */
.floating-quick-panel.disabled-panel {
  opacity: 0.7;
  pointer-events: none;
}

/* When screen is small, make panel more compact */
@media (max-height: 600px) {
  .floating-quick-panel {
    top: auto;
    bottom: 20px;
    transform: none;
  }
}

/* Query panel transition */
.query-panel-container {
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.query-panel-container.hidden {
  max-height: 0;
  overflow: hidden;
}

.query-panel-container.visible {
  max-height: 500px;
  overflow: visible;
}
