.voting-widget {
    margin: 40px 20px;
    text-align: left;
}

.voting-container {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    background-color: #f5f5f5;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.voting-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 2px solid #ddd;
    background-color: #fff;
    border-radius: 6px;
    cursor: pointer;
    font-size: 18px;
    transition: all 0.2s ease;
}

.voting-btn:hover:not(:disabled) {
    border-color: #999;
    background-color: #f9f9f9;
    transform: scale(1.1);
}

.voting-btn:active:not(:disabled) {
    transform: scale(0.95);
}

.voting-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.voting-upvote {
    /* border-color: #4CAF50; */
    color: #4CAF50;
}

.voting-upvote:hover:not(:disabled) {
    background-color: #e8f5e9;
    border-color: #45a049;
}

.voting-downvote {
    /*  border-color: #f44336; */
    color: #f44336;
}

.voting-downvote:hover:not(:disabled) {
    background-color: #ffebee;
    border-color: #da190b;
}

/* Styling for voted state */
.voting-btn.voted {
    opacity: 1;
    cursor: default;
}

.voting-upvote.voted {
    background-color: #e8f5e9;
    border-color: #4CAF50;
    border-width: 2px;
    font-weight: bold;
}

.voting-downvote.voted {
    background-color: #ffebee;
    border-color: #f44336;
    border-width: 2px;
    font-weight: bold;
}

/* Ensure voted state is visible even when disabled */
.voting-btn:disabled.voted {
    opacity: 1;
}

.voting-count {
    display: inline-block;
    min-width: 50px;
    text-align: center;
    font-size: 16px;
    font-weight: bold;
    color: #333;
}

.voting-message {
    margin-top: 10px;
    font-size: 14px;
    min-height: 20px;
    text-align: center;
}

.voting-success {
    color: #4CAF50;
    font-weight: 600;
}

.voting-error {
    color: #f44336;
    font-weight: 600;
}

/* Responsive design */
@media (max-width: 768px) {
    .voting-container {
        gap: 8px;
        padding: 8px 15px;
    }

    .voting-btn {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }

    .voting-count {
        font-size: 14px;
    }

    .voting-message {
        font-size: 12px;
    }
}
