/* /assets/css/reviews-navbar.css */

/* Posicionamiento del Navbar desde la DERECHA */
.offcanvas-navbar.right {
    left: auto;
    right: -600px; /* Ancho máximo, para que inicie oculto */
    transition: right 0.3s ease-in-out;
    background-color: #00000072;
}
.offcanvas-navbar.right.open {
    right: 0;
}

/* Cabecera del panel de reseñas */
.offcanvas-reviews-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #00000072;
}
.header-title-group {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color:#fff;
}
.header-title-group img {
    width: 32px;
    height: 32px;
}
.header-title-group h2 {
    margin: 0;
    font-size: 1.5rem;
}
.send-review-btn {
    background-color: #0bb543;
    color: white;
    border: none;
    padding: 0.6rem 1rem;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
}

/* Filtros */
.reviews-filters {
    padding: 0rem 1.5rem;
    background-color: #000000;
    border-bottom: 1px solid #e0e0e000;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
#review-name-filter {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 1rem;
    box-sizing: border-box;
}
.star-filter {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}
.star-filter span {
    font-weight: 500;
}
.star-filter button {
    background: #e9ecef;
    border: none;
    padding: 0.4rem 0.8rem;
    border-radius: 15px;
    cursor: pointer;
    font-weight: 500;
}
.star-filter button.active {
    background: #ffc107;
    color: #000;
}

/* Contenido y tarjetas de reseña */
.reviews-content {
    padding: 1rem;
    overflow-y: auto;
    /* Altura dinámica para ocupar el espacio restante */
    flex-grow: 1;
    height: calc(100vh - 170px);
}
.no-reviews-message {
    text-align: center;
    padding: 2rem;
    color: #ffffff;
}
.review-card {
    display: flex; /* Para el filtro JS */
    flex-direction: column;
    padding: 1rem;
    border-bottom: 1px solid #f0f0f0;
}
.review-card:last-child {
    border-bottom: none;
}
.review-card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.75rem;
}
.review-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}
.review-customer-info {
    display: flex;
    flex-direction: column;
}
.review-customer-name {
    font-weight: 600;
    color:#fff
}
.review-stars {
    color: #e0e0e0;
}
.review-stars .filled {
    color: #ffc107;
}
.review-comment {
    margin: 0 0 0.5rem 0;
    color: #ffffff;
    line-height: 1.5;
    white-space: pre-wrap;
    word-break: break-word;
}
.review-date {
    font-size: 0.8rem;
    color: #ffffff;
    align-self: flex-end;
}
/* /assets/css/reviews-navbar.css */

/* (Estilos existentes...) */

/* --- INICIO: NUEVOS ESTILOS PARA EL MODAL DE ENVIAR RESEÑA --- */

.send-review-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 2010; /* Por encima del panel de reseñas */
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
.send-review-backdrop.visible {
    opacity: 1;
    visibility: visible;
}

.send-review-modal {
    background: #fff;
    padding: 2rem;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    transform: scale(0.95);
    transition: transform 0.3s ease;
}
.send-review-backdrop.visible .send-review-modal {
    transform: scale(1);
}

.send-review-modal h2 {
    margin-top: 0;
    text-align: center;
}

.review-form-group {
    margin-bottom: 1.5rem;
}
.review-form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
}
.review-form-group input,
.review-form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 1rem;
    box-sizing: border-box;
}

/* Sistema de calificación por estrellas */
.star-rating-input {
    display: flex;
    flex-direction: row-reverse; /* Para que el hover funcione de izquierda a derecha */
    justify-content: center;
    font-size: 2.5rem;
}
.star-rating-input input {
    display: none;
}
.star-rating-input label {
    color: #ddd;
    cursor: pointer;
    transition: color 0.2s;
}
.star-rating-input input:checked ~ label,
.star-rating-input label:hover,
.star-rating-input label:hover ~ label {
    color: #ffc107;
}

/* Previsualización de imágenes */
.image-upload-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}
.image-upload-box {
    text-align: center;
}
.image-preview {
    width: 100px;
    height: 100px;
    border: 2px dashed #ccc;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 0.5rem;
    cursor: pointer;
}
.image-upload-box input[type="file"] {
    display: none;
}

.review-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    margin-top: 2rem;
}