/* Reviews Manager - Admin Styles */

.rm-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.rm-stat-card {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    text-align: center;
    border-left: 4px solid #007cba;
}

.rm-stat-number {
    font-size: 32px;
    font-weight: bold;
    color: #007cba;
    line-height: 1;
    margin-bottom: 5px;
}

.rm-stat-label {
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

/* Review Preview no Admin */
.rm-review-preview {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    max-width: 300px;
}

.rm-reviewer-photo {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.rm-reviewer-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 16px;
}

.rm-review-content strong {
    display: block;
    margin-bottom: 5px;
    color: #333;
}

.rm-review-content p {
    margin: 0;
    color: #666;
    font-size: 13px;
    line-height: 1.4;
}

.rm-featured-badge {
    background: linear-gradient(45deg, #ffd700, #ffed4e);
    color: #333;
    padding: 2px 6px;
    border-radius: 8px;
    font-size: 10px;
    font-weight: bold;
    margin-left: 8px;
}

/* Rating Display */
.rm-rating {
    display: flex;
    align-items: center;
    gap: 8px;
}

.rm-rating .star {
    color: #ddd;
    font-size: 16px;
}

.rm-rating .star.filled {
    color: #ffc107;
}

.rm-rating-number {
    font-size: 12px;
    color: #666;
    font-weight: bold;
}

/* Source Badges */
.rm-source-badge {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
    color: white;
    display: inline-block;
}

.rm-source-google { background: #4285f4; }
.rm-source-facebook { background: #1877f2; }
.rm-source-instagram { background: #e4405f; }
.rm-source-trustpilot { background: #00b67a; }
.rm-source-site { background: #28a745; }
.rm-source-whatsapp { background: #25d366; }
.rm-source-email { background: #6c757d; }
.rm-source-presencial { background: #17a2b8; }
.rm-source-manual { background: #6f42c1; }

/* Status */
.rm-status {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
}

.rm-status-active {
    background: #d4edda;
    color: #155724;
}

.rm-status-inactive {
    background: #f8d7da;
    color: #721c24;
}

/* Actions */
.rm-actions {
    display: flex;
    gap: 5px;
    justify-content: center;
}

.rm-actions .button {
    padding: 4px 8px;
    min-height: auto;
    line-height: 1;
}

.rm-actions .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

/* Formulário de Adição */
.rm-form-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
    margin-top: 20px;
}

.rm-form-main {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.rm-form-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.rm-rating-selector {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.rm-rating-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.rm-rating-option:hover {
    background: #f8f9fa;
    border-color: #007cba;
}

.rm-rating-option input[type="radio"] {
    margin: 0;
}

.rm-rating-option input[type="radio"]:checked + .rm-stars {
    color: #ffc107;
}

.rm-stars {
    color: #ddd;
    font-size: 18px;
    transition: color 0.2s ease;
}

.rm-rating-text {
    font-size: 14px;
    color: #333;
}

.rm-char-counter {
    text-align: right;
    margin-top: 5px;
    font-size: 12px;
    color: #666;
}

.rm-current-photo {
    margin-top: 10px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 6px;
}

/* Configurações */
.rm-settings-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.rm-shortcode-generator {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #ddd;
}

.rm-generated-shortcode {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-top: 10px;
}

.rm-generated-shortcode input {
    flex: 1;
    font-family: monospace;
    background: #fff;
    border: 1px solid #ddd;
    padding: 8px 12px;
    border-radius: 4px;
}

.rm-shortcode-examples {
    line-height: 1.8;
}

.rm-shortcode-examples code {
    background: #f1f1f1;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 13px;
}

/* Responsivo Admin */
@media (max-width: 1200px) {
    .rm-form-grid {
        grid-template-columns: 1fr;
    }
    
    .rm-form-sidebar {
        order: -1;
    }
}

@media (max-width: 768px) {
    .rm-stats-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .rm-review-preview {
        flex-direction: column;
        align-items: center;
        text-align: center;
        max-width: none;
    }
    
    .rm-actions {
        flex-direction: column;
    }
    
    .rm-actions .button {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .rm-stats-grid {
        grid-template-columns: 1fr;
    }
    
    .rm-stat-number {
        font-size: 24px;
    }
    
    .rm-generated-shortcode {
        flex-direction: column;
        align-items: stretch;
    }
}

/* Loading States */
.rm-loading {
    opacity: 0.6;
    pointer-events: none;
}

.rm-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #ddd;
    border-top-color: #007cba;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Tooltips */
.rm-tooltip {
    position: relative;
    cursor: help;
}

.rm-tooltip::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    z-index: 1000;
}

.rm-tooltip:hover::after {
    opacity: 1;
}

/* Drag and Drop */
.rm-drag-area {
    border: 2px dashed #ddd;
    border-radius: 8px;
    padding: 40px 20px;
    text-align: center;
    color: #666;
    transition: all 0.2s ease;
}

.rm-drag-area.dragover {
    border-color: #007cba;
    background: #f0f8ff;
    color: #007cba;
}

.rm-drag-area .dashicons {
    font-size: 48px;
    opacity: 0.5;
    margin-bottom: 10px;
}

/* Notificações personalizadas */
.rm-notice {
    padding: 12px 15px;
    margin: 15px 0;
    border-radius: 6px;
    border-left: 4px solid;
}

.rm-notice-success {
    background: #d4edda;
    border-color: #28a745;
    color: #155724;
}

.rm-notice-error {
    background: #f8d7da;
    border-color: #dc3545;
    color: #721c24;
}

.rm-notice-warning {
    background: #fff3cd;
    border-color: #ffc107;
    color: #856404;
}

.rm-notice-info {
    background: #d1ecf1;
    border-color: #17a2b8;
    color: #0c5460;
}
