body {
    margin: 0;
    font-family: Arial, sans-serif;
}

/* TOPO */
.topo {
    background: #4180bb;
    padding: 15px 15px;
}

.topo-linha {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* BOTÃO MENU */
.menu-btn {
    font-size: 25px;
    background: none;
    border: none;
    cursor: pointer;
    color: white;
}

/* LOGO */
.logo img {
    height: 40px;
}

/* BUSCA */
.busca {
    display: flex;
    flex: 1;
    background: white;
    border-radius: 5px;
    overflow: hidden;
}

.busca input {
    flex: 1;
    padding-top: 8px;
    padding-bottom: 8px;
    border: none;
    outline: none;
}

.busca button {
    border: none;
    background: #d8d9db;
    color: white;
    cursor: pointer;
}

/* SIDEBAR */
.sidebar {
    position: fixed;
    top: 0;
    left: -280px;
    width: 260px;
    /* força a altura igual à tela inteira */
    height: 100vh; /* 👈 use vh ao invés de 100% */
    background: white;
    box-shadow: 2px 0 10px rgba(0,0,0,0.2);
    transition: left 0.3s ease;
    z-index: 1001;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* SIDEBAR ATIVO */
.sidebar.ativo {
    left: 0;    
}

/* BOTÃO FECHAR */
.fechar {
    align-self: flex-end;
    font-size: 20px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px 15px;
}

/* CONTEÚDO COM SCROLL */
.sidebar-conteudo {
    overflow-y: auto;
    flex: 1;
    padding: 10px 15px 80px;

    -webkit-overflow-scrolling: touch;
}

/* LINKS */
.sidebar a {
    display: block;
    padding: 12px;
    text-decoration: none;
    color: #333333;
    border-bottom: 1px solid #eee;
}

.sidebar a:hover {
    background: #f5f5f5;
}

/* OVERLAY */
#overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4);
    opacity: 0;
    visibility: hidden;

    transition: 0.3s;
    z-index: 1000;
}

#overlay.ativo {
    opacity: 1;
    visibility: visible;
}


