/**Layer 85: Polls*/
.poll-widget {
    background: #fff;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .1);
    margin-bottom: 1.5rem
}

.poll-question {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: .5rem
}

.poll-description {
    font-size: .875rem;
    color: #6b7280;
    margin-bottom: 1rem
}

.poll-options {
    display: flex;
    flex-direction: column;
    gap: .75rem;
    margin-bottom: 1rem
}

.poll-option {
    padding: 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    cursor: pointer;
    transition: all .3s;
    position: relative
}

.poll-option:hover {
    border-color: #3b82f6;
    background: #f3f4f6
}

.poll-option.result {
    cursor: default;
    border-color: #e5e7eb
}

.poll-option.result:hover {
    background: #fff
}

.option-text {
    font-weight: 600;
    font-size: .875rem;
    position: relative;
    z-index: 2
}

.option-bar {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: linear-gradient(90deg, #dbeafe 0%, #93c5fd 100%);
    border-radius: 6px;
    transition: width .5s ease;
    z-index: 1
}

.option-percentage {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    right: 1rem;
    font-weight: 700;
    color: #3b82f6;
    z-index: 2
}

.option-votes {
    font-size: .75rem;
    color: #6b7280;
    margin-top: .25rem;
    position: relative;
    z-index: 2
}

.poll-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid #e5e7eb;
    font-size: .75rem;
    color: #6b7280
}

.poll-status.closed {
    padding: .25rem .75rem;
    background: #ef4444;
    color: #fff;
    border-radius: 12px;
    font-weight: 600
}

.poll-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem
}

@media (max-width:768px) {
    .poll-grid {
        grid-template-columns: 1fr
    }
}