/* Poll Voters Modal - Modern UI */

.voters-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 1rem;
    animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.voters-modal {
    background: #1a1a1a;
    border-radius: 16px;
    width: 100%;
    max-width: 500px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.voters-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.voters-header span {
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
}

.voters-close {
    background: transparent;
    border: none;
    color: #888;
    font-size: 1.25rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.voters-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.voters-content {
    overflow-y: auto;
    padding: 1rem 0;
    flex: 1;
}

.voters-content::-webkit-scrollbar {
    width: 8px;
}

.voters-content::-webkit-scrollbar-track {
    background: transparent;
}

.voters-content::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}

.voters-content::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

.voters-section {
    margin-bottom: 1.5rem;
}

.voters-section:last-child {
    margin-bottom: 0;
}

.voters-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1.5rem;
    font-weight: 700;
    font-size: 0.95rem;
    color: #fff;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.section-count {
    background: rgba(76, 175, 80, 0.15);
    color: #4CAF50;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
}

.voters-list {
    padding: 0.5rem 0;
}

.voter-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    transition: background 0.2s ease;
    cursor: pointer;
}

.voter-item:hover {
    background: rgba(255, 255, 255, 0.03);
}

.voter-item img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
}

.voter-info {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
    flex: 1;
}

.voter-name {
    font-weight: 600;
    color: #fff;
    font-size: 0.95rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.voter-handle {
    color: #888;
    font-size: 0.85rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.voters-content .empty {
    text-align: center;
    padding: 3rem 1.5rem;
    color: #666;
    font-size: 0.95rem;
}

.voters-content .error-state {
    text-align: center;
    padding: 3rem 1.5rem;
}

.voters-content .error-state p {
    color: #ff6b6b;
    font-size: 0.95rem;
}

.notifications-loading {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 2rem 1.5rem;
    color: #888;
}

.loading-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-top-color: #4CAF50;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Mobile Responsive */
@media (max-width: 600px) {
    .voters-modal {
        max-height: 90vh;
        border-radius: 16px 16px 0 0;
        margin-top: auto;
    }

    .voters-header {
        padding: 1rem 1.25rem;
    }

    .voters-header span {
        font-size: 1.1rem;
    }

    .voter-item {
        padding: 0.75rem 1.25rem;
    }

    .voters-section-header {
        padding: 0.75rem 1.25rem;
    }
}
