body { 
    font-family: 'Arial', sans-serif; 
    background-color: #90b6ef; 
    text-align: center; 
    padding: 20px; 
}

.container { 
    max-width: 600px; 
    margin: 0 auto; 
    background: rgb(198, 198, 224); 
    padding: 30px; 
    border-radius: 15px; 
    box-shadow: 0 4px 15px rgba(0,0,0,0.1); 
}

h1 { 
    color: #020d7f; 
}

.btn-connect { 
    background-color: #49a347; 
    color: rgb(255, 255, 255); 
    padding: 10px 20px; 
    border: none; 
    border-radius: 5px; 
    cursor: pointer; 
    font-size: 16px; 
    margin-bottom: 20px; 
}

.btn-connect:hover { 
    background-color: #05660f; 
}

.candidate-card { 
    border: 1px solid #8c8989; 
    box-shadow: 2px 2px 2px 2px rgb(51, 46, 46);
    padding: 15px; 
    margin: 10px 0; 
    border-radius: 8px; 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
}

.btn-vote { 
    background-color: #008CBA; 
    color: white; 
    border: none; 
    padding: 8px 16px; 
    border-radius: 4px; 
    cursor: pointer; 
}

.btn-vote:disabled { 
    background-color: #ccc; 
    cursor: not-allowed; 
}

#status { 
    margin-top: 20px; 
    font-weight: bold; 
    color: #666; 
}

.loader { 
    border: 4px solid #f3f3f3; 
    border-top: 4px solid #3498db; 
    border-radius: 50%; width: 20px; 
    height: 20px; 
    animation: spin 2s linear infinite; 
    display: inline-block; 
    vertical-align: middle; 
    margin-right: 10px; 
    display: none;
}

@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } 

}
 
.total-card {
    margin-top: 25px;
    padding: 20px;
    background-color: white;
    border-left: 6px solid #020d7f; 
    border-radius: 8px;
    display: flex;
    justify-content: space-between; 
    align-items: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.total-number {
    font-size: 1.8em;
    font-weight: bold;
    color: #020d7f;
}

.btn-disconnect {
    background-color: #ff4d4d;
    color: white;
    padding: 8px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    margin-left: 10px;
    display: none; /* Começa invisível */
    transition: background 0.3s;
}

.btn-disconnect:hover { 
    background-color: #cc0000; 
}
        
.header-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
}
