/* Rating Component Styles */
.rating-container {
    margin: 10px 0;
    padding: 10px 0;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.excuse-rating {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.rating-stars {
    display: flex;
    gap: 5px;
}

.rating-star {
    font-size: 20px;
    color: #ddd;
    cursor: pointer;
    transition: color 0.2s, transform 0.1s;
}

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

.rating-star.hover {
    color: #ffb400;
}

.rating-star.active {
    color: #ff9800;
}

.rating-info {
    font-size: 14px;
    color: #666;
}

.avg-rating {
    font-weight: bold;
    color: #333;
    margin-right: 5px;
}

/* Toast Notifications */
.rating-toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #333;
    color: white;
    padding: 12px 24px;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s, transform 0.3s;
    z-index: 1000;
}

.rating-toast.show {
    opacity: 1;
    transform: translateY(0);
}

.rating-toast.success {
    background: #4caf50;
}

.rating-toast.error {
    background: #f44336;
}

/* Dark mode support */
body.dark-mode .rating-star {
    color: #555;
}

body.dark-mode .rating-star.hover {
    color: #ffc107;
}

body.dark-mode .rating-star.active {
    color: #ff9800;
}

body.dark-mode .rating-info {
    color: #aaa;
}

body.dark-mode .avg-rating {
    color: #fff;
}

body.dark-mode .rating-container {
    border-top-color: rgba(255, 255, 255, 0.1);
}

/* Responsive design */
@media (max-width: 768px) {
    .excuse-rating {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .rating-star {
        font-size: 24px;
    }
    
    .rating-toast {
        bottom: 10px;
        right: 10px;
        left: 10px;
        text-align: center;
    }
}

/* Loading state */
.rating-container.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Animation for star selection */
@keyframes starPulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
    }
}

.rating-star.active {
    animation: starPulse 0.3s ease-in-out;
}