.container[data-theme-layout="messenger-layout"] {
    display: flex;
    height: 100vh;
}

.chat-history-pane {
    width: 250px;
    background: #361A42; /* Slack light sidebar purple */
    color: #FFFFFF; /* White text */
    padding: 10px;
    display: flex;
    flex-direction: column;
}

.chat-history-header {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 10px 15px;
    background: #361A42; /* Match sidebar */
    border-bottom: 1px solid #4A2A55; /* Subtle purple border */
}

.chat-history-header > div {
    display: flex;
    flex-direction: row; /* Force horizontal */
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    flex-wrap: nowrap;
    width: 100%;
}

.chat-history-header .input-button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s, transform 0.2s;
}

.chat-history-header .input-button:hover {
    background-color: rgba(255, 255, 255, 0.1); /* Light hover */
    transform: scale(1.05);
}

.chat-history-header .input-button img {
    width: 20px;
    height: 20px;
    filter: brightness(0) invert(1); /* White icons on purple */
}

.chat-history-list {
    list-style: none;
    padding: 0;
    flex-grow: 1;
    overflow-y: auto;
}

.chat-history-list li {
    padding: 10px;
    cursor: pointer;
    color: #FFFFFF;
}

.chat-history-list li:hover {
    background: #4A2A55; /* Darker purple hover */
}

.main-pane {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    background: #F5F5F5; /* Slack light main area */
    color: #2E2E2E;
}

/* Dark Mode Adjustments */
[data-theme-dark="true"] .chat-history-pane {
    background: #2E0F36; /* Slack dark sidebar purple */
}

[data-theme-dark="true"] .chat-history-header {
    background: #2E0F36;
    border-bottom: 1px solid #3F1A48;
}

[data-theme-dark="true"] .chat-history-header .input-button:hover {
    background-color: rgba(255, 255, 255, 0.2); /* Light hover in dark mode */
}

[data-theme-dark="true"] .main-pane {
    background: #2E2E2E; /* Slack dark main area */
    color: #E0E0E0;
}

.message-container {
    flex-grow: 1;
    overflow-y: auto;
    padding: 20px;
}

.user-message {
    background: #DCF8C6;
    padding: 10px;
    margin: 5px 0;
    border-radius: 5px;
    align-self: flex-end;
    max-width: 70%;
}

.assistant-message {
    background: #E6E6E6;
    padding: 10px;
    margin: 5px 0;
    border-radius: 5px;
    align-self: flex-start;
    max-width: 70%;
}

.error-message {
    background: #F8D7DA;
    color: #721C24;
    padding: 10px;
    margin: 5px 0;
    border-radius: 5px;
}

.send-container {
    padding: 10px;
    border-top: 1px solid #ddd;
}
