﻿.app-layout {
    display: flex;
    min-height: 100vh;
    background: transparent;
    align-items: flex-start;
}

/* SIDEBAR PADRÃO */
.sidebar {
    width: 250px;
    background: rgba(255,255,255,0.02);
    border-right: 1px solid rgba(255,255,255,0.05);
    display: flex;
    flex-direction: column;
    padding: 22px;
    height: fit-content;
    min-height: auto;
    align-self: flex-start;
    border-radius: 0 0 24px 0;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    flex-shrink: 0;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 900;
    font-size: 1.2rem;
    margin-bottom: 26px;
    color: #fff;
}

.logo-icon {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #22c55e, #2dd4bf);
    color: #041017;
    font-size: 1.5rem;
    font-weight: 900;
    flex-shrink: 0;
}

.logo-textos-sidebar {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

    .logo-textos-sidebar strong {
        color: #fff;
        font-size: 1.05rem;
        line-height: 1.1;
    }

    .logo-textos-sidebar span {
        color: var(--cor-texto-suave);
        font-size: 0.88rem;
        line-height: 1.1;
    }

/* MENU */
.menu {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.menu-item {
    min-height: 48px;
    display: flex;
    align-items: center;
    padding: 0 14px;
    border-radius: 14px;
    color: var(--cor-texto-suave);
    text-decoration: none;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s ease;
    border: 1px solid transparent;
}

    .menu-item:hover,
    .menu-item.ativo {
        background: rgba(255,255,255,0.05);
        color: #fff;
        border-color: rgba(255,255,255,0.06);
    }

.menu-footer {
    margin-top: 14px;
    padding-top: 6px;
}

.menu-item.sair {
    color: #f87171;
}

    .menu-item.sair:hover {
        background: rgba(248,113,113,0.08);
        color: #fff;
    }

/* CONTEÚDO */
.conteudo-pagina {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 18px;
    min-width: 0;
    padding: 22px;
}

/* TOPO */
.topo-interno {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 16px;
    flex-wrap: wrap;
}

    .topo-interno h1 {
        margin: 0;
        font-size: clamp(2.6rem, 4vw, 4rem);
        line-height: 0.95;
        color: #fff;
    }

.tag-pagina {
    display: inline-block;
    color: #dffcf0;
    font-size: 0.95rem;
    margin-bottom: 8px;
}

.topo-acoes-interno {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.busca-box {
    width: 260px;
}

    .busca-box input {
        width: 100%;
        height: 48px;
        border-radius: 14px;
        background: rgba(255,255,255,0.04);
        border: 1px solid rgba(255,255,255,0.08);
        padding: 0 14px;
        color: white;
        outline: none;
    }

        .busca-box input:focus {
            border-color: rgba(56,189,248,0.35);
            box-shadow: 0 0 0 4px rgba(56,189,248,0.08);
        }

/* BOTÕES */
.btn-exportar,
.btn-filtrar,
.acoes-linha button,
.item-exportacao button {
    min-height: 48px;
    border-radius: 14px;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.25s ease;
    border: none;
    color: #fff;
}

.btn-exportar {
    padding: 0 22px;
    background: linear-gradient(135deg, #22c55e, #38bdf8);
}

    .btn-exportar:hover {
        transform: translateY(-1px);
    }

/* RESUMOS */
.resumos-relatorios {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.resumo-interno {
    padding: 18px;
    border-radius: 18px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.05);
}

    .resumo-interno span {
        display: block;
        color: var(--cor-texto-suave);
        font-size: 0.95rem;
        margin-bottom: 6px;
    }

    .resumo-interno strong {
        display: block;
        color: #fff;
        font-size: 1.6rem;
        line-height: 1.1;
        margin-bottom: 6px;
    }

    .resumo-interno small {
        display: block;
        color: var(--cor-texto-suave);
        font-size: 0.92rem;
        line-height: 1.35;
    }

/* FILTROS */
.filtros-relatorios {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 260px;
    gap: 14px;
    padding: 16px;
    align-items: end;
}

.filtro-grupo {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

    .filtro-grupo label {
        color: #fff;
        font-weight: 700;
        font-size: 0.95rem;
        line-height: 1.1;
        margin: 0;
    }

    .filtro-grupo select {
        width: 100%;
        height: 46px;
        border-radius: 16px;
        background: rgba(255, 255, 255, 0.04);
        border: 1px solid rgba(255, 255, 255, 0.08);
        color: #fff;
        padding: 0 14px;
        outline: none;
        font-family: inherit;
        font-size: 0.98rem;
        appearance: none;
        -webkit-appearance: none;
    }

        .filtro-grupo select option {
            background: #0b1b24;
            color: #fff;
        }

.filtro-acoes {
    display: flex;
    align-items: flex-end;
    width: 100%;
}

.btn-filtrar {
    width: 100%;
    height: 46px;
    min-height: 46px;
    padding: 0 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #22c55e, #38bdf8);
    box-shadow: 0 10px 26px rgba(56, 189, 248, 0.12);
}

    .btn-filtrar:hover {
        transform: translateY(-1px);
        filter: brightness(1.04);
    }

/* BLOCOS */
.blocos-relatorios {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 18px;
}

.card-grafico,
.card-exportacao,
.painel-listagem {
    min-width: 0;
}

.bloco-topo,
.painel-listagem-topo {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 16px;
}

.painel-tag {
    color: #7df0ad;
    font-size: 0.85rem;
    font-weight: 600;
}

.bloco-topo h3,
.painel-listagem-topo h3 {
    margin: 0;
    color: #fff;
    font-size: clamp(1.5rem, 2vw, 2.3rem);
    line-height: 1.05;
}

.contador-lista {
    color: var(--cor-texto-suave);
    font-size: 0.95rem;
}

/* GRÁFICO */
.card-grafico {
    padding: 0;
}

.grafico-fake {
    display: flex;
    align-items: flex-end;
    gap: 12px;
    height: 230px;
    padding-top: 6px;
}

.barra {
    flex: 1;
    min-width: 0;
    border-radius: 16px;
    background: linear-gradient(180deg, #38bdf8 0%, #22c55e 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

/* EXPORTAÇÃO */
.lista-exportacao {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.item-exportacao {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 14px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.03);
    min-width: 0;
}

    .item-exportacao > div {
        min-width: 0;
    }

    .item-exportacao strong {
        display: inline-block;
        color: #fff;
        font-size: 0.98rem;
        margin-bottom: 4px;
    }

    .item-exportacao span {
        display: inline-block;
        color: var(--cor-texto-suave);
        font-size: 0.96rem;
        line-height: 1.35;
    }

    .item-exportacao button {
        min-width: 88px;
        padding: 0 18px;
        background: rgba(56, 189, 248, 0.12);
        border: 1px solid rgba(56, 189, 248, 0.25);
        color: #fff;
        flex-shrink: 0;
    }

        .item-exportacao button:hover {
            background: rgba(56, 189, 248, 0.2);
            transform: translateY(-1px);
        }

/* LISTAGEM */
.painel-listagem-topo {
    margin-bottom: 14px;
}

.tabela-relatorios {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.linha-tabela {
    display: grid;
    grid-template-columns: 1fr 1fr 2fr 1fr 1fr 100px;
    align-items: center;
    gap: 12px;
    padding: 14px 12px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.03);
    color: #e9f4f0;
    transition: 0.25s ease;
}

    .linha-tabela:hover {
        transform: translateY(-2px);
        background: rgba(255, 255, 255, 0.045);
    }

    .linha-tabela.cabecalho {
        background: rgba(255, 255, 255, 0.04);
        color: #fff;
        font-weight: 800;
    }

.status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    padding: 6px 12px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.88rem;
    color: #fff;
    white-space: nowrap;
}

    .status.ativo {
        background: rgba(34, 197, 94, 0.18);
        border: 1px solid rgba(34, 197, 94, 0.24);
    }

    .status.concluido {
        background: rgba(56, 189, 248, 0.18);
        border: 1px solid rgba(56, 189, 248, 0.24);
    }

    .status.pendente {
        background: rgba(250, 204, 21, 0.18);
        border: 1px solid rgba(250, 204, 21, 0.24);
    }

.acoes-linha {
    display: flex;
    justify-content: flex-start;
}

    .acoes-linha button {
        min-width: 72px;
        padding: 0 16px;
        background: rgba(56, 189, 248, 0.12);
        border: 1px solid rgba(56, 189, 248, 0.25);
    }

        .acoes-linha button:hover {
            background: rgba(56, 189, 248, 0.2);
            transform: translateY(-1px);
        }

/* GLASS EXTRA */
.card-grafico,
.card-exportacao,
.painel-listagem,
.resumo-interno,
.filtros-relatorios,
.sidebar {
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

/* RESPONSIVO */
@media (max-width: 1280px) {
    .resumos-relatorios {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .filtros-relatorios {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .filtro-acoes {
        grid-column: span 2;
    }
}

@media (max-width: 1100px) {
    .blocos-relatorios {
        grid-template-columns: 1fr;
    }

    .busca-box {
        width: 100%;
    }
}

@media (max-width: 900px) {
    .sidebar {
        display: none;
    }

    .topo-acoes-interno {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
    }

    .busca-box {
        width: 100%;
    }

    .btn-exportar {
        width: 100%;
    }

    .conteudo-pagina {
        padding: 16px;
    }
}

@media (max-width: 700px) {
    .resumos-relatorios {
        grid-template-columns: 1fr;
    }

    .filtros-relatorios {
        grid-template-columns: 1fr;
    }

    .filtro-acoes {
        grid-column: auto;
    }

    .item-exportacao {
        flex-direction: column;
        align-items: stretch;
    }

        .item-exportacao button {
            width: 100%;
        }

    .linha-tabela {
        grid-template-columns: 1fr;
        gap: 8px;
    }

        .linha-tabela.cabecalho {
            display: none;
        }

    .acoes-linha button {
        width: 100%;
    }

    .grafico-fake {
        height: 180px;
        gap: 10px;
    }
}
