.reviews-container {
    width: 100%;
    max-width: 700px;
    margin-inline: auto;
}

.page-title {
    text-align: center;
    font-size: 32px;
    margin-bottom: 20px;
}


.review-header {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.messages {
    text-align: center;
}

.messages .success {
    background-color: #d4edda;
    color: #155724;
}

.messages .error {
    background-color: #f8d7da;
    color: #721c24;
}

.review-card {
    width: 100%;
    max-width: 800px;
    height: auto;
    display: flex;
    flex-direction: column;
    border: 1px solid #00000067;
    background-color: #fffdfd97;
    border-radius: 6px;
    transition: box-shadow 0.2s;
    box-sizing: border-box;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.671);
    padding: 20px;
    position: relative;
    max-height: none;
    margin: 20px auto;
    align-items: center;
}

.reviewer-info {
    margin: 10px;
}

.profile {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    object-fit: cover;
}

.review-menu {
    position: absolute;
    top: 20px;
    right: 20px;
}

.menu-btn {
    font-size: 24px;
    background: none;
    border: none;
    color: rgb(0, 0, 0);
    cursor: pointer;
}

.menu-btn:hover {
    background-color: rgb(218, 218, 218);
    text-wrap-style: balance;
}

/* Sidebar (dropdown) */
.menu-dropdown {
    position: absolute;
    right: 0;
    top: 40px;
    width: 180px;
    display: none;
    flex-direction: column;
    padding: 10px;
    background-color: #f1f1f1;
    border: 1px solid #ccc;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 100;
}

.menu-dropdown.active {
    display: flex;    /* show when clicked */
}

.menu-dropdown a {
    padding: 10px;
    text-decoration: none;
    color: #333;
    border-radius: 4px;
}

.menu-dropdown a:hover {
    background-color: #f0f0f0;
}

.menu-dropdown .report {
    background-color: rgb(153, 49, 49);
}

.menu-dropdown .report:hover { 
    background-color: rgba(153, 49, 49, 0.731);
}

.review-actions {
    display: flex;
    align-items: center;
    justify-content: center;
}

.review-actions a,
.review-actions button {
    margin: 10px;
}

/* ONLY affects create/edit form layout */
.review-form-header,
.review-form-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
    margin-bottom: 20px;
}

.review-content {
    width: 100%;
}

.review-content p {
    overflow-wrap: break-word;
} 

/* Rating input */
.review-form-header input {
    width: 80px;
    max-width: 100%;
    padding: 8px;
    margin-top: 8px;
}

/* Comment textarea */
.review-form-content textarea {
    width: 100%;
    min-height: 120px;
    padding: 12px;
    margin-top: 8px;
    resize: none;
    overflow-y: hidden;
    box-sizing: border-box;
    font-family: inherit;
    font-size: 16px;
}

.review-submit-btn {
    width: 50%;
    max-width: 300px;
    min-width: 180px;
    padding: 12px 16px;
    margin: 10px;
    border: none;
    border-radius: 6px;
    background-color: #0073b1;
    color: white;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.review-submit-btn:hover {
    background-color: #0073b19f;
}

.cancel {
    width: 50%;
    max-width: 300px;
    min-width: 180px;
    margin: 10px;
    border-radius: 6px;
    background-color: gray;
    color: white;
    font-size: 16px;
    text-align: center;
    font-weight: bold;
}

.cancel:hover {
    background-color: rgb(146, 146, 146);
}

@media (max-width: 600px) {
    .review-card {
        width: 100%;
        padding: 50px;
    }

    .review-header {
        align-items: flex-start;
    }

    .review-menu {
        top: 10px;
        right: 10px;
    }

    .page-title {
        font-size: 26px;
    }
}