/**
Shoutout chatgpt for helping me with css cause I am badddd at it lol
. is class
# is id
**/

/* Main chat container */
.chat-container {
    display: flex;
    flex-direction: column;
    height: 80vh;
    width: 100%;
    max-width: 90vw;
    margin: 2rem auto;
    padding: 1rem;
    border: 2px solid #ccc;
    border-radius: 12px;
    overflow: hidden;
    background-color: #ffffff;
    box-shadow: 0 0 12px rgba(0, 0, 0, 0.1);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;: 'Baloo 2', cursive;
}

/* Chat message display area */
.chat-box {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    display: flex;
    flex-direction: column-reverse; /* newest at bottom */
    gap: 10px;
    background-color: #f5f5f5;
    scroll-behavior: smooth;
    border: 1px solid #ccc;
    border-radius: 4px;
    margin-bottom: 1rem;
}

/* Individual message styling (for li elements) */
.chat-box li {
    list-style: none;
    background: #e1f5fe;
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    max-width: 95%;
    word-wrap: break-word;
}

/* Individual message styling (for .message class) */
.message {
    margin-bottom: 0.8rem;
    padding: 10px;
    background-color: #e1f5fe;
    border-left: 4px solid #e3a157;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    max-width: 95%;
    word-wrap: break-word;
}

/* Chat input form */
.chat-form {
    display: flex;
    gap: 10px;
    padding: 15px;
    background-color: #fff;
    border-top: 1px solid #ddd;
}

/* Form inputs */
.chat-form input {
    flex: 1;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 14px;
}

/* Form button */
.chat-form button {
    padding: 10px 20px;
    background-color: #e3a157;
    color: white;
    border: none;
    font-weight: bold;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.chat-form button:hover {
    background-color: #d28e3c;
}

/* Success message */
#successMessage {
    height: 1.5em;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
    text-align: center;
    color: green;
    font-weight: bold;
    margin-top: 10px;
}

#successMessage.show {
    opacity: 1;
    visibility: visible;
}