/* ===== Chat Message Styles ===== */
.msg-option {
    padding: 20px 30px;
    background: #fff;
    border: 1px solid #e4e3e3;
    border-top: none;
}

.msg-option__group {
    display: flex;
    align-items: center;
    padding: 5px;
}

.msg-option__content {
    border: 1px solid #e4e3e3;
}

.msg-option__input {
    background: transparent;
    border: none;
    height: auto;
    padding: 8px 20px !important;
}

.msg-option__input:focus {
    background: transparent;
    border: none;
    box-shadow: none;
}

.msg-option__button {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    line-height: 1;
    color: #fff;
    transition: all .3s ease;
}

.msg-option__button:hover {
    color: #fff;
}

/* ===== Message List Items ===== */
.msg-list__item {
    margin-bottom: 16px;
    display: flex;
    gap: 8px;
    align-items: flex-end;
}

.msg-list__item:last-child {
    margin-bottom: 0;
}

.msg-list__item img {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #fff;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

.msg-list__item .username {
    text-decoration: none;
    font-weight: 600;
    font-size: 12px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 3px;
}

/* ===== Send Messages ===== */
.msg-send {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    width: 100%;
}

.msg-send .username {
    color: #ffffff !important;
}

.msg-send .username:hover {
    color: #bfdbfe !important;
}

.msg-send__content {
    color: #fff !important;
    padding: 10px 14px;
    font-size: 14px;
    text-align: right;
    background: linear-gradient(135deg, #1868db, #1a5dd6);
    border-radius: 18px 18px 4px 18px;
    display: inline-block;
    max-width: 75%;
    min-width: 80px;
    word-wrap: break-word;
    box-shadow: 0 1px 3px rgba(24, 104, 219, 0.25);
    line-height: 1.45;
}

.msg-send a {
    color: #bfdbfe !important;
    text-decoration: underline;
}

.msg-send__text {
    color: #ffffff !important;
}

.msg-send__content p {
    color: #ffffff !important;
}

.msg-send__history {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
    padding: 0 4px;
    justify-content: flex-end;
}

.msg-send__history-item {
    color: rgba(255, 255, 255, 0.6);
    font-size: 11px;
}

.msg-send__history-item:first-child::after {
    content: '';
    display: inline-block;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: #d1d5db;
    margin-left: 8px;
}

.msg-send__history-item:last-child {
    margin-right: 0;
}

/* ===== Receive Messages ===== */
.msg-receive {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
}

.msg-receive__content {
    color: #1f2937;
    padding: 10px 14px;
    font-size: 14px;
    text-align: left;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 18px 18px 18px 4px;
    display: inline-block;
    max-width: 75%;
    min-width: 80px;
    word-wrap: break-word;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
    line-height: 1.45;
}

.msg-receive a {
    color: #1868db;
}

.msg-receive__history {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
    padding: 0 4px;
}

.msg-receive__history-item {
    color: #9ca3af;
    font-size: 11px;
}

.msg-receive__history-item:first-child::after {
    content: '';
    display: inline-block;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: #d1d5db;
    margin-left: 8px;
}

.msg-receive__history-item:last-child {
    margin-right: 0;
}

/* ===== Inbox ===== */
.inbox_msg {
    clear: both;
    overflow: hidden;
}

.messaging {
    max-height: 475px;
    overflow: auto;
    padding-right: 15px;
    scrollbar-width: thin;
    scrollbar-color: #ddd #fff;
}

/* ===== Scrollbar ===== */
*::-webkit-scrollbar {
    width: 6px;
}

*::-webkit-scrollbar-track {
    background: transparent;
}

*::-webkit-scrollbar-thumb {
    background-color: #d1d5db;
    border-radius: 999px;
}

/* ===== Empty State ===== */
.empty-message__icon i {
    font-size: 36px;
    color: #1868db;
}

.empty-message__heading {
    font-size: 18px;
    font-weight: 700;
    color: #1f2937;
    max-width: 300px;
    margin: 0 auto;
    line-height: 1.2;
    margin-top: 15px;
}

/* ===== File Messages ===== */
.msg-send__content.file,
.msg-receive__content.file {
    background: none !important;
    border: none !important;
    padding: 4px !important;
    display: flex !important;
    box-shadow: none !important;
}

.msg-send__content.file img,
.msg-receive__content.file img {
    border-radius: 12px !important;
    max-width: 220px;
}

.msg-receive__content.file {
    justify-content: flex-start !important;
}

.msg-send__content.file {
    justify-content: flex-end !important;
}

/* ===== Responsive ===== */
@media screen and (max-width: 575px) {
    .empty-message__icon i {
        font-size: 28px;
    }

    .empty-message__heading {
        font-size: 16px;
    }

    .msg-send__content,
    .msg-receive__content {
        max-width: 85%;
    }
}
