/* Parent Flex Container */
.flex-container-body {
  display: flex;
  width: 100%;
  min-height: 100vh;
  overflow-x: hidden; /* Prevents scrollbars during smooth transitions */
}

/* Main Content Area */
.flex-column-main {
  flex: 2; /* Takes all remaining available space */
    transition: flex 0.3s ease;
}

/* Right Sidebar */
.flex-column-right {
    flex: 1;
    min-width: 0; /* CRITICAL: Allows flex child to shrink down to 0px */
    position: relative;
    background-color: #2c3e50;
    color: #ffffff;
    transition: flex 0.3s ease;
}

/* Sidebar Closed State */
.flex-column-right.closed {
  flex: 0 0 0px;
}

/* Inner content fixed width prevents text wrapping/squishing during animation */
.sidebar-content {

  padding: 20px;
  box-sizing: border-box;
  overflow: hidden;
  transition: opacity 0.2s ease;
}

.flex-column-right.closed .sidebar-content {
  opacity: 0;
  pointer-events: none; /* Prevents clicking links when hidden */
}

/* Toggle Button Styling */
.toggle-btn {
  position: absolute;
  top: 20px;
  left: -35px; /* Extends into the main content area */
  width: 35px;
  height: 35px;
  background-color: #2c3e50;
  border: none;
  color: white;
  cursor: pointer;
  border-radius: 5px 0 0 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  z-index: 10;
}

/* Arrow rotation */
.flex-column-right.closed .icon-arrow {
  transform: rotate(180deg);
}

.icon-arrow {
  display: inline-block;
  transition: transform 0.3s ease;
}