/*
 * Copyright (c) 2022-2026.  KRITEK, s.r.o  - All Rights Reserved
 * Unauthorized copying of this file, via any medium is strictly prohibited
 * Proprietary and confidential.
 * A product key is required to use this software and its modules. Use of such software without a product key will be punished by law.
 * Written by KRITEK, s.r.o. <info@kritek.eu>
 *
 *
 */

.poll-wrapper {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    background-color: #fff;
}

.poll-header h4 {
    margin-top: 0;
    margin-bottom: 10px;
    color: #333;
}

.poll-description {
    color: #666;
    font-size: 14px;
    margin-bottom: 15px;
}

.poll-options {
    margin-bottom: 15px;
}

.poll-option-label {
    display: block;
    margin-bottom: 8px;
    padding: 8px;
    border: 1px solid #eee;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.poll-option-label:hover {
    background-color: #f9f9f9;
}

.poll-option-label input[type="checkbox"],
.poll-option-label input[type="radio"] {
    margin-right: 8px;
}

.poll-option-text {
    display: inline-block;
    vertical-align: top;
}

.poll-submit-btn {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

.poll-submit-btn:hover {
    background-color: #0056b3;
}

.poll-results {
    margin-bottom: 10px;
}

.poll-option-result {
    margin-bottom: 10px;
}

.poll-option-text {
    margin-bottom: 5px;
    font-weight: bold;
}

.poll-option-bar-container {
    width: 100%;
    height: 20px;
    background-color: #e9ecef;
    border-radius: 10px;
    overflow: hidden;
}

.poll-option-bar {
    height: 100%;
    background-color: #007bff;
    min-width: 20px; /* Ensure it's visible even with low percentage */
    transition: width 0.5s ease;
}

.poll-option-stats {
    margin-top: 4px;
    font-size: 12px;
    color: #666;
    text-align: right;
}

.poll-total-votes {
    font-size: 14px;
    color: #666;
    text-align: right;
    margin-top: 10px;
    font-style: italic;
}

/* Responsive design */
@media (max-width: 768px) {
    .poll-wrapper {
        padding: 10px;
    }
    
    .poll-header h4 {
        font-size: 18px;
    }
}