#support-chat-box {
    border: 2px solid #e3deff;
    padding: 10px;
    margin: 5px auto;
    max-width: 800px;
    background-color: #fbf8ff;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    direction: rtl;
    font-family: var(--font-titels), sans-serif !important;
}

#chat-header {
   text-align: right;
    font-size: 18px;
    font-weight: normal;
    color: #9066ea;
    padding: 10px 20px;
    margin-bottom: 10px;
    border-bottom: 1px solid #e3deff;
    background-color: #f0edff;
    border-radius: 8px;
    font-family: var(--font-titels), sans-serif !important;
}

#chat-messages {
    height: 400px;
    overflow-y: auto;
    margin-bottom: 10px;
    padding: 10px;
    background-color: #fff;
    border-radius: 10px;
}

#chat-messages .message {
    margin: 7px 12px;
    padding: 10px 15px;
    border-radius: 20px;
    max-width: 78%;
    word-wrap: break-word;
    margin-right: 0px;
}

#chat-messages .sent {
    background-color: #dcf8c6;
    margin-left: auto;
    text-align: right;
}

#chat-messages .received {
    background-color: #ffffff;
    border: 1px solid #eee;
    margin-right: auto;
    text-align: right;
    direction: rtl;
    margin-right: 0;
}

#chat-messages .message small {
    display: block;
    font-size: 0.8em;
    color: #888;
    margin-top: 5px;
}

#chat-messages .read-icon {
    width: 15px;
    height: 15px;
    margin-right: 5px;
    vertical-align: middle;
}

.chat-empty-state {
    display: none;
    padding: 20px;
    text-align: center;
    background-color: #f9f9f9;
    border-radius: 10px;
    margin: 10px 0;
    border: 1px dashed #ddd;
}

.chat-empty-state .empty-state-content {
    max-width: 600px;
    margin: 0 auto;
}

.chat-empty-state p {
    font-size: 15px;
    color: #555;
    line-height: 1.6;
    padding: 15px;
    background-color: #fff;
    border-radius: 8px;
    border: 1px solid #eee;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

#chat-form {
    display: flex;
    align-items: center;
    gap: 10px;
    background-color: #ffffff;
    padding: 5px;
    border-radius: 10px;
    border: 1px solid #e0e0e0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: all 0.2s ease;
    flex-direction: row-reverse;
}

#chat-form:focus-within {
    border-color: #9066ea;
    box-shadow: 0 0 0 3px rgba(0,123,255,0.15);
    background-color: #ffffff;
}

#chat-input {
    flex: 1;
    padding: 5px 8px;
    border: none;
    background: transparent;
    font-size: 1em;
    resize: none;
    outline: none;
    min-height: 40px;
    max-height: 120px;
    overflow-y: auto;
    line-height: 1.5;
    font-family: var(--font-content), sans-serif;
}

#chat-input::placeholder {
    color: #aaa;
}

#send-message {
    width: 40px;
    height: 40px;
    background-color: #ffffff00;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

#send-message img {
    width: 30px;
    height: 30px;
}