#client-chat-app {
    display: flex;
    height: 90vh;
    background: #f7f7f7;
    font-family: 'Tajawal', sans-serif;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

#client-chat-app .client-chat-sidebar {
    width: 230px;
    background: #fff;
    border-left: 1px solid #ddd;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    padding-top: 10px;
}

#client-chat-app .client-chat-sidebar h3 {
    text-align: center;
    font-size: 16px;
    margin-bottom: 10px;
    font-weight: bold;
    color: #444;
    border-bottom: 1px solid #eee;
    padding-bottom: 5px;
}

#client-chat-app .client-chat-list-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    transition: background 0.2s ease;
    position: relative;
}

#client-chat-app .client-chat-list-item:hover,
#client-chat-app .client-chat-list-item.active {
    background-color: #e7f8fc;
}

#client-chat-app .client-chat-list-item img {
    width: 55px;
    height: 55px !important;
    border-radius: 50% !important;
    object-fit: cover;
    box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}

#client-chat-app .client-chat-list-item span {
    margin-top: 5px;
    font-size: 13px;
    color: #222;
    text-align: center;
}

#client-chat-app .client-chat-avatar-wrapper {
    position: relative;
}

#client-chat-app .client-chat-window {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 10px;
}

#client-chat-app .client-chat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
    background: #fff;
}

#client-chat-app .client-chat-header-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

#client-chat-app .client-chat-header-info img {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
}

#client-chat-app .client-chat-header-info .details {
    display: flex;
    flex-direction: column;
}

#client-chat-app .client-chat-header-info .details h3 {
    margin: 0;
    font-size: 16px;
    color: #222;
}

#client-chat-app .client-chat-header-info .details small {
    color: #888;
    font-size: 12px;
}

#client-chat-app .client-chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    background: #f7f7f7;
    display: flex;
    flex-direction: column;
    gap: 15px;
    direction: ltr;
    text-align: right;
}

#client-chat-app .message {
    max-width: 65%;
    padding: 10px 14px;
    border-radius: 16px;
    font-size: 14px;
    position: relative;
    line-height: 1.6;
}

#client-chat-app .message.from-me {
    background-color: #007c91;
    color: #fff;
    align-self: flex-end;
    border-bottom-left-radius: 0;
}

#client-chat-app .message.from-client {
    background-color: #85bd9a;
    color: #ffffff;
    align-self: flex-start;
    border-bottom-right-radius: 0;
}

#client-chat-app .message small {
    display: block;
    font-size: 11px;
    color: #fff;
    margin-top: 5px;
    text-align: left;
}

#client-chat-app .client-chat-send {
    display: flex;
    padding: 12px 15px;
    border-top: 1px solid #ddd;
    background: #fff;
}

#client-chat-app .client-chat-send textarea {
    flex: 1;
    border: 1px solid #ccc;
    border-radius: 8px;
    padding: 10px;
    font-size: 14px;
    resize: none;
    height: 45px;
    font-family: inherit;
}

#client-chat-app .client-chat-send button {
border-radius:10px;background: #2A7B9B;background: linear-gradient(90deg, rgba(42, 123, 155, 1) 0%, rgba(87, 199, 133, 1) 50%, rgba(134, 209, 189, 1) 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 10px 20px;
    margin-left: 10px;
    cursor: pointer;
    transition: background 0.2s ease;
}

#client-chat-app .client-chat-send button:hover {
    background-color: #005d70;
}
.client-chat-avatar-wrapper {
    position: relative;
}

.client-chat-notification {
    position: absolute;
    top: -5px;
    right: -5px;
    min-width: 18px;
    height: 18px;
    background: red;
    color: white;
    font-size: 11px;
    font-weight: bold;
    text-align: center;
    line-height: 18px; /* مهم علشان يوسّط الرقم رأسياً */
    border-radius: 50%;
    padding: 0 5px;
    display: inline-block;
    z-index: 2;
    box-shadow: 0 0 0 2px #fff; /* يعطيها مظهر أنظف فوق الصورة */
}


.client-chat-notification:empty {
    display: none;
}

/* ########المرفقات######## */
.file-upload-label {
    display: inline-block;
    background-color: #ffffff;
    padding: 5px 8px;
    margin: 5px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    color: #333;
    border: 1px solid #7a859e;
    transition: background 0.2s;
}

.file-upload-label:hover {
    background-color: #2e926c;
    color: #ffffff;
}
.attachcolor{color:#fff !important}
