/* Rating System Styles */
.rating-container {
    margin: 1rem 0;
}

.rating-stars {
    display: flex;
    gap: 0.25rem;
    margin-bottom: 0.5rem;
}

.star {
    color: #ddd;
    cursor: pointer;
    font-size: 1.5rem;
    transition: color 0.2s;
}

.star:hover,
.star.hover {
    color: #ffc107;
}

.star.active {
    color: #ffc107;
}

.average-rating {
    font-size: 1.2rem;
    font-weight: bold;
    margin-right: 0.5rem;
}

.total-ratings {
    color: #666;
    font-size: 0.9rem;
}

.rating-form {
    margin-top: 1rem;
}

.rating-form textarea {
    width: 100%;
    padding: 0.5rem;
    margin: 0.5rem 0;
    border: 1px solid #ddd;
    border-radius: 4px;
    resize: vertical;
    min-height: 100px;
}

.rating-form button {
    background-color: #4CAF50;
    color: white;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.rating-form button:hover {
    background-color: #45a049;
}

.reviews-container {
    margin-top: 2rem;
}

.review-item {
    padding: 1rem;
    border-bottom: 1px solid #eee;
}

.review-item:last-child {
    border-bottom: none;
}

.review-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.review-author {
    font-weight: bold;
}

.review-date {
    color: #666;
    font-size: 0.9rem;
}

.review-content {
    margin-top: 0.5rem;
}

.alert {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 1rem;
    border-radius: 4px;
    color: white;
    z-index: 1000;
    animation: slideIn 0.3s ease-out;
}

.alert-success {
    background-color: #4CAF50;
}

.alert-error {
    background-color: #f44336;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Responsive styles */
@media (max-width: 768px) {
    .rating-stars {
        gap: 0.2rem;
    }
    
    .star {
        font-size: 1.2rem;
    }
    
    .average-rating {
        font-size: 1rem;
    }
    
    .total-ratings {
        font-size: 0.8rem;
    }
} 