/* Arquivo style.css - Estilos para o plugin de Avaliação */

/* Container principal */
.umpm-reviews-section {
    margin-top: 20px;
}

/* Título da seção */
.umpm-reviews-title {
    font-size: 15px;
    font-weight: 600;
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

/* Ícone de estrela */
.umpm-reviews-title i {
    margin-right: 5px;
    color: gold;
}

/* Divisor visual */
.umpm-divider {
    border-top: 1px solid #eee;
    margin: 10px 0;
}

/* Link para abrir o formulário */
.umpm-review-link {
    margin-bottom: 20px;
}

.umpm-review-link a {
    color: #00963d;
    text-decoration: underline;
    font-weight: bold;
}

/* Estatísticas */
.umpm-reviews-stats {
    text-align: center;
    margin-bottom: 20px;
}

.stat-item {
    display: block;
}

/* Lista de avaliações */
.umpm-message-list {
    margin-top: 20px;
}

.umpm-single-message {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    background: #f9f9f9;
}

.umpm-review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.umpm-review-header strong {
    margin-right: 10px;
}

.umpm-stars {
    color: green;
}

.umpm-review-message {
    margin-top: 5px;
}

/* Formulário de avaliação */
#umpm-ajax-form {
    display: none;
    margin-top: 20px;
    border: 1px solid #ccc;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
}

#umpm-ajax-form label {
    display: block;
}

#umpm-ajax-form input[type="text"],
#umpm-ajax-form input[type="email"],
#umpm-ajax-form select,
#umpm-ajax-form textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

#umpm-ajax-form button[type="submit"] {
    background: #00963d;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

#umpm-ajax-form button[type="submit"]:hover {
    background: #057733;
}

/* Feedback de validação */
input:invalid, textarea:invalid {
    border-color: red;
}

/* Notificações */
.umpm-notification {
    text-align: center;
    padding: 15px;
    margin: 20px auto;
    max-width: 600px;
    border-radius: 4px;
}

.umpm-notification.success {
    background: #e6ffe6;
    color: green;
}

.umpm-notification.error {
    background: #ffe6e6;
    color: red;
}


.umpm-reviews-title {
    font-size: 16px;
    font-weight: 600;
}

.umpm-reviews-title i,
.umpm-reviews-title span.star-icon {
    margin-right: 8px;
    color: #555;
    font-size: 18px;
}

/* Estilo para a tabela de administração */
.wp-list-table th, .wp-list-table td {
    padding: 8px 10px;
    vertical-align: middle;
}

.wp-list-table th:nth-child(7), 
.wp-list-table td:nth-child(7) {
    white-space: nowrap;
}

.wp-list-table th:nth-child(8), 
.wp-list-table td:nth-child(8) {
    font-family: monospace;
}