.newstack-poll-container {
    max-width: 600px;
    margin: 20px auto;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.newstack-poll-container h3 {
    margin: 0 0 20px 0;
    color: #333;
    font-size: 1.4em;
    text-align: center;
}

.poll-stats {
    text-align: center;
    margin-bottom: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    color: #666;
    border-left: 4px solid #007cba;
}

.total-votes {
    font-weight: 600;
    color: #333;
    font-size: 1.1em;
}

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

.vote-count,
.vote-percentage {
    display: inline-block;
    margin-right: 15px;
    font-size: 0.9em;
    color: #666;
}

.vote-stats {
    display: flex;
    gap: 15px;
    align-items: center;
}

.vote-count {
    font-weight: 600;
    color: #333;
}

.vote-percentage {
    font-weight: 600;
    color: #333;
}

.poll-form-actions {
    display: flex;
    gap: 10px;
    margin-top: 10px;
    justify-content: center;
}

.poll-form-actions .view-results-btn {
    background: #ff8b00;
    color: #fff;
    border: none;
    padding: 12px 20px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s ease, box-shadow .2s ease;
    box-shadow: 0 2px 6px rgba(255,139,0,0.25);
    flex: 1;
}

.poll-form-actions .view-results-btn:hover {
    background: #e67f00;
    box-shadow: 0 4px 10px rgba(255,139,0,0.35);
}

.poll-form-actions .view-results-btn:focus {
    outline: none;
}

.poll-actions {
    margin-top: 20px;
    text-align: center;
}

.poll-submit,
.view-results-btn,
.back-to-vote-btn {
    display: inline-block;
    background: #ff8b00;
    color: #fff !important;
    border: none;
    padding: 12px 20px;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 600 !important;
    cursor: pointer;
    transition: background .2s ease, box-shadow .2s ease;
    margin: 0 5px;
    text-decoration: none;
    box-shadow: 0 2px 6px rgba(255,139,0,0.25);
    min-width: 250px;
    letter-spacing: 0.05rem;
}

.view-results-btn:hover,
.back-to-vote-btn:hover,
.poll-submit:hover {
    background: #e67f00;
    color: #fff !important;
    box-shadow: 0 4px 10px rgba(255,139,0,0.35);
}

.view-results-btn:focus,
.back-to-vote-btn:focus,
.poll-submit:focus {
    outline: none;
}

.poll-option-result {
    margin-bottom: 16px;
    padding: 12px 16px;
    background: #f1f1f3; /* igual às opções */
    border-radius: 12px;
    border: 1px solid #ececec;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden; /* preenchimento ocupa toda a área com o mesmo raio */
}

.poll-option-result:hover {
    border-color: #ececec;
    box-shadow: 0 1px 6px rgba(0,0,0,0.05);
}

.answer-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0;
    flex-wrap: wrap;
    gap: 10px;
    position: relative;
    z-index: 1;
}

.answer-text {
    font-weight: 600;
    color: #333;
    flex: 1;
    min-width: 200px;
}

.vote-stats {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
}

.vote-count,
.vote-percentage {
    font-weight: 600;
    color: #333;
    font-size: 0.9em;
}

/* Barra de progresso ocupando toda a área do card de resultado */
.poll-option-result .progress-bar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    background: transparent;
    border-radius: 12px;
    overflow: hidden;
}

.poll-option-result .progress-fill {
    height: 100%;
    background: #ff8b00;
    border-radius: 12px 0 0 12px;
    transition: width 0.3s ease;
    animation: none; /* não anima até 100%, respeita o width em % */
}

@media (max-width: 768px) {
    .newstack-poll-container {
        margin: 10px 10px 30px;
        padding: 15px;
    }

    .newstack-poll-container .poll-question {
        margin: -15px -15px 12px -15px;
        border-radius: 8px 8px 0 0;
        padding: 10px 14px;
    }

    .poll-form-actions {
        flex-direction: column;
        gap: 8px;
    }

    .poll-actions {
        display: flex;
        flex-direction: column;
        gap: 8px;
        text-align: initial;
    }
    .poll-actions .view-results-btn,
    .poll-actions .back-to-vote-btn {
        display: block;
        width: 100%;
        margin: 0;
        text-align: center;
    }

    .answer-info {
        flex-direction: row;
    }

    .answer-text {
        min-width: auto;
        font-size: 1.0rem;
    }

    .vote-count,
    .vote-percentage {
        margin-right: 10px;
    }
}

.poll-option input[type="radio"]:focus + .answer-text {
    outline: none;
    outline-offset: 0;
}

.poll-submit:focus {
    outline: 2px solid #007cba;
    outline-offset: 2px;
}

/* Animações */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.poll-option {
    animation: fadeIn 0.3s ease;
}

/* removido slideIn global; a barra de resultado controla width via CSS inline */

.newstack-poll-container {
    position: relative;
    overflow: hidden;
}


.newstack-poll-container .poll-question {
    background: #5b5b5b;
    color: #fff;
    font-weight: 600;
    text-align: center;
    padding: 12px 16px;
    margin: -20px -20px 16px -20px;
    border-radius: 8px 8px 0 0;
}

.poll-option {
    margin: 12px 0;
    padding: 0;
    border: 0;
    background: transparent;
}

.poll-option-label {
    display: block;
    padding: 0;
    cursor: pointer;
}

.poll-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
    margin: 0;
    transform: none;
}

.poll-option .answer-text {
    display: block;
    background: #f1f1f3;
    color: #444;
    padding: 12px 16px;
    border-radius: 12px;
    border: 1px solid #ececec;
    box-shadow: 0 1px 0 rgba(0,0,0,0.02);
    transition: background .2s ease, color .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.poll-option-label:hover .answer-text {
    background: #eaeaec;
    border-color: #eaeaec;
    border-radius: 12px;
}

.poll-option input[type="radio"]:checked + .answer-text {
    background: #ff8b00;
    border-color: #ff8b00;
    color: #fff;
    box-shadow: 0 2px 8px rgba(255,139,0,0.25);
}

.poll-option-label:focus-within .answer-text {
    outline: none;
    outline-offset: 0;
}

.poll-option-label { -webkit-tap-highlight-color: transparent; }

.poll-option-label:active .answer-text { box-shadow: none; filter: none; }
