/* General Styles */
body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f9;
    color: #333;
    margin: 0;
    padding: 0;
}

.chat-container {
    max-width: 800px;
    margin: 50px auto;
    padding: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    text-align: center;
}

h1, h2 {
    margin-bottom: 20px;
    color: #2c3e50;
}

.action-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.btn {
    text-decoration: none;
    background-color: #3498db;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.btn:hover {
    background-color: #2980b9;
}

.chat-box {
    max-height: 500px;
    overflow-y: auto;
    padding: 20px;
    border: 1px solid #ddd;
    background-color: #f9f9f9;
    border-radius: 8px;
    margin-bottom: 20px;
}

.chat {
    margin-bottom: 20px;
    display: flex;
    justify-content: flex-start;
}

.user {
    justify-content: flex-start;
}

.bot {
    justify-content: flex-end;
}

.user .message {
    background-color: #e1e1e1;
    color: #333;
    align-self: flex-start;
    border-radius: 15px 15px 15px 0;
}

.bot .message {
    background-color: #3498db;
    color: white;
    align-self: flex-end;
    border-radius: 15px 15px 0 15px;
}

.message {
    padding: 10px 20px;
    max-width: 70%;
    line-height: 1.4;
}

form {
    display: flex;
    justify-content: center;
    align-items: center;
}

input[type="text"] {
    width: 80%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 20px;
    margin-right: 10px;
    font-size: 16px;
}

input[type="submit"] {
    padding: 10px 20px;
    border: none;
    background-color: #3498db;
    color: white;
    border-radius: 20px;
    cursor: pointer;
    transition: background-color 0.3s;
}

input[type="submit"]:hover {
    background-color: #2980b9;
}

/* Loading Spinner */
.spinner {
    display: none;
    width: 30px;
    height: 30px;
    border: 4px solid rgba(0, 0, 0, 0.1);
    border-left-color: #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 10px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}
