/* ============================================================
   BOTÕES — padrão do painel administrativo (extraído de admin.css)
   Carregado via includes/botoes_css.php — NÃO editar admin.css
   ------------------------------------------------------------
   Padrão: Criar/Novo=botao-principal · Salvar=botao-enviar ·
   Voltar/Cancelar=botao-secundario · Excluir em tabela=link-btn,
   link-btn-danger · destrutiva em destaque=botao-perigo
   ============================================================ */

.btn-submit,
.botao-enviar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: auto;
    padding: 6px 14px;
    background: linear-gradient(135deg, rgba(0, 255, 102, 0.15), rgba(0, 255, 102, 0.08));
    border: 1px solid rgba(0, 255, 102, 0.45);
    border-radius: 30px;
    color: var(--primary-green);
    font-weight: 600;
    font-size: 0.78rem;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0, 255, 102, 0.12), 0 1px 3px rgba(0,0,0,0.3);
    transition: all 0.25s ease;
    text-transform: none;
}

.botao-enviar-bloco {
    width: 100%;
}

.btn-submit:hover,
.botao-enviar:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 28px rgba(0, 255, 102, 0.25), 0 2px 6px rgba(0,0,0,0.4);
    background: linear-gradient(135deg, rgba(0, 255, 102, 0.22), rgba(0, 255, 102, 0.12));
    border-color: rgba(0, 255, 102, 0.6);
}

.btn-submit:active,
.botao-enviar:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(0, 255, 102, 0.15);
}

/* Botão de perigo (pílula vermelha) — variante destrutiva do botao-principal */
.botao-perigo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 6px 14px;
    background: rgba(10, 14, 23, 0.92);
    border: 1px solid rgba(248, 113, 113, 0.45);
    border-radius: 30px;
    color: #f87171;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.78rem;
    white-space: nowrap;
    cursor: pointer;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.5);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.2s ease;
}
.botao-perigo:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 20px rgba(248, 113, 113, 0.35);
    border-color: rgba(248, 113, 113, 0.7);
    color: #f87171;
}

.acesso-voltar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 1.5rem;
    padding: 6px 14px;
    background: rgba(10, 14, 23, 0.92);
    border: 1px solid var(--accent-border);
    border-radius: 30px;
    color: var(--text-light);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.78rem;
    white-space: nowrap;
    cursor: pointer;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.5);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.2s ease, color 0.2s ease;
}

.acesso-voltar:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 20px rgba(0, 255, 102, 0.25);
    border-color: var(--btn-green);
    color: var(--text-light);
}


/* Botão Sair - canto inferior direito */
.logout-fab {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 200;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: rgba(10, 14, 23, 0.92);
    border: 1px solid rgba(255, 77, 77, 0.4);
    border-radius: 30px;
    color: var(--terminal-red);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.78rem;
    backdrop-filter: blur(8px);
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.5);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.logout-fab:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 20px rgba(255, 77, 77, 0.35);
}

.logout-fab svg { width: 16px; height: 16px; }


/* Botão flutuante de Documentação — logo acima do botão Sair (canto inferior direito) */
.docs-fab {
    position: fixed;
    bottom: 74px;
    right: 24px;
    z-index: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: rgba(10, 14, 23, 0.95);
    border: 1px solid var(--accent-border);
    border-radius: 30px;
    color: var(--primary-green);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.78rem;
    white-space: nowrap;
    backdrop-filter: blur(8px);
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.5);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.docs-fab:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 20px rgba(0, 255, 102, 0.35);
}

.docs-fab svg { width: 16px; height: 16px; }

/* Botão Filtros — mesma linguagem visual do Ajuda/Sair, mas em fluxo normal
   (vive no cabeçalho da seção, à direita da seleção de fonte). */
.filtros-fab {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: rgba(10, 14, 23, 0.95);
    border: 1px solid var(--accent-border);
    border-radius: 30px;
    color: var(--primary-green);
    font-weight: 600;
    font-size: 0.78rem;
    white-space: nowrap;
    cursor: pointer;
    backdrop-filter: blur(8px);
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.5);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.filtros-fab:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 20px rgba(0, 255, 102, 0.35);
}

.filtros-fab svg { width: 16px; height: 16px; }

/* Sub-card dos filtros: pendurado no bloco de controles, à direita. */
.filtros-card {
    position: absolute;
    right: 0;
    top: calc(100% + 6px);
    z-index: 500;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: .5rem;
    min-width: 240px;
    padding: .8rem .9rem;
    background: var(--card-bg);
    border: 1px solid var(--accent-border);
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.55);
}

.filtros-card label {
    font-size: .75rem;
    color: var(--text-muted);
    display: flex;
    flex-direction: column;
    gap: .25rem;
}

.filtros-card select,
.filtros-card input[type="date"] {
    padding: .3rem .45rem;
    font-size: .8rem;
}

/* Rodapé do card: janela de horário do dia (das … até …). */
.filtros-card .filtros-hora {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .4rem;
    border-top: 1px solid var(--accent-border);
    padding-top: .55rem;
}

.filtros-card .filtros-hora .filtros-hora-titulo {
    width: 100%;
    font-size: .7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: .4px;
}

.filtros-card .filtros-hora label {
    flex-direction: row;
    align-items: center;
    gap: .2rem;
}

.filtros-card .filtros-hora select {
    padding: .25rem .35rem;
    font-size: .75rem;
}

/* Botão Aplicar do sub-card de filtros. */
.filtros-card .filtros-aplicar {
    align-self: flex-end;
    padding: .3rem .9rem;
    background: rgba(10, 14, 23, 0.95);
    border: 1px solid var(--accent-border);
    border-radius: 8px;
    color: var(--primary-green);
    font-weight: 700;
    font-size: .75rem;
    cursor: pointer;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.filtros-card .filtros-aplicar:hover {
    border-color: var(--primary-green);
    box-shadow: 0 0 12px rgba(0, 255, 102, 0.25);
}

/* ---------- Botões ---------- */
.btn-primary,
.botao-principal {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 6px 14px;
    background: rgba(10, 14, 23, 0.92);
    border: 1px solid rgba(0, 255, 102, 0.4);
    border-radius: 30px;
    color: var(--primary-green);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.78rem;
    white-space: nowrap;
    cursor: pointer;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.5);
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.2s ease;
}
.btn-primary:hover,
.botao-principal:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 20px rgba(0, 255, 102, 0.35);
}

.btn-secondary,
.botao-secundario {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 6px 14px;
    background: rgba(10, 14, 23, 0.92);
    border: 1px solid var(--accent-border);
    border-radius: 30px;
    color: var(--text-light);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.78rem;
    white-space: nowrap;
    cursor: pointer;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.5);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.btn-secondary:hover,
.botao-secundario:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 20px rgba(0, 255, 102, 0.25);
    border-color: var(--btn-green);
    color: var(--text-light);
}

/* ---------- Botão-link padrão (pílula) ---------- */
/* Base global: onde .row-actions .link-btn é mais específico, mantém o
   estilo compacto da tabela. */
.link-btn,
.botao-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 6px 14px;
    background: rgba(10, 14, 23, 0.92);
    border: 1px solid rgba(0, 255, 102, 0.25);
    border-radius: 30px;
    color: var(--primary-green);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.78rem;
    white-space: nowrap;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.link-btn:hover,
.botao-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 18px rgba(0, 255, 102, 0.3);
    border-color: rgba(0, 255, 102, 0.5);
    color: var(--primary-green);
    text-decoration: none;
}
.link-btn-danger,
.botao-link-perigo {
    border-color: rgba(248, 113, 113, 0.35);
    color: #f87171;
}
.link-btn-danger:hover,
.botao-link-perigo:hover {
    box-shadow: 0 0 18px rgba(248, 113, 113, 0.3);
    border-color: rgba(248, 113, 113, 0.6);
    color: #f87171;
}
.link-btn-success,
.botao-link-sucesso {
    border-color: rgba(34, 197, 94, 0.35);
    color: #4ade80;
}
.link-btn-success:hover,
.botao-link-sucesso:hover {
    box-shadow: 0 0 18px rgba(34, 197, 94, 0.3);
    border-color: rgba(34, 197, 94, 0.6);
    color: #4ade80;
}


.filter-bar .btn-secondary {
    flex: 0 0 calc(20% - 1.05rem);
    padding: 6px 14px;
    text-align: center;
}


.row-actions a,
.row-actions .link-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-size: 0.78rem;
    font-weight: 600;
    text-decoration: none;
    background: rgba(10, 14, 23, 0.92);
    border: 1px solid rgba(0, 255, 102, 0.3);
    border-radius: 30px;
    padding: 6px 14px;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.15s, border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}

.row-actions a:hover,
.row-actions .link-btn:hover {
    background: rgba(10, 14, 23, 0.92);
    border-color: rgba(0, 255, 102, 0.5);
    color: var(--primary-green);
    transform: translateY(-1px);
    box-shadow: 0 0 14px rgba(0, 255, 102, 0.25);
    text-decoration: none;
}

.row-actions .link-btn-danger {
    color: #f87171;
}
.row-actions .link-btn-danger:hover {
    background: rgba(10, 14, 23, 0.92);
    border-color: rgba(248,113,113,0.5);
    box-shadow: 0 0 14px rgba(248,113,113,0.25);
    color: #f87171;
}
