﻿.app {
    display: flex;
    min-height: 100vh;
    background: transparent;
    align-items: flex-start;
}

/* SIDEBAR */
.sidebar {
    width: 250px;
    background: rgba(255,255,255,0.02);
    backdrop-filter: blur(14px);
    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;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 900;
    font-size: 1.2rem;
    margin-bottom: 26px;
    color: #fff;
}

/* 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 {
    flex: 1;
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    min-width: 0;
}

/* TOPO */
.topo-dashboard {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.input-busca {
    width: 260px;
    height: 46px;
    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;
    transition: all 0.25s ease;
}

    .input-busca::placeholder {
        color: rgba(255,255,255,0.4);
    }

    .input-busca:focus {
        border-color: rgba(56,189,248,0.35);
        box-shadow: 0 0 0 4px rgba(56,189,248,0.08);
    }

/* USER */
.user-area {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #fff;
    font-weight: 700;
}

.avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg,#22c55e,#38bdf8);
    box-shadow: 0 0 12px rgba(56,189,248,0.4);
}

/* CARDS */
.cards {
    display: grid;
    grid-template-columns: repeat(4, minmax(0,1fr));
    gap: 16px;
}

.card {
    padding: 18px;
    border-radius: 18px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.05);
    backdrop-filter: blur(10px);
    transition: all 0.25s ease;
}

    .card:hover {
        transform: translateY(-3px);
        border-color: rgba(34,197,94,0.2);
        box-shadow: 0 10px 25px rgba(34,197,94,0.08);
    }

    .card span {
        font-size: 0.85rem;
        color: var(--cor-texto-suave);
    }

    .card strong {
        display: block;
        font-size: 1.6rem;
        margin-top: 6px;
        color: #fff;
    }

/* TABELA */
.tabela {
    padding: 18px;
    border-radius: 18px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.05);
}

.tabela-header h3 {
    color: #fff;
    font-weight: 800;
}

.tabela-body {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.linha {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    align-items: center;
    padding: 12px 14px;
    border-radius: 12px;
    background: rgba(255,255,255,0.02);
    transition: all 0.2s ease;
}

    .linha:hover {
        background: rgba(255,255,255,0.05);
    }

.ok {
    color: #22c55e;
    font-weight: 700;
}

.warn {
    color: #facc15;
    font-weight: 700;
}

/* RESPONSIVO */
@media (max-width: 1100px) {
    .cards {
        grid-template-columns: repeat(2, minmax(0,1fr));
    }
}

@media (max-width: 900px) {
    .sidebar {
        display: none;
    }

    .input-busca {
        width: 100%;
    }

    .topo-dashboard {
        flex-direction: column;
        align-items: stretch;
    }
}

@media (max-width: 600px) {
    .cards {
        grid-template-columns: 1fr;
    }

    .linha {
        grid-template-columns: 1fr;
        gap: 6px;
    }
}
