﻿.text-justify {
    text-align: justify
}




.bg-green {
    background-color: #5D9C59;
    color: white;
    border-radius: 55px 98px 98px 5px;
    padding: 5px;
}




.bg-blue {
    background-color: #419197;
    color: white;
    border-radius: 55px 98px 98px 5px;
    padding: 5px;
}




.bg-red {
    background-color: #C51605;
    color: white;
    border-radius: 55px 98px 98px 5px;
    padding: 5px;
}




.bg-purple {
    background-color: #ac23c7;
    color: white;
    border-radius: 55px 98px 98px 5px;
    padding: 5px;
}




.bg-muddy-green {
    background-color: #0b6353;
    color: white;
    border-radius: 55px 98px 98px 5px;
    padding: 5px;
}



.bg-orange {
    background-color: #f18701;
    color: white;
    border-radius: 55px 98px 98px 5px;
    padding: 5px;
}

 


.background-primary{
    background-color: #c63c41;
    color: white;
}


#box-comment{

    height:500px;
    overflow:auto


}


/* اسکرول‌بار */
    #box-comment::-webkit-scrollbar {
        width: 10px; /* عرض اسکرول‌بار */
    }

/* ریل اسکرول‌بار */
    #box-comment::-webkit-scrollbar-track {
        background: #f3f3f3; /* رنگ زمینه ریل */
        border-radius: 10px;
    }

/* شست اسکرول‌بار */
    #box-comment::-webkit-scrollbar-thumb {
        background: linear-gradient(180deg, #ff7b54, #ff006e); /* رنگ گرادینت شست */
        border-radius: 10px;
        transition: background-color 0.3s ease;
    }

    /* افکت hover برای شست اسکرول‌بار */
        #box-comment::-webkit-scrollbar-thumb:hover {
            background: linear-gradient(180deg, #ff5f36, #e6005a); /* رنگ هنگام hover */
        }

/* استایل کلی برای نظر اصلی */
.comment {
    background-color: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* محتوای نظر اصلی */
.comment-text {
    background-color: #ffffff;
    padding: 12px;
    border-radius: 6px;
    color: #333;
    font-size: 15px;
    border-right: 4px solid #4a90e2; /* حاشیه سمت راست نظر */
}

.comment::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 30px;
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 10px solid #f9f9f9;
}



.user-logo, .admin-logo {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    margin-right: 10px;
}

.username {
    font-weight: bold;
    color: #444;
}

/* استایل برای بخش پاسخ‌ها */
.replies {
    margin-top: 15px;
    padding-left: 20px;
}

/* استایل برای پاسخ‌ها */
.reply {
    background-color: #f1f8ff; /* زمینه روشن برای پاسخ‌ها */
    border: 1px solid #e0e0e0;
    padding: 10px;
    border-radius: 8px;
    margin-top: 15px;
    position: relative;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.04);
    border-left: 4px solid #4a90e2; /* خط عمودی کنار پاسخ */
}

    /* مثلث دم پاسخ */
    .reply::after {
        content: '';
        position: absolute;
        bottom: -10px;
        left: 30px;
        width: 0;
        height: 0;
        border-left: 8px solid transparent;
        border-right: 8px solid transparent;
        border-top: 10px solid #f1f8ff; /* رنگ زمینه پاسخ */
    }

/* استایل متن پاسخ */
.reply-text {
    color: #555;
    font-size: 14px;
}

/* سربرگ پاسخ */
.reply-header {
    display: flex;
    align-items: center;
    margin-bottom: 5px;
}

/* حاشیه متفاوت برای ادمین */
.admin-reply {
    border-left: 4px solid #ff7b54; /* خط رنگی مخصوص پاسخ ادمین */
}

/* مثلث اشاره به نظر */
.reply-arrow {
    position: absolute;
    top: -10px; /* بالا بردن مثلث */
    left: 20px; /* موقعیت مثلث */
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 10px solid #ff7b54; /* رنگ زمینه پاسخ */
}
