body {
    font-family: 'Arial', sans-serif;
    background-color: #f2f6fa;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.top-bar {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    align-items: center;
}

#clear-button {
    background-color: #f44336;
    color: #fff;
    border: none;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 13px;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.container {
    width: 90%;
    max-width: 800px;
    background-color: #fff;
    border-radius: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    padding: 30px;
}

.header {
    text-align: center;
    margin-bottom: 30px;
}

.title-section {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}

/* New styling for the Preview Version badge */
.preview-version {
    background-color: #ffeb3b;  /* Bright background to grab attention */
    color: #333;
    padding: 5px 10px;
    margin-left: 15px;
    border-radius: 5px;
    font-size: 14px;
    font-weight: bold;
}

.emoji {
    font-size: 30px;
    margin-right: 10px;
}

.title {
    font-size: 28px;
    color: #663399;
    font-weight: bold;
    margin: 0;
}

.subtitle {
    font-size: 16px;
    color: #555;
    margin: 0;
}

.suggestion-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: 30px;
}

.suggestion-button {
    flex: 0 0 calc(33% - 20px);
    background: linear-gradient(to bottom, #8a2be2, #483d8b);
    border: none;
    padding: 15px;
    margin-bottom: 10px;
    border-radius: 25px;
    font-size: 12px;
    color: #fff;
    cursor: pointer;
    transition: background-color 0.3s, box-shadow 0.3s;
    text-align: left;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.suggestion-button:hover {
    background: linear-gradient(to bottom, #7b1fa2, #483d8b);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.chat-area {
    position: relative;
    margin-bottom: 20px;
    height: 55vh;
    border-radius: 20px;
    background-color: #f9f9f9;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
}

#chatbox {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
    border-radius: 20px;
}

.bot-message, .user-message {
    display: flex;
    margin: 15px 0;
    width: 100%;
    min-height: 40px;
    align-items: flex-start;
}

.user-message {
    flex-direction: row-reverse;
}

.message-content {
    max-width: 70%;
    min-width: 120px;
    position: relative;
    padding: 12px 15px;
    border-radius: 20px;
    font-size: 14px;
    line-height: 1.5;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: pre-wrap;
}

.bot-message .message-content {
    background: #fff;
    margin-left: 10px;
    color: #333;
    overflow: visible;
}

.user-message .message-content {
    background: #663399;
    color: white;
    margin-right: 10px;
}

.typing-indicator {
    display: inline-flex;
    padding: 8px 15px;
    background: #eee;
    border-radius: 15px;
    margin-left: 10px;
}

.typing-dot {
    width: 6px;
    height: 6px;
    margin: 0 2px;
    background: #666;
    border-radius: 50%;
    animation: typing 1.4s infinite;
}

@keyframes typing {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

#input-area {
    display: flex;
    align-items: center;
    margin-top: 30px;
}

#user-input {
    flex-grow: 1;
    border: none;
    padding: 18px;
    margin-right: 15px;
    border-radius: 30px;
    font-size: 15px;
    background-color: #f5f5f5;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s;
}

#user-input:focus {
    outline: none;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1), 0 0 0 3px #663399;
}

#send-button {
    background-color: #663399;
    color: #fff;
    border: none;
    padding: 15px 25px;
    border-radius: 30px;
    cursor: pointer;
    font-size: 15px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s, box-shadow 0.3s;
}

#send-button:hover {
    background-color: #522785;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.avatar {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background-color: #ddd;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    color: #fff;
    margin-right: 10px;
    flex-shrink: 0;
    font-size: 14px;
}

.user-message .avatar {
    background-color: #663399;
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f0f0f0;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #bbb;
}

@media (max-width: 700px) {
    .suggestion-buttons {
        flex-direction: column;
    }

    .suggestion-button {
        flex: 0 0 auto;
        width: 95%;
    }

    .container {
        width: 95%;
        padding: 15px;
        margin-top: 50px;
    }

    .message-content {
        max-width: 85%;
    }

    #user-input {
        padding: 10px;
        font-size: 13px;
    }

    #send-button {
        padding: 10px 15px;
        font-size: 13px;
    }
}
