:root {
    --primary-color: #3e838c; /* Teal color */
    --secondary-color: #70a9a1; /* Lighter teal */
    --star-color: #ffc107; /* Yellow for stars */
    --text-dark: #333;
    --text-light: #666;
    --background-light: #f8f9fa;
    --border-color: #e0e0e0;
    --white: #ffffff;
    --modal-overlay: rgba(0, 0, 0, 0.6);
    --font-family: "Cairo", sans-serif;
    --box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

body {
    font-family: var(--font-family);
    min-height: 100vh;
}

.reviews-container {
    width: 100%;
    max-width: 800px;
    background-color: var(--white);
    padding: 25px;
    border-radius: 10px;
    box-shadow: var(--box-shadow);
    margin: 30px auto;
}

.reviews-summary {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.reviews-summary p {
    font-size: 1.2rem;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.reviews-summary .highlight {
    font-weight: 700;
    color: var(--primary-color);
}

.action-buttons .btn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-family: var(--font-family);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    margin: 0 5px;
}

.action-buttons .btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
}
.action-buttons .btn-primary:hover {
    background-color: #306870; /* Darker teal */
    transform: translateY(-1px);
}

.action-buttons .btn-secondary {
    background-color: var(--secondary-color);
    color: var(--white);
}
.action-buttons .btn-secondary:hover {
    background-color: #5a8c84; /* Darker secondary */
    transform: translateY(-1px);
}

/* Modal Styles */
.modal {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: var(--modal-overlay);
    justify-content: center;
    align-items: center;
}
.modal.active {
    display: flex;
}

.modal-content {
    background-color: var(--white);
    padding: 25px 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    width: 90%;
    max-width: 500px;
    position: relative;
    animation: slideInModal 0.3s ease-out;
}

@keyframes slideInModal {
    from {
        transform: translateY(-30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-close {
    position: absolute;
    top: 10px;
    left: 15px; /* For RTL */
    font-size: 1.8rem;
    font-weight: bold;
    color: #aaa;
    background: none;
    border: none;
    cursor: pointer;
}
.modal-close:hover {
    color: var(--text-dark);
}

.modal-content h3 {
    text-align: center;
    margin-top: 0;
    margin-bottom: 20px;
    color: var(--primary-color);
    font-size: 1.6rem;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: var(--text-dark);
}

.form-group input[type="text"],
.form-group textarea {
    width: calc(100% - 22px); /* Account for padding */
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-family: var(--font-family);
    font-size: 1rem;
}
.form-group textarea {
    resize: vertical;
}

.star-rating {
    display: flex;
    justify-content: center; /* Or flex-end for RTL */
    direction: ltr; /* Keep stars LTR for easy selection */
}

.star-rating i {
    font-size: 1.8rem;
    color: #ccc; /* Default empty star color */
    margin: 0 3px;
    cursor: pointer;
    transition: color 0.2s ease;
}

.star-rating i.fas {
    /* Filled star */
    color: var(--star-color);
}
.star-rating i:hover,
.star-rating i:hover ~ i {
    /* Highlight on hover and subsequent stars */
    /* color: var(--star-color); Will be handled by JS */
}

.btn-submit {
    display: block;
    width: 100%;
    padding: 12px;
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 6px;
    font-family: var(--font-family);
    font-size: 1.1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
}
.btn-submit:hover {
    background-color: #306870;
}

/* Reviews List */
.reviews-list {
    margin-top: 20px;
}

.review-card {
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    flex-wrap: wrap; /* For smaller screens */
}

.review-header h4 {
    margin: 0;
    font-size: 1.2rem;
    color: var(--text-dark);
    font-weight: 700;
}

.review-stars i {
    color: var(--star-color);
    margin: 0 1px;
    font-size: 1rem;
}

.review-time {
    font-size: 0.85rem;
    color: var(--text-light);
}

.review-comment {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-dark);
    margin-bottom: 10px;
}
.review-reply {
    background-color: #f0f6f7; /* Light tealish background for reply */
    border-left: 3px solid var(--secondary-color);
    padding: 10px 15px;
    margin-top: 10px;
    border-radius: 4px;
    font-size: 0.95rem;
}
.review-reply strong {
    color: var(--primary-color);
}

.no-reviews {
    text-align: center;
    color: var(--text-light);
    padding: 20px;
}

/* Pagination Styles (basic example) */
.pagination-nav {
    margin-top: 30px;
    display: flex;
    justify-content: center;
}
.pagination-nav nav > div:first-child {
    /* Target Tailwind's simple pagination structure */
    display: flex;
    gap: 5px;
}
.pagination-nav nav span,
.pagination-nav nav a {
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    text-decoration: none;
    color: var(--primary-color);
    transition: background-color 0.3s, color 0.3s;
}
.pagination-nav nav span.cursor-default {
    /* Disabled prev/next */
    color: #ccc;
    border-color: #eee;
}
.pagination-nav nav a:hover {
    background-color: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}
.pagination-nav nav span[aria-current="page"] span {
    /* Active page */
    background-color: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
    font-weight: bold;
}

/* Responsive */
@media (max-width: 600px) {
    .reviews-container {
        padding: 15px;
    }
    .modal-content {
        width: 95%;
        padding: 20px;
    }
    .action-buttons {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }
    .review-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
}
