/* ==========================================================================
   Componente: Botões
   ========================================================================== */

/* --- Botões de Formulário (Primário e Secundário) --- */

/* Estilo base para todos os botões */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 16px;
    border: none;
    border-radius: 6px;
    font-size: 0.8em;
    font-weight: bold;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease-in-out;
}

/* Botão Primário (Avançar, Filtrar, etc.) */
.btn-primary {
    color: white;
    background-image: linear-gradient(to bottom, #007bff, #0056b3);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn-primary:hover {
    background-image: linear-gradient(to bottom, #0069d9, #004a99);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.btn-primary:active {
    transform: translateY(1px);
    box-shadow: 0 2px 3px rgba(0, 0, 0, 0.1);
}

.icon-next {
    transition: transform 0.2s ease-in-out;
    width: 20px;
    height: 20px;
    background-color: white;
    -webkit-mask-image: url('../../images/next.png');
    mask-image: url('../../images/next.png');
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
}

.btn-primary:hover .icon-next {
    transform: translateX(5px);
}

/* Versão menor do botão para ações secundárias */
.btn.btn-sm {
    font-size: 0.7em;     
    padding: 6px 12px; 
}

/* Botão Secundário (Voltar, Limpar) */
.btn-secondary {
    color: white;
    background-image: linear-gradient(to bottom, #007bff, #0056b3);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    flex-direction: row;
    transition: all 0.2s ease-in-out;
}

.btn-secondary:hover {
    background-color: #d8dde2;
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.btn-secondary:active {
    transform: translateY(1px);
    box-shadow: 0 2px 3px rgba(0, 0, 0, 0.1);
}

.icon-previous {
    transition: transform 0.2s ease-in-out;
    width: 20px;
    height: 20px;
    background-color: white;
    -webkit-mask-image: url('../../images/previous.png');
    mask-image: url('../../images/previous.png');
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
}

.btn-secondary:hover .icon-previous {
    transform: translateX(-5px);
}


/* --- Botões de Ação (Ícones de Editar/Excluir) --- */

.action-btn {
    display: inline-block;
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin-right: 5px;
    background-color: transparent;
    background-position: center;
    background-repeat: no-repeat;
    background-size: 20px 20px;
    transition: background-color 0.2s ease-in-out, opacity 0.2s;
}

.action-btn:hover {
    background-color: #f0f0f0;
    opacity: 0.8;
}

.edit-btn {
    background-image: url('../../images/edit.png');
}

.delete-btn {
    background-image: url('../../images/delete.png');
}

.view-btn {
  background-image: url('../../images/view.png');
}

/* Centraliza o conteúdo da célula de ações na tabela de usuários */
.view-users {
    text-align: center; /* Centraliza horizontalmente */
}