/* ============================================================
   DASHBOARD STYLES — DosingressosTicket
   ============================================================ */

/* Welcome Header */
.dashboard-welcome {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, #6366f1 0%, #3b82f6 100%);
    border-radius: 16px;
    padding: 24px 32px;
    margin-bottom: 24px;
    color: #fff;
    box-shadow: 0 8px 32px rgba(99, 102, 241, 0.25);
    animation: slideDown 0.5s ease;
}

.welcome-inner h2 {
    margin: 0 0 6px 0;
    font-size: 1.6rem;
    font-weight: 400;
    color: #fff;
}

.welcome-inner p {
    margin: 0;
    opacity: 0.85;
    font-size: 0.9rem;
}

.btn-refresh-dash {
    background: rgba(255,255,255,0.2);
    border: 1.5px solid rgba(255,255,255,0.5);
    color: #fff;
    border-radius: 8px;
    padding: 8px 18px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: background 0.2s;
    white-space: nowrap;
}

.btn-refresh-dash:hover {
    background: rgba(255,255,255,0.35);
}

/* KPI Grid */
.kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.kpi-card {
    background: #fff;
    border-radius: 14px;
    padding: 20px 18px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.07);
    transition: transform 0.2s, box-shadow 0.2s;
    animation: fadeInUp 0.4s ease both;
}

.kpi-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.kpi-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
}

.kpi-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.kpi-label {
    font-size: 0.78rem;
    color: #6b7280;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.kpi-value {
    font-size: 1.45rem;
    font-weight: 700;
    line-height: 1;
}

/* Charts Row */
.charts-row {
    display: flex;
    gap: 20px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.charts-row .panel-default {
    flex: 1;
    min-width: 280px;
    border-radius: 14px !important;
    box-shadow: 0 2px 12px rgba(0,0,0,0.07) !important;
    border: none !important;
    overflow: hidden;
    animation: fadeInUp 0.5s ease both;
}

.charts-row .panel-heading {
    background: #f8fafc !important;
    border-bottom: 1px solid #e5e7eb !important;
    font-weight: 600;
    padding: 14px 20px !important;
    font-size: 0.95rem;
}

/* Empty state */
.empty-state {
    text-align: center;
    color: #9ca3af;
    padding: 40px 20px;
    font-size: 0.9rem;
}

/* Animations */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-16px); }
    to   { opacity: 1; transform: translateY(0); }
}

.bottom-row {
    display: flex;
    flex-wrap: wrap; /* Permite quebrar linha em telas menores */
    gap: 20px;       /* Espaçamento entre os cards */
    margin-top: 20px;
    margin-bottom: 20px;
}

/* Garante que os painéis dentro do botton-row ocupem o espaço disponível */
.bottom-row .tpanelgroup {
    flex: 1; /* Permite que cada painel cresça e ocupe o espaço */
    min-width: 300px; /* Garante que não fiquem muito pequenos */
}

/* Ou se quiser larguras específicas */
/*
.bottom-row .tpanelgroup:nth-child(1) { flex: 1.2; }
.bottom-row .tpanelgroup:nth-child(2) { flex: 0.8; }
*/
/* Delay escalonado nos KPI cards */
.kpi-card:nth-child(1) { animation-delay: 0.05s; }
.kpi-card:nth-child(2) { animation-delay: 0.10s; }
.kpi-card:nth-child(3) { animation-delay: 0.15s; }
.kpi-card:nth-child(4) { animation-delay: 0.20s; }
.kpi-card:nth-child(5) { animation-delay: 0.25s; }
.kpi-card:nth-child(6) { animation-delay: 0.30s; }