body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #DEDEDE;
}

.header {
    font-size: 16px;
    font-weight: 400;
    background: #DEDEDE;
    padding: 8px;
    margin-bottom: 0;
}

.header a {
    text-decoration: none;
}

.header h1 {
    color: #007bff;
    margin: 0;
    font-size: 24px;
    text-align: center;
}

.header h1:hover {
    color: #0056b3;
}

.chat-container {
    max-width: 100%;
    margin: 0;
    background: #DEDEDE;
    display: flex;
    flex-direction: column;
    height: 100vh;
}

.messages {
    flex-grow: 1;
    overflow-y: auto;
    padding: 10px;
    padding-bottom: 0;
}

.message {
    margin-bottom: 8px;
    padding: 8px 12px;
    border-radius: 8px;
    max-width: 100%;
    word-wrap: break-word;
}

.message:last-child {
    margin-bottom: 0;
}

.user-message {
    background-color: #007bff;
    color: white;
    margin-left: auto;
}

.bot-message {
    background-color: #e9ecef;
    color: black;
    line-height: 1.5;
}

/* Markdown styling */
.bot-message ul,
.bot-message ol {
    margin: 8px 0;
    padding-left: 20px;
}

.bot-message li {
    margin: 4px 0;
}

.bot-message strong {
    font-weight: bold;
}

.bot-message p {
    margin: 8px 0;
}

.input-container {
    display: flex;
    padding: 8px;
    gap: 8px;
    background-color: #DEDEDE;
    position: sticky;
    bottom: 0;
}

#messageInput {
    flex-grow: 1;
    padding: 8px 12px;
    border: 1px solid #dee2e6;
    border-radius: 20px;
    min-height: 24px;
    max-height: 200px;
    resize: none;
    font-size: 16px;
    line-height: 1.4;
    background-color: white;
}

#messageInput::placeholder {
    color: #999;
    font-style: italic;
}

button {
    padding: 8px 16px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.2s;
}

button:hover {
    background-color: #0056b3;
}

button:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
}

.status {
    padding: 8px;
    text-align: center;
    color: green;
    font-size: 0.9em;
    background-color: #DEDEDE;
}

.typing {
    font-style: italic;
    color: #666;
    padding: 8px;
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #DEDEDE;
}

::-webkit-scrollbar-thumb {
    background: #999;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #666;
}
