/* ========================================
   Main Container
   ======================================== */
.reviews-header h4 {
    font-weight: bold;
    color: #333;
}

/* ========================================
   Review Item
   ======================================== */
.review-item {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    transition: box-shadow 0.3s ease;
}

.review-item:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* ========================================
   Review Header
   ======================================== */
.review-header {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
}

.review-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    margin-left: 15px;
    border: 2px solid #f0f0f0;
}

.review-user-info {
    flex: 1;
}

.review-user-name {
    font-weight: bold;
    font-size: 14px;
    color: #333;
    margin-bottom: 5px;
}

.review-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    color: #666;
    flex-wrap: wrap;
}

/* ========================================
   Rating
   ======================================== */
.review-rating {
    display: flex;
    align-items: center;
    gap: 3px;
}

.review-rating .star {
    color: #fbbf24;
    font-size: 14px;
}

.review-rating .star.empty {
    color: #e0e0e0;
}

/* ========================================
   Vendor
   ======================================== */
.review-vendor {
    display: inline-flex;
    align-items: center;
    background: #f8f9fa;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 11px;
    color: #666;
}

.review-date {
    color: #999;
}

/* ========================================
   Content
   ======================================== */
.review-content {
    margin: 15px 0;
    line-height: 1.8;
    color: #444;
    font-size: 14px;
    text-align: justify;
}

/* ========================================
   Images
   ======================================== */
.review-images {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin: 15px 0;
}

.review-image-item {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 1px solid #e0e0e0;
    transition: transform 0.2s ease;
}

.review-image-item:hover {
    transform: scale(1.05);
}

.review-image-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ========================================
   Actions (Like/Dislike)
   ======================================== */
.review-actions {
    display: flex;
    align-items: center;
    gap: 15px;
    padding-top: 15px;
    border-top: 1px solid #f0f0f0;
}

.review-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 12px;
    border: 1px solid #e0e0e0;
    border-radius: 20px;
    background: #ffffff;
    color: #666;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.review-action-btn:hover {
    background: #f8f9fa;
    border-color: #999;
}

.review-action-btn.active-like {
    background: #e8f5e9;
    border-color: #4caf50;
    color: #4caf50;
}

.review-action-btn.active-dislike {
    background: #ffebee;
    border-color: #f44336;
    color: #f44336;
}

.review-action-btn i {
    font-size: 16px;
}

/* ========================================
   Empty State
   ======================================== */
.empty-reviews {
    text-align: center;
    padding: 60px 20px;
    color: #999;
}

.empty-reviews i {
    font-size: 48px;
    color: #ddd;
    margin-bottom: 15px;
}

/* ========================================
   Stats Card
   ======================================== */
.review-stats-card {
    border: 1px solid #e0e0e0;
}

.rating-bar-row {
    transition: all 0.3s ease;
}

.rating-bar-row:hover {
    background: #f8f9fa;
    padding: 5px;
    margin: 0 -5px 8px -5px;
    border-radius: 4px;
}

.progress {
    background-color: #f0f0f0;
}

.progress-bar {
    transition: width 0.6s ease;
}

@media (min-width: 768px) {
    .border-left {
        border-left: 1px solid #dee2e6 !important;
    }
}

/* ========================================
   Pagination
   ======================================== */
.pagination {
    margin-bottom: 0;
}

.page-link {
    color: #333;
    border-color: #dee2e6;
    padding: 8px 15px;
}

.page-link:hover {
    background-color: #f8f9fa;
    border-color: #dee2e6;
}

.page-item.active .page-link {
    background-color: #626262;
    border-color: #dddddd;
    color: #fff;
}

.page-item.disabled .page-link {
    color: #6c757d;
    background-color: #fff;
    border-color: #dee2e6;
}

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 768px) {
    .review-item {
        padding: 15px;
    }

    .review-avatar {
        width: 40px;
        height: 40px;
    }

    .review-image-item {
        width: 70px;
        height: 70px;
    }
}

/* ========================================
   Utilities
   ======================================== */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.mt-4 {
    margin-top: 2rem !important;
}
