/* Like/Dislike Container */
.like-dislike-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

/* Vote Item */
.vote-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

/* Vote Button */
.vote-button {
    cursor: pointer;
    transition: all 0.3s ease;
    width: 180px;
    height: auto;
}

.vote-button.loading {
    opacity: 0.6;
    cursor: not-allowed;
    animation: pulse 1.5s infinite;
}

.vote-button:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

/* Vote Count */
.vote-count {
    font-weight: bold;
    font-size: 20px;
    color: #333;
    min-width: 20px;
    text-align: center;
    margin-right: 60px;
}

.like-count {
    color: #28a745;
}

.dislike-count {
    color: #dc3545;
}

/* Feedback Messages */
.like-dislike-feedback {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 12px 20px;
    border-radius: 4px;
    color: white;
    font-weight: bold;
    z-index: 9999;
    max-width: 300px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    animation: slideInRight 0.3s ease;
}

.like-dislike-feedback.success {
    background: #28a745;
}

.like-dislike-feedback.error {
    background: #dc3545;
}

/* Animations */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .like-dislike-container {
        gap: 15px;
        padding: 12px;
    }
    
    .vote-button {
        max-width: 35px;
        max-height: 35px;
    }
    
    .vote-count {
        font-size: 14px;
    }
    
    .like-dislike-feedback {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
    }
}

/* Admin Styles */
.form-table .upload-image {
    margin-left: 10px;
}

.form-table img {
    display: block;
    margin-top: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

#like-dislike-counts .form-table {
    margin-top: 0;
}

#like-dislike-counts .form-table td {
    padding: 5px 0;
}

#like-dislike-counts input[type="number"] {
    width: 80px;
}