/* Product Reviews Styling */

/* Rating Stars Input */
.rating-stars {
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

.rating-input {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    font-size: 24px;
}

.rating-input input {
    display: none;
}

.rating-input label {
    cursor: pointer;
    margin: 0 2px;
    color: #ffc107;
}

.rating-input label:hover i,
.rating-input label:hover ~ label i,
.rating-input input:checked ~ label i {
    /* Show solid star when hovering or checked */
    font-weight: 900;
}

/* Review items */
.review-item {
    transition: all 0.2s ease;
}

.review-item:hover {
    background-color: #f8f9fa;
}

.review-item .avatar img {
    object-fit: cover;
}

/* Star Rating Display */
.reviews-summary {
    transition: all 0.2s ease;
}

.reviews-summary:hover {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

/* Empty Reviews */
#empty-reviews {
    padding: 2rem 0;
}

/* Review Filters */
.review-filters {
    padding: 1rem;
    background-color: #f8f9fa;
    border-radius: 0.25rem;
    margin-bottom: 1.5rem;
}

/* Progress Bars Animation */
.progress-bar {
    transition: width 1s ease;
}

/* Pagination */
.pagination .page-link {
    color: #495057;
}

.pagination .page-item.active .page-link {
    background-color: #ffc107;
    border-color: #ffc107;
    color: #212529;
}

/* Modal Star Rating */
#reviewModal .rating-input {
    justify-content: flex-start;
}

#reviewModal .rating-input label {
    margin: 0 5px;
    font-size: 28px;
}

#reviewModal .rating-input label:first-child {
    margin-left: 0;
}

/* Review form validation */
.was-validated .form-control:invalid:focus,
.form-control.is-invalid:focus {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.25rem rgba(220, 53, 69, 0.25);
}

.was-validated .form-check-input:invalid,
.form-check-input.is-invalid {
    border-color: #dc3545;
}

/* Animation for new reviews */
@keyframes highlight {
    0% { background-color: #fff3cd; }
    100% { background-color: transparent; }
}

.new-review {
    animation: highlight 2s ease;
} 