/* Rating System Styles */

/* Star Rating Component */
.star-rating {
    display: inline-flex;
    gap: 0.5rem;
    font-size: 2.5rem;
    user-select: none;
}

.star-rating .star {
    cursor: pointer;
    transition: all 0.2s ease;
    color: #e0e0e0;
}

.star-rating .star:hover {
    transform: scale(1.2);
}

.star-rating .star.fas {
    color: #ffc107;
}

.star-rating .star.text-warning {
    color: #ffc107 !important;
}

/* Rating Modal Customizations */
#ratingModal .modal-content {
    border-radius: 1rem;
    border: none;
    box-shadow: 0 0.5rem 2rem rgba(0, 0, 0, 0.2);
}

#ratingModal .modal-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 1rem 1rem 0 0;
    padding: 1.5rem;
}

#ratingModal .modal-title {
    font-weight: 600;
    font-size: 1.25rem;
}

#ratingModal .btn-close {
    filter: brightness(0) invert(1);
}

#ratingModal .modal-body {
    padding: 2rem;
}

/* Rating button styles are in telegram-fab.css */

/* Form Styling */
#ratingForm .form-label {
    font-weight: 500;
    color: #495057;
    margin-bottom: 0.5rem;
}

#ratingForm .form-control {
    border-radius: 0.5rem;
    border: 1px solid #dee2e6;
    padding: 0.75rem 1rem;
    transition: all 0.2s ease;
}

#ratingForm .form-control:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

#ratingForm textarea.form-control {
    resize: vertical;
    min-height: 100px;
}

/* Submit Button */
#submitRating {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 0.5rem;
    padding: 0.875rem 1.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

#submitRating:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 0.5rem 1rem rgba(102, 126, 234, 0.3);
}

#submitRating:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Success Message */
#ratingSuccess {
    border-radius: 0.75rem;
    background-color: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
    padding: 1rem 1.25rem;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Adjustments */
@media (max-width: 576px) {
    .star-rating {
        font-size: 2rem;
        gap: 0.25rem;
    }

    #ratingModal .modal-body {
        padding: 1.5rem;
    }

    #ratingModal .modal-header {
        padding: 1rem;
    }
}
