    /* Success Message Styles */
    .success-message {
        position: fixed;
        top: 20px;
        right: 20px;
        background: linear-gradient(135deg, #4CAF50, #45a049);
        color: white;
        padding: 20px 30px;
        border-radius: 10px;
        box-shadow: 0 8px 25px rgba(76, 175, 80, 0.3);
        z-index: 1000;
        display: flex;
        align-items: center;
        gap: 15px;
        transform: translateX(150%);
        opacity: 0;
        transition: transform 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55), opacity 0.3s;
        max-width: 400px;
        border-left: 5px solid #2E7D32;
    }
    
    .success-message.show {
        transform: translateX(0);
        opacity: 1;
    }
    
    .success-icon {
        font-size: 2.5rem;
        animation: bounce 1s infinite alternate;
    }
    
    .success-content h3 {
        margin: 0 0 5px 0;
        font-size: 1.3rem;
        font-weight: 600;
    }
    
    .success-content p {
        margin: 0;
        opacity: 0.9;
        font-size: 0.95rem;
    }
    
    @keyframes bounce {
        from { transform: translateY(0); }
        to { transform: translateY(-5px); }
    }
    
    /* Reviews visibility toggle */
    .review-card {
        transition: opacity 0.3s, transform 0.3s;
    }
    
    .review-card.hidden {
        display: none;
    }
    
    .view-more-container {
        text-align: center;
        margin: 30px 0;
    }
    
    .view-more-btn {
        background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
        color: white;
        border: none;
        padding: 14px 35px;
        font-size: 1.1rem;
        font-weight: 600;
        border-radius: 50px;
        cursor: pointer;
        transition: all 0.3s;
        box-shadow: 0 4px 15px rgba(88, 202, 255, 0.3);
        display: inline-flex;
        align-items: center;
        gap: 10px;
    }
    
    .view-more-btn:hover {
        transform: translateY(-3px);
        box-shadow: 0 6px 20px rgba(88, 202, 255, 0.4);
    }
    
    .view-more-btn i {
        transition: transform 0.3s;
    }
    
    .view-more-btn.show-all i {
        transform: rotate(180deg);
    }
    
    /* Review counter badge */
    .reviews-count-badge {
        background: var(--secondary-color);
        color: white;
        padding: 3px 10px;
        border-radius: 20px;
        font-size: 0.9rem;
        font-weight: 600;
        margin-left: 10px;
        vertical-align: middle;
    }
    
    /* Rating distribution specific styles */
    .distribution-star {
        width: 90px;
        color: #ffc107;
        font-size: 1.1rem;
        text-align: left;
    }
    
    .distribution-count {
        width: 40px;
        text-align: right;
        font-weight: 600;
        color: var(--dark-color);
    }
    
    /* Main CSS Variables */
    .reviews-section-wrapper {
        --primary-color: #58caff;
        --primary-light: #58caff;
        --primary-dark: #58caff;
        --secondary-color: #e76f51;
        --light-color: #f8f9fa;
        --gray-color: #e9ecef;
        --dark-color: #264653;
        --text-color: #333;
        --border-color: #ced4da;
        --shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
        --radius: 8px;
        background-color: #f5f7fa;
        color: var(--text-color);
    }
    
    .reviews-form-page {
        --primary-color: #58caff;
        --primary-light: #58caff;
        --primary-dark: #58caff;
        --secondary-color: #e76f51;
        --light-color: #f8f9fa;
        --gray-color: #e9ecef;
        --dark-color: #264653;
        --text-color: #333;
        --border-color: #ced4da;
        --shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
        --radius: 8px;
        background-color: #f5f7fa;
        color: var(--text-color);
        display: none;
    }
    
    .reviews-form-page.active {
        display: block;
    }
    
    .reviews-section-wrapper {
        min-height: 100vh;
    }
    
    .reviews-header {
        background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
        color: white;
        padding: 30px 20px;
        text-align: center;
        margin-bottom: 30px;
    }
    
    .reviews-header h1 {
        font-size: 2.2rem;
        margin-bottom: 10px;
    }
    
    .reviews-subtitle {
        font-size: 1.2rem;
        opacity: 0.9;
        margin-bottom: 15px;
    }
    
    .reviews-container {
        max-width: 800px; /* Reduced from 1200px */
        margin: 0 auto;
        padding: 0 20px;
    }
    
    /* FIXED: Index content layout */
    .index-content {
        display: grid;
        grid-template-columns: 1fr;
        gap: 20px;
        align-items: start; /* Align items at the top */
    }
    
    @media (min-width: 992px) {
        .index-content {
            grid-template-columns: 1fr 1fr;
            align-items: stretch; /* Make both cards stretch to same height */
        }
    }
    
    /* FIXED: Stats cards - same height */
    .stats-card {
        background-color: white;
        border-radius: var(--radius);
        box-shadow: var(--shadow);
        padding: 25px;
        margin-bottom: 0;
        height: 100%; /* Make both cards take full height */
        display: flex;
        flex-direction: column;
    }
    
    /* FIXED: Overall rating card */
    .overall-rating {
        text-align: center;
        padding: 20px 15px; /* Reduced padding */
        flex-grow: 1; /* Allow it to grow and fill space */
        display: flex;
        flex-direction: column;
        justify-content: center; /* Center content vertically */
    }
    
    .rating-value {
        font-size: 3rem; /* Slightly smaller */
        font-weight: 700;
        color:#0d5fa8;
        line-height: 1;
        margin-bottom: 10px;
    }
    
    .stars-large {
        display: flex;
        justify-content: center;
        gap: 5px;
        margin-bottom: 15px;
    }
    
    .stars-large .star {
        font-size: 1.8rem; /* Slightly smaller */
        color: #ffc107;
    }
    
    .total-reviews {
        font-size: 1rem; /* Slightly smaller */
        color: #666;
        margin-bottom: 20px; /* Space before button */
    }
    
    /* FIXED: Add review button */
    .add-review-btn {
        background: linear-gradient(to right, var(--primary-color), var(--primary-dark));
        color: white;
        border: none;
        padding: 14px 20px; /* Reduced padding */
        font-size: 1rem; /* Smaller font */
        font-weight: 600;
        border-radius: var(--radius);
        cursor: pointer;
        transition: all 0.3s;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        text-align: center;
        width: 100%;
        max-width: 100%; /* Use full width of card */
        margin-top: auto; /* Push button to bottom */
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
    }
    
    .add-review-btn:hover {
        transform: translateY(-3px);
        box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    }
    
    .reviews-section {
        margin-top: 40px;
    }
    
    .review-card {
        background-color: white;
        border-radius: var(--radius);
        box-shadow: var(--shadow);
        padding: 25px;
        margin-bottom: 25px;
        border-left: 5px solid var(--primary-color);
    }
    
    .review-header {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        margin-bottom: 15px;
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .reviewer-info {
        display: flex;
        align-items: center;
        gap: 15px;
    }
    
    .reviewer-avatar {
        width: 50px;
        height: 50px;
        border-radius: 50%;
        background-color: var(--primary-light);
        display: flex;
        align-items: center;
        justify-content: center;
        color: white;
        font-weight: bold;
        font-size: 1.2rem;
    }
    
    .reviewer-name {
        font-weight: 600;
        font-size: 1.1rem;
        color: var(--dark-color);
    }
    
    .reviewer-role {
        font-size: 0.9rem;
        color: #666;
        margin-top: 3px;
    }
    
    .review-stars {
        color: #ffc107;
        font-size: 1.1rem;
    }
    
    .review-date {
        font-size: 0.9rem;
        color: #888;
    }
    
    .review-content {
        margin-top: 15px;
    }
    
    .review-liked {
        margin-bottom: 15px;
    }
    
    .review-improve {
        background-color: #f9f9f9;
        padding: 15px;
        border-radius: 5px;
        margin-top: 15px;
        border-left: 3px solid #eee;
    }
    
    .review-recommend {
        display: inline-block;
        padding: 5px 12px;
        border-radius: 20px;
        font-size: 0.85rem;
        font-weight: 600;
        margin-top: 15px;
    }
    
    .recommend-yes {
        background-color: #d4edda;
        color: #155724;
    }
    
    .recommend-maybe {
        background-color: #fff3cd;
        color: #856404;
    }
    
    .recommend-no {
        background-color: #f8d7da;
        color: #721c24;
    }
    
    .no-reviews {
        text-align: center;
        padding: 40px;
        color: #666;
        font-size: 1.1rem;
    }
    
    .form-container {
        max-width: 800px;
        margin: 0 auto 40px;
        background-color: white;
        border-radius: var(--radius);
        box-shadow: var(--shadow);
        overflow: hidden;
    }
    
    .form-section {
        padding: 25px 30px;
        border-bottom: 1px solid var(--gray-color);
    }
    
    .section-title {
        display: flex;
        align-items: center;
        color: var(--primary-dark);
        margin-bottom: 20px;
        font-size: 1.3rem;
    }
    
    .section-number {
        background-color: var(--primary-color);
        color: white;
        width: 32px;
        height: 32px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        margin-right: 10px;
        font-weight: bold;
    }
    
    .form-group {
        margin-bottom: 20px;
    }
    
    label {
        display: block;
        margin-bottom: 8px;
        font-weight: 600;
        color: var(--dark-color);
    }
    
    input[type="text"] {
        width: 100%;
        padding: 12px 15px;
        border: 1px solid var(--border-color);
        border-radius: var(--radius);
        font-size: 1rem;
        transition: border-color 0.3s;
    }
    
    input[type="text"]:focus {
        outline: none;
        border-color: var(--primary-color);
        box-shadow: 0 0 0 3px rgba(42, 107, 157, 0.2);
    }
    
    .radio-group {
        display: flex;
        flex-wrap: wrap;
        gap: 15px;
        margin-top: 10px;
    }
    
    .radio-option {
        display: flex;
        align-items: center;
    }
    
    .radio-option input {
        margin-right: 8px;
        transform: scale(1.2);
    }
    
    .stars-rating {
        display: flex;
        justify-content: center;
        gap: 10px;
        margin: 25px 0;
    }
    
    .star {
        font-size: 2.8rem;
        color: #ddd;
        cursor: pointer;
        transition: color 0.2s, transform 0.2s;
    }
    
    .star:hover {
        transform: scale(1.1);
    }
    
    .star.active {
        color: #ffc107;
    }
    
    .rating-labels {
        display: flex;
        justify-content: space-between;
        margin-top: 10px;
        font-size: 0.9rem;
        color: #666;
    }
    
    textarea {
        width: 100%;
        padding: 12px 15px;
        border: 1px solid var(--border-color);
        border-radius: var(--radius);
        font-size: 1rem;
        min-height: 100px;
        resize: vertical;
        transition: border-color 0.3s;
    }
    
    textarea:focus {
        outline: none;
        border-color: var(--primary-color);
        box-shadow: 0 0 0 3px rgba(42, 73, 157, 0.2);
    }
    
    .recommend-options {
        display: flex;
        gap: 20px;
        margin-top: 10px;
    }
    
    .checkbox-option {
        display: flex;
        align-items: center;
        margin-bottom: 15px;
    }
    
    .checkbox-option input {
        margin-right: 10px;
        transform: scale(1.2);
    }
    
    .form-buttons {
        display: flex;
        justify-content: center;
        gap: 20px;
        margin: 30px 0;
    }
    
    .submit-btn {
        background: linear-gradient(to right, var(--primary-color), var(--primary-dark));
        color: white;
        border: none;
        padding: 16px 40px;
        font-size: 1.1rem;
        font-weight: 600;
        border-radius: var(--radius);
        cursor: pointer;
        transition: all 0.3s;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }
    
    .cancel-btn {
        background-color: #6c757d;
        color: white;
        border: none;
        padding: 16px 40px;
        font-size: 1.1rem;
        font-weight: 600;
        border-radius: var(--radius);
        cursor: pointer;
        transition: all 0.3s;
    }
    
    .submit-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    }
    
    .cancel-btn:hover {
        background-color: #5a6268;
        transform: translateY(-2px);
    }
    
    .required::after {
        content: " *";
        color: var(--secondary-color);
    }
    
    .optional {
        font-size: 0.9rem;
        color: #777;
        font-weight: normal;
    }
    
    /* FIXED: Rating distribution styles */
    .distribution-title {
        margin-top: 0;
        margin-bottom: 20px;
        color:#0d5fa8;
        font-size: 1.3rem;
    }
    
    .rating-distribution {
        margin-top: 0;
        flex-grow: 1;
        display: flex;
        flex-direction: column;
    }
    
    #rating-distribution {
        flex-grow: 1; /* Take remaining space */
        display: flex;
        flex-direction: column;
        justify-content: space-around; /* Distribute rows evenly */
    }
    
    .distribution-row {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 12px;
        padding: 5px 0;
    }
    
    .distribution-bar {
        flex: 1;
        height: 20px;
        background-color: #e9ecef;
        border-radius: 10px;
        overflow: hidden;
        margin: 0 15px;
    }
    
    .distribution-fill {
        height: 100%;
        background-color: var(--primary-color);
        border-radius: 10px;
    }
    
    .back-to-index {
        display: inline-block;
        color: white;
        text-decoration: none;
        margin-bottom: 20px;
        font-size: 1.1rem;
    }
    
    .back-to-index i {
        margin-right: 8px;
    }
    
    /* Optional: Add a minimum height to ensure cards look good on mobile */
    @media (max-width: 991px) {
        .stats-card {
            min-height: 250px;
        }
    }