/* Review Modal Styles - Elegant Theme */
.review-modal-content {
    background: linear-gradient(135deg, #272238, #1e1a29);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    position: relative;
}

/* Add elegant gradient overlay at the top */
.review-modal-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: linear-gradient(135deg, rgba(13, 110, 253, 0.15), transparent);
    opacity: 0.7;
    z-index: 0;
    pointer-events: none;
}

/* Modal Header */
.review-modal-header {
    border-color: rgba(255, 255, 255, 0.08);
    padding: 1.25rem;
    background: transparent;
    position: relative;
    z-index: 1;
}

.modal-title-wrapper {
    display: flex;
    align-items: center;
}

.review-modal-icon {
    color: #0d6efd;
    font-size: 1.2rem;
    margin-right: 0.5rem;
}

.review-modal-header .modal-title {
    color: rgba(255, 255, 255, 0.95);
    font-weight: 600;
    font-size: 1.25rem;
    letter-spacing: 0.5px;
}

/* Modal Body */
.review-modal-body {
    padding: 1.5rem;
    position: relative;
    z-index: 1;
}

/* Rating Stars */
.rating-stars {
    display: flex;
    gap: 0.5rem;
    margin: 1rem 0;
    justify-content: center;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.rating-star {
    font-size: 1.75rem;
    color: rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
    transform-origin: center;
}

.rating-star:hover {
    color: #0d6efd;
    transform: scale(1.1);
    text-shadow: 0 0 10px rgba(13, 110, 253, 0.5);
}

.rating-star.active {
    color: #0d6efd;
    animation: star-pulse 0.3s ease;
    text-shadow: 0 0 15px rgba(13, 110, 253, 0.7);
}

@keyframes star-pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

/* Elegant divider */
.review-divider {
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.1), transparent);
    margin: 1.25rem 0;
}

/* Review Textarea */
.review-textarea {
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 1rem;
    resize: none;
    transition: all 0.3s ease;
    color: rgba(255, 255, 255, 0.9) !important;
    font-size: 0.95rem;
    line-height: 1.5;
    min-height: 100px;
}

.review-textarea:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 2px rgba(13, 110, 253, 0.15);
    background: rgba(255, 255, 255, 0.05) !important;
}

.review-textarea::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

/* Modal Footer */
.review-modal-footer {
    border-color: rgba(255, 255, 255, 0.08);
    padding: 1.25rem;
    background: rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 1;
}

/* Close Button */
.btn-close-white {
    filter: invert(1) grayscale(100%) brightness(200%);
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.btn-close-white:hover {
    opacity: 1;
}

/* Form Labels */
.form-label {
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
    letter-spacing: 0.3px;
}

.rating-label {
    text-align: center;
    margin-bottom: 0.5rem;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    letter-spacing: 0.3px;
}

.rating-value {
    text-align: center;
    font-size: 0.95rem;
    color: #0d6efd;
    margin-top: 0.5rem;
    min-height: 20px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* Submit Button */
.submit-btn {
    padding: 0.5rem 1.25rem;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, #0d6efd, #0c63e4);
    border: none;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: hidden;
}

.submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
        transparent,
        rgba(255, 255, 255, 0.1),
        rgba(255, 255, 255, 0.2),
        rgba(255, 255, 255, 0.1),
        transparent);
    transition: left 0.8s ease;
    z-index: 0;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
    background: linear-gradient(135deg, #0c63e4, #0a58ca);
}

.submit-btn:hover::before {
    left: 100%;
}

/* Cancel Button */
.cancel-btn {
    padding: 0.5rem 1.25rem;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    border-color: rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.8);
    border-radius: 8px;
    background: transparent;
}

.cancel-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.3);
    color: rgba(255, 255, 255, 1);
}

/* Spinner style */
.spinner-border-sm {
    width: 1rem;
    height: 1rem;
    border-width: 0.15em;
}

/* Responsive adjustments */
@media (max-width: 576px) {
    .rating-stars {
        gap: 0.4rem;
        padding: 0.6rem;
    }

    .rating-star {
        font-size: 1.5rem;
    }

    .review-modal-body {
        padding: 1.25rem;
    }

    .review-modal-header,
    .review-modal-footer {
        padding: 1rem;
    }

    .form-label,
    .rating-label {
        font-size: 0.9rem;
    }

    .submit-btn,
    .cancel-btn {
        padding: 0.4rem 1rem;
        font-size: 0.9rem;
    }
}