/* rating-system.css */
.fixed-rating {
    font-family: Arial, Tahoma, sans-serif;
    direction: rtl;
    margin: 15px 0;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.rating-display {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    cursor: pointer;
    transition: opacity 0.3s;
}

.rating-average {
    display: flex;
    align-items: baseline;
}

.rating-average .avg-number {
    font-size: 32px;
    font-weight: bold;
    color: #333;
    line-height: 1;
}

.rating-average .avg-label {
    font-size: 16px;
    color: #666;
    margin-right: 3px;
}

.rating-stars {
    display: flex;
    direction: ltr;
}

.star-icon {
    font-family: Arial, Tahoma, sans-serif !important;
    font-size: 28px !important;
    line-height: 1 !important;
    margin: 0 2px;
}

.star-icon.star-filled {
    color: #ffc107 !important;
}

.star-icon.star-half {
    position: relative;
    color: #ddd !important;
}

.star-icon.star-half::after {
    content: '★';
    position: absolute;
    left: 0;
    width: 50%;
    overflow: hidden;
    color: #ffc107 !important;
}

.star-icon.star-empty {
    color: #ddd !important;
}

.rating-count {
    display: flex;
    align-items: center;
    background: #e9ecef;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 14px;
}

.rating-count .count-number {
    font-weight: bold;
    color: #333;
    margin-left: 3px;
}

.rating-count .count-label {
    color: #666;
}

.rating-vote-section {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px dashed #ddd;
}

.vote-stars {
    display: flex;
    direction: ltr;
    margin-bottom: 10px;
}

.vote-star {
    font-family: Arial, Tahoma, sans-serif !important;
    font-size: 32px !important;
    color: #ddd;
    margin: 0 3px;
    cursor: pointer;
    transition: all 0.2s;
}

.vote-star:hover {
    transform: scale(1.1);
}

.submit-vote {
    background: #28a745;
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s;
}

.submit-vote:hover:not(:disabled) {
    background: #218838;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.submit-vote:disabled {
    background: #6c757d !important;
    cursor: not-allowed !important;
    opacity: 0.6 !important;
    transform: none !important;
    box-shadow: none !important;
}

.submit-vote:disabled:hover {
    background: #6c757d !important;
    transform: none !important;
    box-shadow: none !important;
}

.vote-message {
    margin-top: 10px;
    padding: 8px;
    border-radius: 4px;
    display: none;
    font-size: 14px;
    text-align: center;
}

.vote-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    display: block;
}

.vote-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    display: block;
}

.vote-message.info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
    display: block;
}

@media (max-width: 768px) {
    .rating-display {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .star-icon,
    .vote-star {
        font-size: 24px !important;
    }
    
    .rating-average .avg-number {
        font-size: 28px;
    }
}