.chat-container {
    display: flex;
    flex-direction: column;
    position: relative;
    background-color: #f5f5f5;
}

.chat-history {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    scroll-behavior: smooth;
    background-color: white;
    margin: 0;
    border: 2px dashed #ced4da;
    position: relative;
}

.chat-message {
    margin-bottom: 1rem;
    padding: 0.8rem;
    border-radius: 8px;
    max-width: 80%;
    word-wrap: break-word;
    width: fit-content;
}

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

.user-message .markdown-body {
    color: white;
}

.user-message .markdown-body pre,
.user-message .markdown-body code {
    background-color: rgba(255, 255, 255, 0.1);
    color: #e6e6e6;
}

.assistant-message {
    background-color: #e9ecef;
    color: #212529;
    margin-right: auto;
}

.message-content {
    word-wrap: break-word;
    width: fit-content;
}

.message-content-image-container {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
}

.user-message-content {
    margin: 0.3rem auto;
    margin-left: auto;
}

.assistant-message-content {
    margin-right: auto;
}

.markdown-body {
    font-size: 1rem;
    line-height: 1.6;
}

.markdown-body p {
    margin: 0.5rem 0;
}

.markdown-body pre {
    background-color: #f8f9fa;
    padding: 0.5rem;
    border-radius: 4px;
    overflow-x: auto;
}

.markdown-body code {
    background-color: #f8f9fa;
    padding: 0.2rem 0.4rem;
    border-radius: 3px;
    font-family: monospace;
}

.markdown-body ul,
.markdown-body ol {
    margin: 0.5rem 0;
    padding-left: 1.5rem;
}

.markdown-body blockquote {
    margin: 0.5rem 0;
    padding-left: 1rem;
    border-left: 3px solid #dee2e6;
    color: #6c757d;
}

.markdown-body img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    margin: 0.5rem 0;
}

.message-timestamp {
    font-size: 0.75rem;
    opacity: 0.7;
    text-align: right;
}

.chat-input-form {
    display: flex;
    gap: 0.5rem;
    padding: 1rem;
    background-color: white;
    border-top: 1px solid #ced4da;
    position: sticky;
    bottom: 0;
    height: 40px;
}

.chat-input {
    flex: 1;
    padding: 0.5rem;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 1rem;
}

.send-button {
    padding: 0.5rem 1rem;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s;
}

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

.send-button:disabled {
    background-color: #6c757d;
    cursor: not-allowed;
}

.loading-spinner {
    display: flex;
    justify-content: center;
    padding: 0.5rem;
}

.spinner {
    width: 15px;
    height: 15px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.image-preview {
    position: relative;
    display: inline-block;
    margin: 0.5rem;
}

.remove-image {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: #dc3545;
    color: white;
    border: none;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    line-height: 20px;
    text-align: center;
    cursor: pointer;
    padding: 0;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.chat-header {
    display: flex;
    justify-content: flex-end;
    padding: 0.5rem;
    margin-bottom: 0.5rem;
}

.clear-history-button {
    padding: 0.5rem 1rem;
    background-color: #dc3545;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s;
    font-size: 0.9rem;
}

.clear-history-button:hover {
    background-color: #c82333;
}

.confirm-dialog {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.confirm-dialog-content {
    background-color: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    text-align: center;
}

.confirm-dialog-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
}

.confirm-yes, .confirm-no {
    padding: 0.5rem 1.5rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background-color 0.2s;
}

.confirm-yes {
    background-color: #dc3545;
    color: white;
}

.confirm-yes:hover {
    background-color: #c82333;
}

.confirm-no {
    background-color: #6c757d;
    color: white;
}

.confirm-no:hover {
    background-color: #5a6268;
}

.empty-chat {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #6c757d;
}

.empty-chat-emoji {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.empty-chat-text {
    font-size: 1.2rem;
    font-weight: 800;
    font-family: 'Arial', sans-serif;
    font-size: 2rem;
    white-space: nowrap;
    padding-left: 2rem;
    margin-bottom: 8rem;
} 