.chat-box {
    width: 100%;
    max-height: 500px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 0 10px rgba(0,0,0,0.3);
    background: white;
    z-index: 9999;
}

.chat-header {
    background: #0B1552;
    color: white;
    padding: 10px;
    font-weight: bold;
}

.chat-body {
    height: 300px;
    overflow-y: scroll;
    padding: 10px;
    border-top: 1px solid #ccc;
    border-bottom: 1px solid #ccc;
}

.chat-input {
    display: flex;
    padding: 10px;
}

.chat-input input {
    flex: 1;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.chat-input button {
    margin-left: 5px;
    padding: 8px 12px;
    border: none;
    background: #007bff;
    color: white;
    border-radius: 4px;
    cursor: pointer;
}

.chat-message {
    margin-bottom: 10px;
    background: #f0f0f0;
    padding: 8px;
    border-radius: 8px;
}

.chat-message img {
    border-radius: 5px;
    margin-top: 5px;
}

.chat-message a {
    display: block;
    color: blue;
    margin-top: 4px;
    text-decoration: underline;
}

.message {
    display: flex;
    margin: 10px 15px; /* top-bottom 10px, left-right 15px */
    max-width: 100%;
}

.message.user {
    justify-content: flex-end;
    padding-left: 50px; /* push inward from left */
    padding-right: 0;
}

.message.Admin {
    justify-content: flex-start;
    padding-right: 50px; /* push inward from right */
    padding-left: 0;
}


.bubble {
    padding: 10px 15px;
    border-radius: 15px;
    position: relative;
    font-size: 14px;
    max-width: 100%;
    word-wrap: break-word;
}

.message.user .bubble {
    background-color: #007bff;
    color: white;
    border-bottom-right-radius: 0;
}

.message.Admin .bubble {
    background-color: #949498;
    color: #fff;
    border-bottom-left-radius: 0;
    /*#e5e5ea*/
}

.timestamp {
    display: block;
    font-size: 0.75em;
    color: #ccc;
    margin-top: 5px;
    text-align: right;
}


#chatBox.chat-box {
    width: 100%;
    
    background: white;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0,0,0,0.2);
    overflow: hidden;
    z-index: 999;
}

.message.special {
    display: block; /* override flex */
    text-align: center;
    font-style: italic;
    font-weight: bold;
    background-color: #fff;
    color: #0056b3;
    padding: 1px 1px;
    border-radius: 20px;
    margin: 1px auto; /* center it horizontally */
    max-width: 50%; /* optional: make it a bit narrow and neat */ 
}


