/* ==========================================================================
   DASHBOARD (APPLE INSPIRED)
   ========================================================================== */

/* Cards de estatísticas */
.stat-card {
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
    border-radius: 18px;
    padding: 1.5rem;
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.stat-card:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.05) !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25) !important;
}

/* Ícone dos stat-cards */
.stat-card .bg-primary.bg-opacity-10,
.stat-card .bg-info.bg-opacity-10,
.stat-card .bg-success.bg-opacity-10,
.stat-card .bg-warning.bg-opacity-10 {
    border-radius: 12px !important;
}

/* Títulos e valores */
.stat-card h6.text-secondary {
    color: rgba(255, 255, 255, 0.5) !important;
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.stat-card h4.fw-bold {
    color: #ffffff !important;
    font-size: 1.6rem;
    letter-spacing: -0.02em;
}

/* Tabela do dashboard (agendamentos de hoje) */
/* Fix para menus dropdown cortados nas tabelas */
.stat-card.overflow-hidden {
    overflow: visible !important;
}

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

.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;
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 1rem 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;
    vertical-align: middle;
}

/* Status do caixa */
#dashboard .d-flex.justify-content-between span {
    color: rgba(255, 255, 255, 0.7);
}

#dashboard hr {
    border-top: 1px solid rgba(255, 255, 255, 0.07) !important;
    opacity: 1;
}

/* Seção de títulos */
#dashboard h2.fw-bold {
    color: #ffffff;
    letter-spacing: -0.03em;
}

#dashboard h5.fw-bold,
#dashboard h4.fw-bold {
    color: #ffffff;
    letter-spacing: -0.02em;
}

#dashboard p.text-secondary {
    color: rgba(255, 255, 255, 0.45) !important;
}

/* Saldo consolidado */
#dashSaldoConsolidado {
    color: #34c759 !important;
}

/* ==========================================================================
   SECTION CONTAINER (VISIBILIDADE)
   Seções são carregadas individualmente via fetch — não precisam de display:none
   ========================================================================== */
.section-container {
    animation: fadeInSection 0.35s cubic-bezier(0.25, 1, 0.5, 1);
}

@keyframes fadeInSection {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
