/* ===============================================================
   DASHBOARD (index/home) — estilos específicos desta página
   Não redefine globais do home.css.
   =============================================================== */

.main-content {
    padding: 24px 30px;
    overflow-y: auto;
    background: var(--color-background-light);
}

/* ── GRID PRINCIPAL (3 colunas) ─────────────────────────────── */

.dashboard-row {
    display: grid;
    grid-template-columns: 240px 1fr 210px;
    gap: 20px;
    margin-bottom: 24px;
    align-items: start;
}

/* Label de seção dentro de card */
.card-section-title {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.7px;
    color: var(--color-gray-text);
    margin: 0 0 14px 0;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* ── DONUT — Armazenamento ───────────────────────────────────── */

.storage-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 22px 18px 18px;
    gap: 0;
}

.storage-card .card-section-title {
    align-self: flex-start;
}

.donut-wrapper {
    position: relative;
    width: 148px;
    height: 148px;
    margin: 6px 0 14px;
}

.donut-wrapper canvas {
    width: 100% !important;
    height: 100% !important;
}

.donut-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    pointer-events: none;
}

.donut-pct {
    display: block;
    font-size: 1.85rem;
    font-weight: 700;
    color: var(--color-dark-text);
    line-height: 1;
}

.donut-label {
    display: block;
    font-size: 0.68rem;
    color: var(--color-gray-text);
    margin-top: 3px;
    letter-spacing: 0.3px;
}

.storage-info-text {
    font-size: 0.82rem;
    color: var(--color-gray-text);
    text-align: center;
    margin: 0 0 12px;
}

.storage-info-text strong {
    color: var(--color-dark-text);
}

.storage-legend {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.78rem;
    color: var(--color-gray-text);
}

.legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}

.legend-dot.used { background: #3498db; }
.legend-dot.free { background: #e9ecef; border: 1px solid #ccc; }

/* ── BAR CHART — Uploads mensais ─────────────────────────────── */

.monthly-card {
    display: flex;
    flex-direction: column;
    padding: 22px 20px 18px;
}

.chart-container {
    flex: 1;
    position: relative;
    min-height: 190px;
}

/* ── COLUNA LATERAL — Stats + Ações ─────────────────────────── */

.side-col {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.stat-card {
    text-align: center;
    padding: 18px 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.stat-icon {
    font-size: 1.7rem;
    color: var(--color-accent-blue);
}

.stat-card h4 {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--color-gray-text);
    margin: 0;
}

.stat-card p {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-dark-text);
    margin: 0;
    line-height: 1.1;
}

.quick-actions {
    display: flex;
    flex-direction: column;
    padding: 18px 14px;
    gap: 10px;
}

.quick-actions .btn {
    max-width: 100%;
    font-size: 0.88rem;
    padding: 10px 14px;
    text-decoration: none;
}

/* ── FAVORITOS ───────────────────────────────────────────────── */

.favorites-card {
    padding: 22px 20px;
}

.favorites-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}

.favorites-header h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-dark-text);
    margin: 0;
}

/* ── RESPONSIVIDADE ──────────────────────────────────────────── */

@media (max-width: 1050px) {
    .dashboard-row {
        grid-template-columns: 220px 1fr;
        grid-template-rows: auto auto;
    }

    .side-col {
        grid-column: 1 / -1;
        flex-direction: row;
        flex-wrap: wrap;
    }

    .side-col .stat-card {
        flex: 1;
        min-width: 120px;
    }

    .side-col .quick-actions {
        flex: 2;
        flex-direction: row;
        flex-wrap: wrap;
    }

    .quick-actions .btn {
        flex: 1;
        min-width: 140px;
    }
}

@media (max-width: 700px) {
    .main-content {
        padding: 15px;
    }

    .dashboard-row {
        grid-template-columns: 1fr;
    }

    .side-col {
        flex-direction: column;
    }

    /* Remove min-width fixo dos botões herdado do breakpoint 1050px */
    .quick-actions .btn {
        min-width: 0;
        width: 100%;
    }

    /* Stat cards ocupam toda a largura em mobile */
    .side-col .stat-card {
        min-width: 0;
        width: 100%;
    }
}
