/* User Reviews Plugin Styles */

.user-reviews-form-container {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
    border: 1px solid #ddd;
}

.user-reviews-form-container h3 {
    margin-top: 0;
    color: #333;
    font-size: 24px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #555;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="date"],
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

/* Rating Stars */
.rating-stars {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 10px;
}

.rating-stars .star {
    font-size: 24px;
    color: #ddd;
    cursor: pointer;
    transition: color 0.2s ease;
}

.rating-stars .star:hover,
.rating-stars .star.active {
    color: #ffd700;
}

.rating-emoji {
    font-size: 24px;
    margin-left: 10px;
}

/* Buttons */
.btn-primary,
.btn-secondary {
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    transition: background-color 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background-color: #0073aa;
    color: white;
}

.btn-primary:hover:not(:disabled) {
    background-color: #005a87;
}

.btn-primary:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

.btn-secondary {
    background-color: #666;
    color: white;
}

.btn-secondary:hover {
    background-color: #555;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: white;
    margin: 10% auto;
    padding: 30px;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    position: relative;
}

.modal-content h4 {
    margin-top: 0;
    color: #333;
}

.privacy-notice {
    color: #666;
    font-style: italic;
    display: block;
    margin-top: 5px;
}

.modal-actions {
    text-align: right;
    margin-top: 20px;
}

.modal-actions button {
    margin-left: 10px;
}

/* Filters */
.reviews-filters {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    padding: 15px;
    background: #f5f5f5;
    border-radius: 4px;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-group label {
    font-weight: bold;
    color: #555;
}

.filter-group select {
    padding: 5px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

/* Reviews Summary */
.reviews-summary {
    margin-bottom: 20px;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
    text-align: center;
}

.overall-rating {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.average-rating {
    font-size: 32px;
    font-weight: bold;
    color: #333;
}

.stars {
    display: flex;
    gap: 2px;
}

.star {
    font-size: 20px;
    color: #ddd;
}

.star.filled {
    color: #ffd700;
}

.total-reviews {
    color: #666;
    font-size: 14px;
}

/* Individual Reviews */
.user-review-item {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
    background: white;
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 10px;
}

.review-author {
    font-weight: bold;
    color: #333;
    font-size: 16px;
}

.review-rating {
    display: flex;
    gap: 2px;
}

.review-rating .star {
    font-size: 16px;
}

.review-date {
    color: #666;
    font-size: 14px;
}

.review-content p {
    margin-bottom: 10px;
    line-height: 1.6;
    color: #444;
}

.review-content small {
    color: #888;
}

.no-reviews {
    text-align: center;
    color: #666;
    font-style: italic;
    padding: 40px 20px;
    background: #f9f9f9;
    border-radius: 8px;
}

/* Loading and Messages */
.loading {
    text-align: center;
    padding: 20px;
    color: #666;
}

.success-message {
    background-color: #d4edda;
    color: #155724;
    padding: 12px;
    border-radius: 4px;
    border: 1px solid #c3e6cb;
    margin-bottom: 20px;
}

.error-message {
    background-color: #f8d7da;
    color: #721c24;
    padding: 12px;
    border-radius: 4px;
    border: 1px solid #f5c6cb;
    margin-bottom: 20px;
}

/* Admin Styles */
.review-admin-item {
    border: 1px solid #ddd;
    margin-bottom: 15px;
    padding: 15px;
    background: white;
    border-radius: 4px;
}

.review-admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.delete-review-btn {
    background: #dc3545;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 3px;
    cursor: pointer;
    font-size: 12px;
}

.delete-review-btn:hover {
    background: #c82333;
}

/* Analytics Styles */
.analytics-overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.analytics-card {
    background: white;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #ddd;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.analytics-card h3 {
    margin: 0 0 10px 0;
    color: #666;
    font-size: 14px;
    text-transform: uppercase;
}

.analytics-number {
    font-size: 32px;
    font-weight: bold;
    color: #333;
    margin-bottom: 5px;
}

.analytics-growth {
    font-size: 14px;
    font-weight: bold;
}

.analytics-growth.positive {
    color: #28a745;
}

.analytics-growth.negative {
    color: #dc3545;
}

/* Responsive Design */
@media (max-width: 768px) {
    .reviews-filters {
        flex-direction: column;
        gap: 15px;
    }
    
    .filter-group {
        justify-content: space-between;
    }
    
    .review-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .overall-rating {
        flex-direction: column;
        gap: 5px;
    }
    
    .modal-content {
        margin: 5% auto;
        width: 95%;
        padding: 20px;
    }
    
    .modal-actions {
        text-align: center;
    }
    
    .modal-actions button {
        margin: 5px;
        width: 120px;
    }
}

@media (max-width: 480px) {
    .user-reviews-form-container {
        padding: 15px;
    }
    
    .rating-stars {
        justify-content: center;
    }
    
    .rating-stars .star {
        font-size: 28px;
    }
}