/* ==========================================
   OLYMPO ADMIN V2
   DASHBOARD
========================================== */


/* ==========================================
   CARDS PRINCIPAIS
========================================== */

.dashboard-cards {

    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 18px;

    margin-bottom: 30px;

}


/* ==========================================
   CARD PRINCIPAL
========================================== */

.dashboard-card {

    position: relative;

    display: flex;

    flex-direction: column;

    min-height: 175px;

    padding: 22px;

    background:
        linear-gradient(
            145deg,
            #17212d 0%,
            #0e151e 100%
        );

    border:
        1px solid #283341;

    border-radius: 16px;

    overflow: hidden;

    text-decoration: none;

    box-shadow:
        0 10px 25px rgba(0, 0, 0, 0.20);

    transition:
        transform 0.25s ease,
        border-color 0.25s ease,
        box-shadow 0.25s ease,
        background 0.25s ease;

}


/* ==========================================
   LINHA DOURADA SUPERIOR
========================================== */

.dashboard-card::after {

    content: "";

    position: absolute;

    top: 0;
    left: 12%;

    width: 76%;
    height: 2px;

    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(212, 175, 55, 0.65),
            transparent
        );

    opacity: 0.8;

}


/* ==========================================
   BARRA LATERAL
========================================== */

.dashboard-card::before {

    content: "";

    position: absolute;

    top: 0;
    left: 0;

    width: 3px;
    height: 100%;

    background:
        linear-gradient(
            180deg,
            #d4af37,
            rgba(212, 175, 55, 0.15)
        );

    opacity: 0.75;

    transition:
        width 0.25s ease,
        opacity 0.25s ease;

}


.dashboard-card:hover {

    transform:
        translateY(-4px);

    background:
        linear-gradient(
            145deg,
            #1b2836 0%,
            #111b26 100%
        );

    border-color:
        rgba(212, 175, 55, 0.48);

    box-shadow:
        0 15px 32px rgba(0, 0, 0, 0.28),
        0 0 25px rgba(212, 175, 55, 0.06);

}


.dashboard-card:hover::before {

    width: 5px;

    opacity: 1;

}


/* ==========================================
   TOPO
========================================== */

.dashboard-card__topo {

    display: flex;

    align-items: center;
    justify-content: space-between;

    margin-bottom: 20px;

}


.dashboard-card__topo > span:first-child {

    color: #aeb7c2;

    font-size: 11px;

    font-weight: 700;

    letter-spacing: 1.1px;

    text-transform: uppercase;

}


/* ==========================================
   ÍCONE
========================================== */

.dashboard-card__icone {

    display: flex;

    align-items: center;
    justify-content: center;

    width: 34px;
    height: 34px;

    color: #d4af37;

    font-size: 9px;

    background:
        rgba(212, 175, 55, 0.07);

    border:
        1px solid rgba(212, 175, 55, 0.25);

    border-radius: 50%;

    transition:
        transform 0.25s ease,
        background 0.25s ease;

}


.dashboard-card:hover .dashboard-card__icone {

    transform:
        rotate(45deg);

    background:
        rgba(212, 175, 55, 0.12);

}


/* ==========================================
   VALOR PRINCIPAL
========================================== */

.dashboard-card > strong {

    display: block;

    margin-bottom: 10px;

    color: #d4af37;

    font-size: 32px;

    font-weight: 700;

    line-height: 1.1;

    letter-spacing: -0.6px;

    text-shadow:
        0 0 20px rgba(212, 175, 55, 0.08);

}


/* ==========================================
   COMPRAS / CAIXA
========================================== */

.compras-preview,
.caixa-preview {

    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 10px;

    margin-top: 0;

}


.compras-preview__item,
.caixa-preview__item {

    min-width: 0;

    padding: 11px;

    background:
        rgba(255, 255, 255, 0.025);

    border:
        1px solid rgba(255, 255, 255, 0.065);

    border-radius: 10px;

    transition:
        border-color 0.2s ease,
        background 0.2s ease;

}


.dashboard-card:hover
.compras-preview__item,
.dashboard-card:hover
.caixa-preview__item {

    border-color:
        rgba(212, 175, 55, 0.16);

    background:
        rgba(255, 255, 255, 0.035);

}


.compras-preview__label,
.caixa-preview__label {

    display: block;

    margin-bottom: 6px;

    color: #778391;

    font-size: 9px;

    font-weight: 700;

    letter-spacing: 0.55px;

    text-transform: uppercase;

}


.compras-preview__valor,
.caixa-preview__valor {

    display: block;

    color: #d4af37;

    font-size: 14px;

    font-weight: 700;

    line-height: 1.2;

    white-space: nowrap;

    overflow: hidden;

    text-overflow: ellipsis;

}


.caixa-preview__valor--entrada {

    color: #d4af37;

}


.caixa-preview__valor--saida {

    color: #c96f6f;

}
.caixa-preview__item:has(.caixa-preview__valor--entrada) {
    border-color: rgba(85, 200, 120, 0.22);

    background:
        linear-gradient(
            145deg,
            rgba(85, 200, 120, 0.07),
            rgba(85, 200, 120, 0.025)
        );
}

.caixa-preview__item:has(.caixa-preview__valor--entrada)
.caixa-preview__label {
    color: #78b98b;
}
.caixa-preview__item:has(.caixa-preview__valor--saida) {
    border-color: rgba(216, 115, 115, 0.20);

    background:
        linear-gradient(
            145deg,
            rgba(216, 115, 115, 0.06),
            rgba(216, 115, 115, 0.02)
        );
}

.caixa-preview__item:has(.caixa-preview__valor--saida)
.caixa-preview__label {
    color: #b98282;
}


/* ==========================================
   RODAPÉ
========================================== */

.dashboard-card__rodape {

    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 10px;

    margin-top: auto;

    padding-top: 15px;

    border-top:
        1px solid rgba(255, 255, 255, 0.06);

    color: #707b87;

    font-size: 10px;

    font-weight: 600;

}


.dashboard-card__rodape span:last-child {

    color: #d4af37;

    font-size: 18px;

    transition:
        transform 0.25s ease;

}


.dashboard-card:hover
.dashboard-card__rodape span:last-child {

    transform:
        translateX(5px);

}


/* ==========================================
   SEÇÕES
========================================== */

.dashboard-secao {

    margin-bottom: 22px;

    background:
        linear-gradient(
            145deg,
            #151f2a 0%,
            #0f171f 100%
        );

    border:
        1px solid #293440;

    border-radius: 16px;

    overflow: hidden;

    box-shadow:
        0 10px 25px rgba(0, 0, 0, 0.15);

}


/* ==========================================
   TÍTULO DA SEÇÃO
========================================== */

.dashboard-secao__titulo {

    display: flex;

    align-items: center;
    justify-content: space-between;

    padding: 22px 25px;

    background:
        rgba(255, 255, 255, 0.012);

    border-bottom:
        1px solid #293440;

}


.dashboard-secao__titulo > div > span {

    display: block;

    margin-bottom: 6px;

    color: #d4af37;

    font-size: 9px;

    font-weight: 700;

    letter-spacing: 2px;

    text-transform: uppercase;

}


.dashboard-secao__titulo h2 {

    margin: 0;

    color: #ffffff;

    font-size: 19px;

    font-weight: 600;

}


/* ==========================================
   ÁREA DE CONTEÚDO
========================================== */

.movimentacoes,
.ultimas-vendas,
.alertas-estoque {

    padding: 15px 20px;

}


/* ==========================================
   ITEM GENÉRICO DO DASHBOARD
========================================== */

.item-dashboard {

    position: relative;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 18px;

    min-height: 66px;

    margin-bottom: 10px;

    padding: 14px 17px 14px 20px;

    background:
        linear-gradient(
            145deg,
            #17222e,
            #111a24
        );

    border:
        1px solid #283441;

    border-radius: 12px;

    overflow: hidden;

    transition:
        transform 0.2s ease,
        border-color 0.2s ease,
        background 0.2s ease;

}


.item-dashboard:last-child {

    margin-bottom: 0;

}


.item-dashboard::before {

    content: "";

    position: absolute;

    left: 0;
    top: 0;

    width: 3px;
    height: 100%;

    background:
        #d4af37;

    opacity: 0.65;

}


.item-dashboard:hover {

    transform:
        translateX(3px);

    border-color:
        rgba(212, 175, 55, 0.32);

    background:
        linear-gradient(
            145deg,
            #1a2734,
            #131e29
        );

}


.item-dashboard > div {

    display: flex;

    flex-direction: column;

    gap: 5px;

    min-width: 0;

}


.item-dashboard strong {

    color: #f4f5f7;

    font-size: 14px;

    font-weight: 600;

    line-height: 1.3;

}


.item-dashboard small {

    color: #788593;

    font-size: 10px;

    line-height: 1.4;

}


.item-dashboard > strong:last-child {

    flex-shrink: 0;

    color: #d4af37;

    font-size: 15px;

    font-weight: 700;

}


/* ==========================================
   ALERTAS
========================================== */

.alertas-estoque .item-dashboard {

    border-color:
        rgba(196, 79, 79, 0.22);

}


.alertas-estoque .item-dashboard::before {

    background:
        #c96f6f;

}


.alertas-estoque .item-dashboard > strong:last-child {

    color:
        #e27676;

}


.alertas-estoque .item-dashboard:hover {

    border-color:
        rgba(220, 80, 80, 0.42);

}


/* ==========================================
   VENDAS
========================================== */

.ultimas-vendas .item-dashboard::before {

    background:
        #d4af37;

}


.ultimas-vendas .item-dashboard > strong:last-child {

    color:
        #d4af37;

}


/* ==========================================
   MOVIMENTAÇÕES
========================================== */

.movimentacoes .item-dashboard::before {

    background:
        #75879a;

}


.movimentacoes .item-dashboard > strong:last-child {

    font-size: 14px;

}


/* ==========================================
   ESTADO VAZIO
========================================== */

.dashboard-secao .estado-vazio {

    margin: 5px 0;

    padding: 28px 20px;

    text-align: center;

    background:
        rgba(255, 255, 255, 0.015);

    border:
        1px dashed #303b47;

    border-radius: 11px;

}


.dashboard-secao .estado-vazio strong {

    display: block;

    margin-bottom: 7px;

    color: #c5ccd4;

    font-size: 14px;

}


.dashboard-secao .estado-vazio p {

    margin: 0;

    color: #687481;

    font-size: 11px;

}


/* ==========================================
   DESTAQUE DA SEÇÃO DE ALERTAS
========================================== */

.dashboard-alertas {

    border-color:
        rgba(196, 79, 79, 0.20);

}


.dashboard-alertas
.dashboard-secao__titulo {

    border-bottom-color:
        rgba(196, 79, 79, 0.20);

}


.dashboard-alertas
.dashboard-secao__titulo > div > span {

    color:
        #d87979;

}


/* ==========================================
   RESPONSIVO
========================================== */

@media (max-width: 1100px) {

    .dashboard-cards {

        grid-template-columns:
            repeat(2, minmax(0, 1fr));

    }

}


@media (max-width: 650px) {

    .dashboard-cards {

        grid-template-columns: 1fr;

        gap: 12px;

        margin-bottom: 22px;

    }


    .dashboard-card {

        min-height: 155px;

        padding: 19px;

    }


    .dashboard-card > strong {

        font-size: 28px;

    }


    .dashboard-secao {

        margin-bottom: 16px;

        border-radius: 13px;

    }


    .dashboard-secao__titulo {

        padding: 18px;

    }


    .dashboard-secao__titulo h2 {

        font-size: 17px;

    }


    .movimentacoes,
    .ultimas-vendas,
    .alertas-estoque {

        padding: 12px;

    }


    .item-dashboard {

        gap: 10px;

        min-height: 62px;

        padding: 13px 13px 13px 17px;

    }


    .item-dashboard strong {

        font-size: 13px;

    }


    .item-dashboard small {

        font-size: 9px;

    }


    .item-dashboard > strong:last-child {

        font-size: 13px;

    }


    .compras-preview,
    .caixa-preview {

        gap: 7px;

    }


    .compras-preview__item,
    .caixa-preview__item {

        padding: 9px;

    }


    .compras-preview__valor,
    .caixa-preview__valor {

        font-size: 12px;

    }

}