.comments-widget {
    margin: 20px 0;
    background-color: #f8faff;
    border: 1px solid #ddd;
    padding: 10px;
}

.comments-list {
    margin-top: 15px;
}

.comment-item {
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 10px;
    margin-bottom: 15px;
    background-color: #f9f9f9;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.comment-item:hover {
    background-color: #f8faff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.comment-header {
    border-bottom: 1px solid #ddd;
    padding-bottom: 10px;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
}

.comment-author {
    font-weight: bold;
    font-size: 15px;
    color: #333;
}

.comment-date {
    color: #777;
    font-style: italic;
    font-size: 13px;
}

.comment-category {
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: bold;
}

.comment-body {
    font-size: 14px;
    line-height: 1.6;
    color: #555;
    padding: 10px 0;
}

.comment-actions {
    text-align: right;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #ddd;
}

.comment-actions a {
    text-decoration: none;
    color: #f44336;
    font-weight: bold;
    font-size: 13px;
    transition: color 0.2s ease;
}

.comment-actions a:hover {
    color: #c62828;
}
.comment-read-action a {
    text-decoration: none;
    color: #a42fbd;
    font-weight: bold;
    font-size: 13px;
    transition: color 0.2s ease;
}

.comment-read-action a:hover {
    color: #ca81d9;
}


.comment-form-container {
    margin-top: 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 20px;
    background-color: #f7f7f7;
}

.comment-form-container h5 {
    margin-bottom: 15px;
    font-size: 16px;
    font-weight: bold;
    color: #333;
}

.comment-form-container .form-group {
    margin-top: 10px;
}

.comment-replies {
    margin-left: 30px;
    margin-top: 15px;
    border-left: 2px solid #ddd;
    padding-left: 15px;
}

.reply-form {
    margin-top: 15px;
    padding: 10px;
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.reply-form:after {
    content: '';
    display: table;
    clear: both;
}

/* Стили для модерации */
.comment-moderation-pending {
    background-color: #fff8e1;
    border-left: 4px solid #fbc02d;
}

.comment-moderation-rejected {
    background-color: #ffebee;
    border-left: 4px solid #d32f2f;
    color: #b71c1c;
}

.comment-moderation-approved {
    background-color: #e8f5e9;
    border-left: 4px solid #43a047;
    color: #2e7d32;
}
.comment-not-read {
    background-color: #ebe7fd;
}

.label-info {
    background-color: #6a57a1 !important;
    border: 2px solid #6a57a1;
}

/* Цветовые категории для удобной группировки */
.category-general { background-color: #e3f2fd; }
.category-question { background-color: #e0f2f1; }
.category-suggestion { background-color: #eceff1; }
.category-problem { background-color: #ffecb3; }
.category-praise { background-color: #f3e5f5; }