/* =====================================================
   Unit Comments (Q&A) - unit-detail.php
   ===================================================== */
.unit-comments-section {
    margin-top: 30px;
    padding-top: 24px;
    border-top: 1px solid #EDEFF2;
}

.comments-thread {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 18px;
}

.comment-bubble {
    max-width: 85%;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 14px;
    line-height: 1.7;
}
.comment-bubble p { margin: 4px 0 0; }

.comment-customer {
    background: var(--blue);
    color: var(--white);
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}
[dir="rtl"] .comment-customer { border-bottom-right-radius: 12px; border-bottom-left-radius: 4px; }

.comment-admin {
    background: #F4F6F9;
    color: var(--navy);
    align-self: flex-start;
    border-bottom-left-radius: 4px;
}
[dir="rtl"] .comment-admin { border-bottom-left-radius: 12px; border-bottom-right-radius: 4px; }

.comment-sender { font-size: 12px; font-weight: 700; opacity: .85; }
.comment-time { display: block; font-size: 11px; opacity: .7; margin-top: 6px; }

.comment-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.comment-form textarea {
    width: 100%;
    border: 1px solid #E1E6EC;
    border-radius: 10px;
    padding: 12px 14px;
    font-family: inherit;
    font-size: 14px;
    resize: vertical;
    outline: none;
}
.comment-form textarea:focus { border-color: var(--blue); }
.comment-form button { align-self: flex-start; }

/* شارة عدد التنبيهات غير المقروءة - لوحة التحكم والحساب الشخصي */
.notif-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    background: #E53935;
    color: #fff;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 700;
    margin-inline-start: 6px;
}
