/* Estilos para las encuestas */
.poll-card {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.poll-option {
    position: relative;
    overflow: hidden;
    background-color: #f8f9fa;
    transition: all 0.3s ease;
}

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

.poll-option.voted {
    background-color: #e8f5e9;
}

.poll-progress {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background-color: rgba(76, 175, 80, 0.1);
    transition: width 0.6s ease-in-out;
    z-index: 1;
}

.poll-content {
    position: relative;
    z-index: 2;
}

.poll-percentage {
    font-weight: 500;
    color: #4caf50;
}

.voters-list {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.voter-item {
    position: relative;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    overflow: hidden;
    transition: transform 0.2s ease;
}

.voter-item:hover {
    transform: scale(1.1);
    z-index: 3;
}

.voter-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: 2px solid #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.more-voters {
    background-color: #e0e0e0;
    color: #666;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.poll-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.poll-results {
    max-height: 80vh;
    overflow-y: auto;
    padding: 20px;
}

.stats-summary {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    margin: 15px 0;
}

.result-item {
    background-color: #fff;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.progress {
    height: 8px;
    border-radius: 4px;
    background-color: #e9ecef;
}

.progress-bar {
    background-color: #4caf50;
    transition: width 0.6s ease;
}

.voters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(32px, 1fr));
    gap: 4px;
    margin-top: 10px;
}

/* Animaciones */
.fade-in {
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Estilos del formulario de creación */
.poll-options-container {
    max-height: 300px;
    overflow-y: auto;
    padding: 10px;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    margin-bottom: 10px;
}

.input-group {
    margin-bottom: 8px;
}

.input-group:last-child {
    margin-bottom: 0;
}

/* Tooltips personalizados */
.tooltip {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.tooltip-inner {
    background-color: #333;
    border-radius: 4px;
    font-size: 12px;
}

/* Responsive */
@media (max-width: 768px) {
    .poll-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .poll-actions button {
        width: 100%;
        margin-bottom: 8px;
    }
    
    .poll-actions small {
        text-align: center;
    }
    
    .stats-summary .row {
        flex-direction: column;
    }
    
    .stats-summary .col {
        margin-bottom: 15px;
    }
}
