/* Resizable Panels Styles */

.panels-container {
  display: flex;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.panel {
  height: 100%;
  overflow: hidden;
  will-change: width; /* Hint to browser for optimized rendering */
}

.panel-left {
  min-width: 20%;
}

.panel-right {
  min-width: 40%;
}

.panel-divider {
  width: 6px;
  background-color: #334155; /* slate-700 */
  cursor: col-resize;
  position: relative;
  flex-shrink: 0;
  transition: all 0.15s ease-out;
  z-index: 10;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05); /* Subtle border */
}

/* Center grip indicator - three dots */
.panel-divider::after {
  content: "⋮"; /* Three vertical dots */
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: rgba(255, 255, 255, 0.5);
  font-size: 18px;
  line-height: 1;
  text-align: center;
  width: 10px;
  pointer-events: none; /* Ensure it doesn't interfere with clicks */
}

.panel-divider:hover {
  background-color: #6d28d9; /* violet-700 */
  box-shadow: 0 0 0 1px rgba(139, 92, 246, 0.5);
}

.panel-divider.dragging {
  background-color: #8b5cf6; /* violet-500 */
  box-shadow: 0 0 0 1px rgba(139, 92, 246, 0.8);
}

.panel-divider:hover::after,
.panel-divider.dragging::after {
  color: rgba(255, 255, 255, 1);
}

/* Make sure panels fill available space in the container */
.panel-content {
  height: 100%;
  display: flex;
  flex-direction: column;
}

/* Prevent selection while resizing */
body.resizing {
  user-select: none;
  -webkit-user-select: none;
}

/* Make the iframe container fill available space */
#app-container {
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* Make chat messages container fill available space */
#chat-messages {
  flex: 1;
  overflow-y: auto;
}

/* Make inner content of panels take full height */
.panel > .panel-content {
  height: 100%;
}