/* container.css */ .container, .content { display: flex; height: 100vh; width: 100vw; overflow: hidden; position: relative; /* Ensure relative positioning for proper transitions */ } .left-panel { margin-top: 10vh; width: 25vw; /* Adjust as needed */ transition: width 0.3s ease, opacity 0.3s ease, visibility 0.3s ease; /* Smooth transitions for all properties */ background-color: var(--left-panel-background-color); /* Use variable for background color */ border-radius: 0 1em 0 0; margin-left: 0; padding-right: 1em; } .left-panel.hidden { opacity: 0; /* Fade out when hidden */ width: 0; /* Collapse width to 0 */ visibility: hidden; /* Hide visibility while collapsing */ } .conversation-container { margin-top: 10vh; flex: 1; transition: margin-left 0.3s ease; /* Smooth margin adjustment */ background-color: var(--conversation-background-color); /* Use variable for background color */ border-radius: 1em 0 0 0; } /* Adjust margin-left when panel is shown or hidden */ .conversation-container.expanded { margin-left: 1vw; } .conversation-container.collapsed { margin-left: 1vw; /* Space for the left panel */ }