/* 
 * Nexus Statistic - Botões Padronizados com FontAwesome
 * Implementação das regras consolidadas de desenvolvimento
 */

/* ========================================
   PADRONIZAÇÃO GLOBAL DE BOTÕES
   ======================================== */

/* Tamanhos padronizados para todos os botões */
.btn {
    padding: 0.65rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: var(--border-radius);
    border: none;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 0.02em;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
    line-height: 1.5;
    min-height: 38px;
}

/* Efeito de onda ao clicar */
.btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
    z-index: 1;
    pointer-events: none;
}

.btn:hover::after {
    width: 300%;
    height: 300%;
}

/* Efeitos de hover padrão */
.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.btn:active {
    transform: translateY(1px);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Tamanhos alternativos */
.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
    min-height: 32px;
}

.btn-lg {
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
    min-height: 44px;
}

/* ========================================
   MAPEAMENTO OFICIAL DE BOTÕES
   ======================================== */

/* Botões de Ação Principal */
.btn-create {
    background-color: var(--primary-blue);
    color: white;
    border: none;
    padding: 0.65rem 1.25rem;
    font-size: 0.875rem;
    min-height: 38px;
}

.btn-create:hover {
    background-color: var(--primary-blue-dark);
    color: white;
}

.btn-create::before {
    content: "\f067"; /* fas fa-plus */
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    margin-right: 0.5rem;
}

/* Botões de Visualização */
.btn-view {
    background-color: var(--info-blue);
    color: white;
    border: none;
    padding: 0.65rem 1.25rem;
    font-size: 0.875rem;
    min-height: 38px;
}

.btn-view:hover {
    background-color: #138496;
    color: white;
}

.btn-view::before {
    content: "\f06e"; /* fas fa-eye */
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    margin-right: 0.5rem;
}

/* Botões de Edição */
.btn-edit {
    background-color: var(--success-green);
    color: white;
    border: none;
    padding: 0.65rem 1.25rem;
    font-size: 0.875rem;
    min-height: 38px;
}

.btn-edit:hover {
    background-color: #218838;
    color: white;
}

.btn-edit::before {
    content: "\f044"; /* fas fa-edit */
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    margin-right: 0.5rem;
}

/* Botões de Exclusão */
.btn-delete {
    background-color: var(--danger-red);
    color: white;
    border: none;
    padding: 0.65rem 1.25rem;
    font-size: 0.875rem;
    min-height: 38px;
}

.btn-delete:hover {
    background-color: #c82333;
    color: white;
}

.btn-delete::before {
    content: "\f2ed"; /* fas fa-trash */
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    margin-right: 0.5rem;
}

/* Botões de Salvar */
.btn-save {
    background-color: var(--success-green);
    color: white;
    border: none;
    padding: 0.65rem 1.25rem;
    font-size: 0.875rem;
    min-height: 38px;
}

.btn-save:hover {
    background-color: #218838;
    color: white;
}

.btn-save::before {
    content: "\f0c7"; /* fas fa-save */
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    margin-right: 0.5rem;
}

/* Botões de Cancelar */
.btn-cancel {
    background-color: var(--secondary-gray);
    color: white;
    border: none;
    padding: 0.65rem 1.25rem;
    font-size: 0.875rem;
    min-height: 38px;
}

.btn-cancel:hover {
    background-color: var(--secondary-gray-dark);
    color: white;
}

.btn-cancel::before {
    content: "\f00d"; /* fas fa-times */
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    margin-right: 0.5rem;
}

/* Botões de Relatório */
.btn-report {
    background-color: var(--primary-blue);
    color: white;
    border: none;
    padding: 0.65rem 1.25rem;
    font-size: 0.875rem;
    min-height: 38px;
}

.btn-report:hover {
    background-color: var(--primary-blue-dark);
    color: white;
}

.btn-report::before {
    content: "\f080"; /* fas fa-chart-bar */
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    margin-right: 0.5rem;
}

/* Botões de Exportar */
.btn-export {
    background-color: var(--success-green);
    color: white;
    border: none;
    padding: 0.65rem 1.25rem;
    font-size: 0.875rem;
    min-height: 38px;
}

.btn-export:hover {
    background-color: #218838;
    color: white;
}

.btn-export::before {
    content: "\f019"; /* fas fa-download */
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    margin-right: 0.5rem;
}

/* Botões de Imprimir */
.btn-print {
    background-color: var(--info-blue);
    color: white;
    border: none;
    padding: 0.65rem 1.25rem;
    font-size: 0.875rem;
    min-height: 38px;
}

.btn-print:hover {
    background-color: #138496;
    color: white;
}

.btn-print::before {
    content: "\f02f"; /* fas fa-print */
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    margin-right: 0.5rem;
}

/* Botões de Voltar */
.btn-back {
    background-color: transparent;
    color: var(--secondary-gray);
    border: 1px solid var(--secondary-gray);
    padding: 0.65rem 1.25rem;
    font-size: 0.875rem;
    min-height: 38px;
}

.btn-back:hover {
    background-color: var(--secondary-gray);
    color: white;
}

.btn-back::before {
    content: "\f060"; /* fas fa-arrow-left */
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    margin-right: 0.5rem;
}

/* ========================================
   BOTÕES DE AÇÃO COMPACTOS (TABELAS)
   ======================================== */

.action-btn-view {
    background-color: var(--info-blue);
    color: white;
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--border-radius);
    text-decoration: none;
    border: none;
    transition: var(--transition);
}

.action-btn-view:hover {
    background-color: #138496;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    text-decoration: none;
}

.action-btn-view::before {
    content: "\f06e"; /* fas fa-eye */
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    font-size: 0.875rem;
}

.action-btn-edit {
    background-color: var(--success-green);
    color: white;
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--border-radius);
    text-decoration: none;
    border: none;
    transition: var(--transition);
}

.action-btn-edit:hover {
    background-color: #218838;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    text-decoration: none;
}

.action-btn-edit::before {
    content: "\f044"; /* fas fa-edit */
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    font-size: 0.875rem;
}

.action-btn-delete {
    background-color: var(--danger-red);
    color: white;
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--border-radius);
    text-decoration: none;
    border: none;
    transition: var(--transition);
}

.action-btn-delete:hover {
    background-color: #c82333;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    text-decoration: none;
}

.action-btn-delete::before {
    content: "\f2ed"; /* fas fa-trash */
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    font-size: 0.875rem;
}

/* ========================================
   BOTÕES ESPECIAIS
   ======================================== */

/* Botão de Busca */
.btn-search {
    background-color: var(--primary-blue);
    color: white;
    border: none;
    padding: 0.65rem 1.25rem;
    font-size: 0.875rem;
    min-height: 38px;
}

.btn-search:hover {
    background-color: var(--primary-blue-dark);
    color: white;
}

.btn-search::before {
    content: "\f002"; /* fas fa-search */
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    margin-right: 0.5rem;
}

/* Botão de Limpar */
.btn-clear {
    background-color: var(--secondary-gray);
    color: white;
    border: none;
    padding: 0.65rem 1.25rem;
    font-size: 0.875rem;
    min-height: 38px;
}

.btn-clear:hover {
    background-color: var(--secondary-gray-dark);
    color: white;
}

.btn-clear::before {
    content: "\f00d"; /* fas fa-times */
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    margin-right: 0.5rem;
}

/* Botão PDF */
.btn-pdf {
    background-color: var(--danger-red);
    color: white;
    border: none;
    padding: 0.65rem 1.25rem;
    font-size: 0.875rem;
    min-height: 38px;
}

.btn-pdf:hover {
    background-color: #c82333;
    color: white;
}

.btn-pdf::before {
    content: "\f1c1"; /* fas fa-file-pdf */
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    margin-right: 0.5rem;
}

/* Botão Excel */
.btn-excel {
    background-color: var(--success-green);
    color: white;
    border: none;
    padding: 0.65rem 1.25rem;
    font-size: 0.875rem;
    min-height: 38px;
}

.btn-excel:hover {
    background-color: #218838;
    color: white;
}

.btn-excel::before {
    content: "\f1c3"; /* fas fa-file-excel */
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    margin-right: 0.5rem;
}

/* ========================================
   RESPONSIVIDADE
   ======================================== */

@media (max-width: 576px) {
    .btn {
        font-size: 0.8rem;
        padding: 0.5rem 1rem;
        min-height: 34px;
    }
    
    .btn-sm {
        font-size: 0.75rem;
        padding: 0.375rem 0.75rem;
        min-height: 30px;
    }
    
    .action-btn-view,
    .action-btn-edit,
    .action-btn-delete {
        width: 28px;
        height: 28px;
    }
    
    .action-btn-view::before,
    .action-btn-edit::before,
    .action-btn-delete::before {
        font-size: 0.75rem;
    }
}

/* Responsividade para tablets */
@media (max-width: 768px) and (min-width: 577px) {
    .btn {
        font-size: 0.85rem;
        padding: 0.6rem 1.15rem;
        min-height: 36px;
    }
    
    .action-btn-view,
    .action-btn-edit,
    .action-btn-delete {
        width: 30px;
        height: 30px;
    }
}
/* Override: remove pseudo icons from compact action buttons */
.action-btn-view::before,
.action-btn-edit::before,
.action-btn-delete::before { content: none !important; display: none !important; }

/* ========================================
   CONTEXTO: CONFIRM DELETE (MODAIS)
   Minimalista e elegante: sem ícones nos botões, espaçamento sóbrio
   ======================================== */
.confirm-delete .btn-delete::before,
.confirm-delete .btn-cancel::before {
    content: none !important;
    display: none !important;
}

.confirm-delete .btn-delete,
.confirm-delete .btn-cancel {
    padding: 0.55rem 1.1rem;
    border-radius: var(--border-radius);
    font-weight: 500;
    min-height: 36px;
}
