/* General section styling */
.mvr-rating-section {
    margin: 24px 0;
    font-family: 'Source Sans Pro', sans-serif;
}

.mvr-rating-container {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 24px;
    max-width: 600px;
    margin: 0 auto;
}

.mvr-rating-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 16px;
}

/* Progress bar */
.mvr-progress-bar {
    height: 6px;
    background: #e5e7eb;
    border-radius: 3px;
    margin-bottom: 16px;
    overflow: hidden;
}

.mvr-progress {
    height: 100%;
    background: #4f46e5;
    transition: width 0.3s ease;
}

/* Rating group */
.mvr-rating-group {
    margin-bottom: 24px;
    position: relative;
}

.mvr-rating-group:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    background: #1a1a1a;
    color: #fff;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.875rem;
    white-space: nowrap;
    z-index: 10;
}

.mvr-rating-label {
    display: block;
    font-size: 1rem;
    font-weight: 500;
    color: #1a1a1a;
    margin-bottom: 8px;
}

/* Star rating with checkboxes */
.mvr-star-checkbox-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 12px;
}

.mvr-star-checkbox {
    display: none;
}

.mvr-star-checkbox-rating label {
    cursor: pointer;
    display: inline-block;
    width: 28px;
    height: 28px;
    position: relative;
}

.mvr-star-icon {
    width: 28px;
    height: 28px;
    fill: #d1d5db;
    transition: fill 0.2s ease, transform 0.2s ease;
}

.mvr-star-icon.selected {
    fill: #ffc107;
    transform: scale(1.1);
}

.mvr-selected-stars {
    margin-left: 10px;
    font-size: 0.9rem;
    color: #6b7280;
}

/* Textarea */
.mvr-textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    resize: vertical;
    font-size: 1rem;
}

.mvr-textarea:focus {
    outline: none;
    border-color: #4f46e5;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

/* Recommendation options */
.mvr-recommendation-options {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.mvr-recommendation-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1rem;
    cursor: pointer;
}

/* Submit button */
.mvr-rating-submit {
    text-align: right;
}

.mvr-submit-button {
    padding: 10px 20px;
    background: #4f46e5;
    color: #fff;
    font-weight: 500;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    transition: background 0.2s ease;
}

.mvr-submit-button:hover {
    background: #4338ca;
}

.mvr-submit-button:disabled {
    background: #a5b4fc;
    cursor: not-allowed;
}

/* Modal */
.mvr-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.mvr-modal.active {
    opacity: 1;
    pointer-events: auto;
}

.mvr-modal-content {
    background: #fff;
    border-radius: 8px;
    padding: 24px;
    max-width: 500px;
    width: 90%;
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

.mvr-modal.active .mvr-modal-content {
    transform: scale(1);
}

.mvr-modal-icon {
    width: 48px;
    height: 48px;
    background: #dcfce7;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.mvr-modal-icon i {
    color: #22c55e;
    font-size: 24px;
}

.mvr-modal-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1a1a1a;
    text-align: center;
    margin-bottom: 8px;
}

.mvr-modal-text {
    color: #4b5563;
    text-align: center;
    margin-bottom: 16px;
}

.mvr-modal-button {
    padding: 10px 20px;
    background: #6b7280;
    color: #fff;
    font-weight: 500;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    transition: background 0.2s ease;
    display: block;
    margin: 0 auto;
}

.mvr-modal-button:hover {
    background: #4b5563;
}

/* Reviews section */
.mvr-reviews-section {
    margin: 24px 0;
}

.mvr-reviews-container {
    background: #fff;
    border-radius: 8px;
    padding: 24px;
}

.mvr-vendor-summary {
    margin-bottom: 24px;
}

.mvr-vendor-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.mvr-star-icon.filled {
    fill: #ffc107;
}

.mvr-star-icon.half-filled {
    fill: url(#half-fill);
}

.mvr-star-icon.empty {
    fill: #d1d5db;
}

.mvr-vendor-rating span {
    font-weight: 500;
    color: #1a1a1a;
}

.mvr-reviews-list {
    border-top: 1px solid #e5e7eb;
    padding-top: 16px;
}

.mvr-vendor-review {
    margin-bottom: 16px;
    padding: 16px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    background: #f9fafb;
    position: relative;
}

.mvr-review-header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    gap: 8px;
}

.mvr-review-author {
    font-weight: 600;
    color: #1a1a1a;
}

.mvr-review-date {
    color: #6b7280;
    font-size: 0.875rem;
}

.mvr-review-recommendation {
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 4px;
}

.mvr-review-recommendation.positive i {
    color: #2ecc71;
}

.mvr-review-recommendation.neutral i {
    color: #f1c40f;
}

.mvr-review-recommendation.negative i {
    color: #e74c3c;
}

.mvr-delete-review-button {
    background: none;
    border: none;
    color: #e74c3c;
    cursor: pointer;
    padding: 4px;
    margin-left: auto;
}

.mvr-delete-review-button:hover {
    color: #c0392b;
}

.mvr-review-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 8px;
}

.mvr-rating-score {
    color: #1a1a1a;
    font-weight: 500;
    margin-left: 8px;
}

.mvr-review-metrics {
    display: flex;
    gap: 16px;
    color: #6b7280;
    margin-bottom: 8px;
    font-size: 0.875rem;
}

.mvr-review-text {
    color: #4b5563;
    line-height: 1.5;
}

/* Admin styles */
.mvr-admin .wp-list-table {
    width: 100%;
}

.mvr-admin .wp-list-table th,
.mvr-admin .wp-list-table td {
    padding: 12px;
}

.mvr-admin-delete-review {
    background: #e74c3c;
    color: #fff;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
}

.mvr-admin-delete-review:hover {
    background: #c0392b;
}

/* Messages */
.mvr-notice {
    padding: 12px;
    background: #f0f9ff;
    color: #0369a1;
    border-radius: 4px;
    text-align: center;
}

.mvr-success-message {
    background: #dcfce7;
    color: #15803d;
    padding: 12px;
    border-radius: 4px;
    text-align: center;
}

.mvr-error-message {
    background: #fee2e2;
    color: #b91c1c;
    padding: 12px;
    border-radius: 4px;
    margin-bottom: 16px;
    text-align: center;
}

/* Responsive design */
@media (max-width: 600px) {
    .mvr-rating-container {
        padding: 16px;
    }

    .mvr-rating-group:hover::after {
        display: none;
    }

    .mvr-recommendation-options {
        flex-direction: column;
        gap: 8px;
    }

    .mvr-review-metrics {
        flex-direction: column;
        gap: 4px;
    }
}