/* ==========================================================================
   NAV TABS GLOBAIS (módulos: financeiro, estoque, profissionais, configurações)
   APPLE INSPIRED
   ========================================================================== */
.nav-tabs {
    border-bottom: 1px solid rgba(255, 255, 255, 0.07) !important;
    gap: 0.25rem;
}

.nav-tabs .nav-link {
    background: transparent;
    border: 1px solid transparent;
    border-radius: 10px 10px 0 0;
    color: rgba(255, 255, 255, 0.45) !important;
    font-size: 0.88rem;
    font-weight: 500;
    padding: 0.6rem 1.1rem;
    transition: all 0.25s cubic-bezier(0.25, 1, 0.5, 1);
}

.nav-tabs .nav-link:hover {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.04) !important;
    border-color: transparent;
}

.nav-tabs .nav-link.active {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-bottom-color: transparent !important;
    color: #ffffff !important;
    font-weight: 600;
}

/* ==========================================================================
   TABELAS GLOBAIS (dentro de .stat-card)
   ========================================================================== */
/* Fix para menus dropdown cortados nas tabelas */
.stat-card.overflow-hidden {
    overflow: visible !important;
}

.stat-card .table {
    color: #e5e7eb !important;
    margin-bottom: 0;
}

.stat-card .table thead.table-light th {
    background: rgba(255, 255, 255, 0.04) !important;
    color: rgba(255, 255, 255, 0.5) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
    border-top: none !important;
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.9rem 1.25rem;
}

.stat-card .table tbody tr {
    border-bottom: 1px solid rgba(255, 255, 255, 0.04) !important;
    transition: background 0.2s ease;
}

.stat-card .table tbody tr:last-child {
    border-bottom: none !important;
}

.stat-card .table tbody tr:hover {
    background: rgba(255, 255, 255, 0.03) !important;
}

.stat-card .table tbody td {
    color: #d1d5db !important;
    padding: 0.85rem 1.25rem;
    border-bottom: none !important;
    vertical-align: middle;
}

/* Badges de status nas tabelas */
.stat-card .table .badge {
    border-radius: 8px;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 0.35em 0.75em;
    letter-spacing: 0.03em;
}

/* Botões de ação nas tabelas */
.stat-card .table .btn-sm {
    border-radius: 8px;
    font-size: 0.8rem;
    transition: all 0.2s ease;
}

/* ==========================================================================
   FINANCEIRO
   ========================================================================== */
#financeiro h5.fw-bold {
    color: #ffffff;
    letter-spacing: -0.02em;
}

/* ==========================================================================
   ESTOQUE
   ========================================================================== */
#estoque h5.fw-bold {
    color: #ffffff;
    letter-spacing: -0.02em;
}

/* Destaque itens críticos (quantidade baixa) */
#tableEstoque .text-danger {
    color: #f87171 !important;
    font-weight: 600;
}

/* ==========================================================================
   PROFISSIONAIS
   ========================================================================== */
#profissionais h5.fw-bold {
    color: #ffffff;
    letter-spacing: -0.02em;
}

/* ==========================================================================
   CONFIGURAÇÕES
   ========================================================================== */
#configuracoes h5.fw-bold,
#configuracoes h3.fw-bold {
    color: #ffffff;
    letter-spacing: -0.02em;
}

/* Formulário de dados da clínica */
#formClinica .form-label {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.82rem;
    font-weight: 500;
}

/* ==========================================================================
   CAIXA
   ========================================================================== */
#caixa h3.fw-bold {
    color: #ffffff;
    letter-spacing: -0.02em;
}

/* ==========================================================================
   AUDITORIA / LOGS
   ========================================================================== */
#admin-logs h3.fw-bold {
    color: #ffffff;
    letter-spacing: -0.02em;
}

#tableLogs thead.table-light th {
    background: rgba(255, 255, 255, 0.04) !important;
    color: rgba(255, 255, 255, 0.5) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.9rem 1.25rem;
}

/* ==========================================================================
   PACIENTES
   ========================================================================== */
#pacientes h3.fw-bold {
    color: #ffffff;
    letter-spacing: -0.02em;
}

/* ==========================================================================
   AGENDA (botão novo agendamento)
   ========================================================================== */
.section-container .btn-info.text-white {
    background: rgba(0, 113, 227, 0.85) !important;
    border: none !important;
    color: #ffffff !important;
    border-radius: 10px !important;
    font-weight: 600;
    transition: all 0.25s cubic-bezier(0.25, 1, 0.5, 1);
}

.section-container .btn-info.text-white:hover {
    background: #0071e3 !important;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(0, 113, 227, 0.4) !important;
}

.section-container .btn-sm.btn-info.text-white {
    font-size: 0.85rem;
    padding: 0.5rem 1rem;
    border-radius: 9px !important;
}
