/* Estilos para a coluna de 2FA na listagem de administradores */
.admin-2fa-badge {
    font-size: 0.8rem;
    font-weight: 500;
    white-space: nowrap;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
}

.admin-2fa-badge.badge-success {
    background-color: #28a745;
    color: white;
}

.admin-2fa-badge.badge-warning {
    background-color: #ffc107;
    color: #212529;
}

.admin-2fa-badge i {
    font-size: 0.7rem;
}

/* Tooltip customizado para 2FA */
.admin-2fa-tooltip {
    position: relative;
}

.admin-2fa-tooltip:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    background-color: #333;
    color: white;
    padding: 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    white-space: nowrap;
    z-index: 1000;
    opacity: 1;
    transition: opacity 0.3s;
}

.admin-2fa-tooltip:hover::before {
    content: '';
    position: absolute;
    bottom: 115%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: #333;
    z-index: 1001;
}

/* Responsividade para dispositivos móveis */
@media (max-width: 768px) {
    .admin-2fa-badge {
        font-size: 0.7rem;
        padding: 0.2rem 0.4rem;
        min-width: 40px;
    }
    
    .admin-2fa-badge span {
        display: none !important;
    }
    
    .admin-2fa-badge i {
        margin: 0 !important;
    }
    
    .admin-table-2fa {
        width: 50px;
        min-width: 50px;
        max-width: 50px;
    }
}

/* Animação suave para mudança de estado */
.admin-2fa-badge {
    transition: all 0.3s ease;
}

.admin-2fa-badge:hover {
    transform: scale(1.05);
}

/* Estilos para o header da coluna 2FA */
.table thead th {
    vertical-align: middle;
}

.table thead th i.fa-shield-alt {
    color: #007bff;
}

/* Alinhamento da coluna 2FA */
.admin-table-2fa {
    text-align: center;
    vertical-align: middle;
    width: 80px;
    min-width: 80px;
    max-width: 80px;
}

/* Melhorias visuais para a tabela de administradores */
.table-responsive .table tbody tr:hover .admin-2fa-badge {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Estado atual do usuário logado */
.table-active .admin-2fa-badge {
    border: 2px solid #007bff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

/* Melhor contraste para o badge de warning */
.admin-2fa-badge.badge-warning {
    background-color: #ffc107;
    color: #212529;
    border: 1px solid #ffca2c;
}

/* Melhor contraste para o badge de success */
.admin-2fa-badge.badge-success {
    background-color: #28a745;
    color: white;
    border: 1px solid #34ce57;
}

/* Espaçamento adequado */
.admin-2fa-badge {
    min-width: 60px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Tooltip nativo melhorado */
.admin-2fa-badge[title] {
    cursor: help;
} 