/* ==========================================================================
   NAV TABS GLOBAIS (módulos: financeiro, estoque, profissionais, configurações)
   LIGHT THEME
   ========================================================================== */
.nav-tabs {
    border-bottom: 1px solid #e2e8f0 !important;
    gap: 0.25rem;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.nav-tabs::-webkit-scrollbar {
    display: none;
}

.nav-tabs .nav-link {
    background: transparent;
    border: 1px solid transparent;
    border-radius: 10px 10px 0 0;
    color: #64748b !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);
    white-space: nowrap;
}

.nav-tabs .nav-link:hover {
    color: #0f172a !important;
    background: #f1f5f9 !important;
    border-color: transparent;
}

.nav-tabs .nav-link.active {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-bottom-color: transparent !important;
    color: #0071e3 !important;
    font-weight: 600;
}

/* ==========================================================================
   TABELAS GLOBAIS (dentro de .stat-card)
   ========================================================================== */
.stat-card.overflow-hidden {
    overflow: visible !important;
}

/* Estilos de menus dropdown */
.dropdown-menu {
    background: #ffffff !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 14px !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08) !important;
    padding: 0.4rem 0 !important;
    z-index: 99999 !important;
}

.dropdown-item {
    color: #334155 !important;
    font-size: 0.85rem !important;
    font-weight: 500 !important;
    padding: 0.55rem 1rem !important;
    transition: all 0.2s ease !important;
    display: flex !important;
    align-items: center !important;
}

.dropdown-item:hover, .dropdown-item:focus {
    background-color: #f1f5f9 !important;
    color: #0071e3 !important;
}

.dropdown-item.text-danger {
    color: #ef4444 !important;
}

.dropdown-item.text-danger:hover {
    background-color: #fef2f2 !important;
    color: #dc2626 !important;
}

.stat-card .table-responsive {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
    border-radius: 16px;
    width: 100%;
}

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

.stat-card .table thead.table-light th {
    background: #f8fafc !important;
    color: #475569 !important;
    border-bottom: 1px solid #e2e8f0 !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 #e2e8f0 !important;
    transition: background 0.2s ease;
}

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

.stat-card .table tbody tr:hover {
    background: #f1f5f9 !important;
}

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

.stat-card .table .badge {
    border-radius: 8px;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 0.35em 0.75em;
    letter-spacing: 0.03em;
}

.stat-card .table .btn-sm {
    border-radius: 8px;
    font-size: 0.8rem;
    transition: all 0.2s ease;
}

/* ==========================================================================
   TITULOS DE MODULOS
   ========================================================================== */
#financeiro h5.fw-bold,
#estoque h5.fw-bold,
#profissionais h5.fw-bold,
#configuracoes h5.fw-bold,
#configuracoes h3.fw-bold,
#caixa h3.fw-bold,
#admin-logs h3.fw-bold,
#pacientes h3.fw-bold {
    color: #0f172a;
    letter-spacing: -0.02em;
}

#formClinica .form-label {
    color: #475569;
    font-size: 0.82rem;
    font-weight: 500;
}

#tableLogs thead.table-light th {
    background: #f8fafc !important;
    color: #475569 !important;
    border-bottom: 1px solid #e2e8f0 !important;
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.9rem 1.25rem;
}

/* Agenda */
.section-container .btn-info.text-white {
    background: #0071e3 !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: #0077ed !important;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(0, 113, 227, 0.3) !important;
}

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

@media (max-width: 767.98px) {
    .stat-card.p-0 {
        border-radius: 14px !important;
    }
    .stat-card .table td, 
    .stat-card .table th {
        padding: 0.75rem 0.6rem !important;
        font-size: 0.82rem !important;
        white-space: nowrap;
    }
    .section-container h3.fw-bold {
        font-size: 1.25rem !important;
    }
}
