/* Fichier: assets/css/voting-system.css */

.svs-container {
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    max-width: 500px;
    margin: 20px 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.svs-question {
    margin-bottom: 20px;
}

.svs-question p {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 0 0 15px 0;
}

/* Boutons de vote */
.svs-voting {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.svs-option-btn {
    background: #ffffff;
    border: 2px solid #2196F3;
    color: #2196F3;
    padding: 12px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.svs-option-btn:hover {
    background: #2196F3;
    color: white;
    transform: translateY(-2px);
}

.svs-option-btn:active {
    transform: translateY(0);
}

/* Message de vote */
.svs-voted-message {
    background: #e8f5e9;
    color: #2e7d32;
    padding: 12px;
    border-radius: 6px;
    text-align: center;
    font-weight: 500;
    margin: 20px 0;
}

/* Résultats */
.svs-results {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2px solid #e0e0e0;
}

.svs-results-title {
    font-weight: 600;
    color: #666;
    margin-bottom: 15px;
    font-size: 14px;
}

.svs-result-item {
    margin-bottom: 15px;
}

.svs-result-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
    font-size: 14px;
}

.svs-result-label span:first-child {
    color: #333;
    font-weight: 500;
}

.svs-result-count {
    color: #999;
    font-size: 13px;
}

.svs-result-bar {
    width: 100%;
    height: 24px;
    background: #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.svs-result-fill {
    height: 100%;
    background: linear-gradient(90deg, #2196F3, #1976D2);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: width 0.3s ease;
    min-width: 30px;
}

.svs-percentage {
    color: white;
    font-size: 12px;
    font-weight: 600;
}

/* États de chargement */
.svs-container.loading .svs-option-btn {
    opacity: 0.6;
    pointer-events: none;
}

.svs-container.voting .svs-option-btn {
    position: relative;
}

/* Messages d'erreur */
.svs-error {
    background: #ffebee;
    color: #c62828;
    padding: 10px 12px;
    border-radius: 4px;
    margin: 10px 0;
    font-size: 14px;
}

/* Responsif */
@media (max-width: 600px) {
    .svs-container {
        padding: 15px;
    }
    
    .svs-question p {
        font-size: 16px;
    }
    
    .svs-option-btn {
        padding: 10px 14px;
        font-size: 14px;
    }
    
    .svs-result-bar {
        height: 20px;
    }
    
    .svs-percentage {
        font-size: 11px;
    }
}
