/* Sistema de Votação Online - Estilos Públicos */

/* Reset e base */
.svs-container * {
    box-sizing: border-box;
}

.svs-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
    line-height: 1.6;
    color: #333;
}

/* Cards principais */
.svs-login-card,
.svs-voting-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 30px;
    margin-bottom: 20px;
}

/* Header */
.svs-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #007cba;
}

.svs-header h2 {
    color: #007cba;
    margin: 0 0 10px 0;
    font-size: 28px;
    font-weight: 600;
}

.svs-header p {
    color: #666;
    margin: 0;
    font-size: 16px;
}

/* Alertas */
.svs-alert {
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
    border-left: 4px solid;
}

.svs-alert h3 {
    margin: 0 0 10px 0;
    font-size: 18px;
}

.svs-alert p {
    margin: 0;
}

.svs-alert-warning {
    background-color: #fff3cd;
    border-color: #ffc107;
    color: #856404;
}

.svs-alert-info {
    background-color: #d1ecf1;
    border-color: #17a2b8;
    color: #0c5460;
}

.svs-alert-success {
    background-color: #d4edda;
    border-color: #28a745;
    color: #155724;
}

.svs-alert-error {
    background-color: #f8d7da;
    border-color: #dc3545;
    color: #721c24;
}

/* Informações da eleição */
.svs-election-info {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 6px;
    margin-bottom: 25px;
    border-left: 4px solid #007cba;
}

.svs-election-info h3 {
    color: #007cba;
    margin: 0 0 15px 0;
    font-size: 20px;
}

.svs-countdown {
    background: #e3f2fd;
    padding: 10px;
    border-radius: 4px;
    margin-top: 15px;
    text-align: center;
}

.svs-countdown p {
    margin: 0;
    font-weight: 600;
    color: #1976d2;
}

/* Formulários */
.svs-form {
    margin-bottom: 25px;
}

.svs-form-group {
    margin-bottom: 20px;
}

.svs-form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #333;
}

.svs-form-group input {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.svs-form-group input:focus {
    outline: none;
    border-color: #007cba;
    box-shadow: 0 0 0 3px rgba(0, 124, 186, 0.1);
}

.svs-form-group small {
    display: block;
    margin-top: 5px;
    color: #666;
    font-size: 14px;
}

/* Botões */
.svs-btn {
    display: inline-block;
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    min-width: 120px;
}

.svs-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.svs-btn-primary {
    background-color: #007cba;
    color: #fff;
}

.svs-btn-primary:hover:not(:disabled) {
    background-color: #005a87;
    transform: translateY(-1px);
}

.svs-btn-secondary {
    background-color: #6c757d;
    color: #fff;
}

.svs-btn-secondary:hover:not(:disabled) {
    background-color: #545b62;
}

.svs-btn-success {
    background-color: #28a745;
    color: #fff;
}

.svs-btn-success:hover:not(:disabled) {
    background-color: #1e7e34;
}

/* Informações do eleitor */
.svs-voter-info {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 25px;
    border-left: 4px solid #28a745;
}

.svs-voter-info p {
    margin: 5px 0;
    font-size: 14px;
}

/* Opções de votação */
.svs-voting-options {
    display: grid;
    gap: 15px;
    margin: 25px 0;
}

.svs-voting-option {
    display: flex;
    align-items: center;
    padding: 20px;
    border: 3px solid #ddd;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #fff;
}

.svs-voting-option:hover {
    border-color: #007cba;
    background: #f8f9fa;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.svs-voting-option.selected {
    border-color: #007cba;
    background: #e3f2fd;
    box-shadow: 0 0 0 3px rgba(0, 124, 186, 0.2);
}

.option-number {
    width: 50px;
    height: 50px;
    background: #007cba;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: bold;
    margin-right: 20px;
    flex-shrink: 0;
}

.svs-voting-option.selected .option-number {
    background: #28a745;
}

.option-text {
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

/* Confirmação de voto */
.svs-vote-confirmation {
    text-align: center;
}

.selected-option {
    background: #e3f2fd;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
    border: 2px solid #007cba;
}

.selected-option div {
    font-size: 20px;
    font-weight: bold;
    color: #007cba;
}

.confirmation-warning {
    background: #fff3cd;
    padding: 15px;
    border-radius: 6px;
    margin: 20px 0;
    border-left: 4px solid #ffc107;
}

.confirmation-warning p {
    margin: 0;
    color: #856404;
    font-weight: 600;
}

/* Sucesso do voto */
.svs-vote-success {
    text-align: center;
}

.success-icon {
    width: 80px;
    height: 80px;
    background: #28a745;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    margin: 0 auto 20px;
    animation: successPulse 2s ease-in-out;
}

@keyframes successPulse {
    0% { transform: scale(0.8); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 1; }
    100% { transform: scale(1); opacity: 1; }
}

.vote-receipt {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 6px;
    margin: 20px 0;
    border: 1px solid #ddd;
}

.vote-receipt h4 {
    color: #007cba;
    margin: 0 0 15px 0;
}

.vote-receipt p {
    margin: 5px 0;
    font-family: 'Courier New', monospace;
}

/* Ações de votação */
.svs-voting-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 25px;
    flex-wrap: wrap;
}

/* Mensagens */
.svs-message {
    padding: 12px 16px;
    border-radius: 4px;
    margin: 15px 0;
    font-weight: 500;
}

.svs-message-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.svs-message-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.svs-message-info {
    background-color: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* Informações de segurança */
.svs-security-info {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 6px;
    margin-top: 25px;
    border-left: 4px solid #17a2b8;
}

.svs-security-info h4 {
    color: #17a2b8;
    margin: 0 0 15px 0;
    font-size: 16px;
}

.svs-security-info ul {
    margin: 0;
    padding-left: 20px;
}

.svs-security-info li {
    margin-bottom: 5px;
    font-size: 14px;
    color: #666;
}

.svs-security-footer {
    text-align: center;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.svs-security-footer p {
    margin: 0;
    color: #666;
}

/* Footer */
.svs-footer {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    color: #666;
    font-size: 14px;
}

.svs-footer p {
    margin: 5px 0;
}

/* Responsividade */
@media (max-width: 768px) {
    .svs-container {
        padding: 15px;
    }
    
    .svs-login-card,
    .svs-voting-card {
        padding: 20px;
    }
    
    .svs-header h2 {
        font-size: 24px;
    }
    
    .svs-voting-actions {
        flex-direction: column;
    }
    
    .svs-btn {
        width: 100%;
        margin-bottom: 10px;
    }
    
    .option-number {
        width: 40px;
        height: 40px;
        font-size: 16px;
        margin-right: 15px;
    }
    
    .option-text {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .svs-container {
        padding: 10px;
    }
    
    .svs-login-card,
    .svs-voting-card {
        padding: 15px;
    }
    
    .svs-header h2 {
        font-size: 20px;
    }
    
    .svs-voting-option {
        padding: 15px;
    }
}

/* Estados de loading */
.btn-loading {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-loading::after {
    content: '';
    width: 16px;
    height: 16px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Acessibilidade */
.svs-voting-option:focus {
    outline: 3px solid #007cba;
    outline-offset: 2px;
}

.svs-btn:focus {
    outline: 3px solid #007cba;
    outline-offset: 2px;
}

/* Impressão */
@media print {
    .svs-voting-actions,
    .svs-btn {
        display: none !important;
    }
    
    .svs-container {
        box-shadow: none;
        border: 1px solid #000;
    }
}

