/* --- Reviews Page Styles (Soft & Modern) --- */
.reviews-container {
    max-width: 800px; /* Wider for more content */
    text-align: center;
}

.reviews-container h2 {
    font-size: 24px;
    font-weight: 600;
    margin-top: 0;
    margin-bottom: 10px;
    color: #333;
    text-align: right;
}

.reviews-section {
    margin-bottom: 40px;
}

.review-group {
    margin-bottom: 25px;
}

.review-group-header {
    text-align: right;
    font-size: 16px;
    font-weight: 500;
    color: #606770;
    padding-bottom: 8px;
    margin-bottom: 15px;
    border-bottom: 2px solid #e9e9ed;
}

.review-item {
    background-color: #f9f9f9;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 15px;
    text-align: right;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid #e9e9ed;
    transition: all 0.3s ease;
}

.review-item.done {
    opacity: 0.5;
    background-color: #f0f2f5;
}

.review-item.done .review-content h4,
.review-item.done .review-content p {
    text-decoration: line-through;
}

.review-content h4 {
    margin: 0 0 8px 0;
    font-size: 18px;
    color: #1c1e21;
}

.review-content p {
    margin: 0;
    font-size: 14px;
    color: #606770;
    line-height: 1.6;
}

.review-content .review-notes {
    font-style: italic;
    color: #5856d6; /* Purple to stand out */
    margin-top: 8px;
    background-color: #e2e1f8;
    padding: 8px 12px;
    border-radius: 8px;
}

.review-info {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    flex-shrink: 0;
    margin-left: 20px;
}

.review-date {
    font-weight: 500;
    font-size: 14px;
    color: #fff;
    background-color: #007aff;
    padding: 5px 12px;
    border-radius: 8px;
}

.review-actions .done-btn {
    background-color: #34c759;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s;
    font-family: 'Vazirmatn', sans-serif;
}

.review-actions .done-btn:hover {
    background-color: #2ca048;
}

.review-item.done .done-btn {
    background-color: #ccc;
    cursor: not-allowed;
}

.empty-state {
    font-size: 16px;
    color: #888;
    padding: 40px 20px;
    background-color: #f0f2f5;
    border-radius: 16px;
}

.load-more-container {
    text-align: center;
    margin-top: 20px;
    margin-bottom: 30px;
}

.load-more-btn {
    background-color: #e9e9ed;
    color: #333;
    border: none;
    padding: 10px 25px;
    border-radius: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s;
    font-family: 'Vazirmatn', sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 0 auto;
}

.load-more-btn:hover {
    background-color: #dfe1e5;
}

.load-more-btn .arrow {
    transition: transform 0.3s;
}

.load-more-btn.loading .arrow {
    animation: spin 1s infinite linear;
}

.reviews-section.hidden {
    display: none;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .reviews-container {
        padding: 20px;
    }
    .review-item {
        flex-direction: column;
        align-items: flex-end;
        gap: 15px;
    }
    .review-info {
        flex-direction: row-reverse;
        width: 100%;
        justify-content: space-between;
        margin-left: 0;
    }
}
