body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
}

.container {
    width: 80%;
    margin: auto;
    overflow: hidden;
    padding: 20px;
}

h1 {
    color: #333;
    text-align: center;
}

#session-management {
    margin-bottom: 20px;
}

#session-select {
    width: 70%;
    padding: 10px;
    margin-right: 10px;
}

button {
    padding: 10px 15px;
    background-color: #333;
    color: #fff;
    border: none;
    cursor: pointer;
}

button:hover {
    background-color: #555;
}

#conversation {
    position: relative;
    background-color: #fff;
    border: 1px solid #ddd;
    padding: 20px;
    height: 400px;
    overflow-y: auto;
    margin-bottom: 20px;
    resize: vertical;
    overflow: auto;
    min-height: 200px; /* Prevent it from being made too small. */
    border-bottom-right-radius: 0; /* Ensure resize handle is visible */
    box-shadow: 0 0 5px rgba(0,0,0,0.1); /* Add shadow to make box more distinct */
}

.message {
    margin-bottom: 15px;
    padding: 10px;
    border-radius: 5px;
}

.user-message {
    background-color: #e6f2ff;
    text-align: right;
}

.agent-message {
    background-color: #f0f0f0;
}

/* Markdown styling */
.agent-message ul,
.agent-message ol {
    margin-top: 0.5em;
    margin-bottom: 0.5em;
    padding-left: 2em;
}

.agent-message ul li,
.agent-message ol li {
    margin-bottom: 0.3em;
}

.agent-message p {
    margin-top: 0.5em;
    margin-bottom: 0.5em;
}

.agent-message code {
    background-color: #f1f1f1;
    padding: 0.2em 0.4em;
    border-radius: 3px;
    font-family: monospace;
    font-size: 0.9em;
}

.agent-message pre {
    background-color: #f1f1f1;
    padding: 1em;
    border-radius: 5px;
    overflow-x: auto;
}

.agent-message pre code {
    background-color: transparent;
    padding: 0;
}

.agent-message table {
    border-collapse: collapse;
    margin: 1em 0;
    width: 100%;
}

.agent-message th,
.agent-message td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
}

.agent-message th {
    background-color: #f2f2f2;
}

#input-area {
    display: flex;
}

#query-input {
    flex-grow: 1;
    padding: 10px;
    margin-right: 10px;
}

#submit-query {
    flex-shrink: 0;
}
