/* chat.css */
.top-nav {
    display: flex;
    justify-content: flex-end;
    padding: 10px; 
}
body {
    display: block
    flex-direction: column;
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    justify-content: center;
    align-items: center;
    height: 100vh;
}
.chat-container {
    width: 95%;
    max-width: 1200px;
    margin: auto;
    background: var(--form-background-color);
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    height: 70%;
    /* height: 50vh; /* Set a fixed height */
    overflow-y: auto; /* Enable vertical scrolling */
}
.message {
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 5px;
    border: 1px solid #ddd;
    background-color: #f9f9f9;
}
.user-input {
    display: flex;
}

.user-input textarea {
    flex: 1;
    padding: 10px;
    margin-right: 10px;
    border-radius: 5px;
    border: 1px solid #ddd;
    overflow-y: auto; /* Make it scrollable */
    resize: none; /* Optional: Prevent resizing */
    height: 100px; 
}
.user-input button {
    border-radius: 5px;
    background-color: var(--button-color);
    color: white;
    cursor: pointer;
    height: 100px; /* Match the textarea height */
}
.user-input.btn-primary:hover {
    background-color: var(--button-hover-color);
}
.header {
    display: flex;
    justify-content: space-between;
    align-items: center; /* To vertically center the items if needed */
    padding: 0 20px; /* Adjust as necessary */
}
.loader {
    border: 5px solid #f3f3f3; /* Light grey background */
    border-top: 5px solid #3498db; /* Blue color */
    border-radius: 50%;
    width: 30px;
    height: 30px;
    animation: spin 1s linear infinite;
    display: none; /* hides it initially */
}

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

