﻿
/* Chatbox styling */
.chat-box {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 5%;
    background: var(--linear-to-left);
    border: 1px solid #ccc;
    border-radius: 5px;
    padding: 20px;
    width: 300px;
    height: 400px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    display: flex;
    flex-direction: column;
}

    .chat-box h2 {
        margin-top: 0;
        margin-bottom: 10px;
    }

.close-button {
    position: absolute;
    top: 10px;
    right: 10px;
    cursor: pointer;
    font-size: 20px;
    color: #888;
}

    .close-button:hover {
        color: #222;
    }

/* Chat display area */
#chatDisplay {
    flex: 1;
    overflow-y: auto;
    padding-bottom: 10px;
}

/* Message styling */
.message {
    padding: 8px 15px;
    border-radius: 10px;
    margin-bottom: 5px;
    max-width: 80%;
    clear: both;
}

.sent {
    background-color: var(--deep-violet);
    align-self: flex-end;
    margin-left: auto;
    text-align: right;
    font-size: 0.8em;
    animation: fadeIn 0.5s;
    width: fit-content;
    color: #fff;
}

.received {
    background-color: #fff;
    align-self: flex-start;
    margin-right: auto;
    text-align: left;
    font-size: 0.8em;
    width: fit-content;
}

/* Input area */
.input-container {
    display: flex;
    margin-top: 10px;
}

#chatInput {
    flex: 1;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 5px 0 0 5px;
    outline: none;
    width: 100px;
    font-size: 0.8em;
}

#sendButton {
    padding: 8px 15px;
    background-color: var(--deep-violet);
    color: white;
    border: none;
    border-radius: 0 5px 5px 0;
    cursor: pointer;
    font-size: 0.8em;
}

.msg-date{
    font-size: 0.6em;
}