.cabecalho {
    background-color: #cd6704;
    color: #fff;
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 3;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.menu-hamburguer {
    width: 140px;
}

.cabecalho h1 {
    margin: 0;
    font-size: 24px;
    color: white;
    flex: 1;
    text-align: center;
}

.cabecalho img {
    height: auto;
    width: 150px;
    margin-right: 20px;
}

/* Menu hamburguer */
.menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
}

.menu-toggle div {
    height: 4px;
    background-color: white;
    border-radius: 2px;
}

/* Sidebar */
.sidebar {
    width: 250px;
    height: 100vh;
    background: linear-gradient(180deg, #6a0dad, #4a0072);
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 20px;
    position: fixed;
    left: -250px;
    top: 70px;
    transition: left 0.3s ease-in-out;
    overflow-y: auto;
    z-index: 2;
}

.menu-corpo{
    height: 10vh;
}

.sidebar.open {
    left: 0; /* Quando o menu estiver aberto, a sidebar move para a esquerda */
}

.profile {
    text-align: center;
    margin-bottom: 20px;
}

.profile img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin-bottom: 10px;
}

.profile h3 {
    margin: 0;
    font-size: 18px;
}

.menu {
    width: 100%;
    margin-top: 20px;
}

.menu a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: white;
    padding: 15px 20px;
    transition: background 0.3s;
    bottom: 20px;
}

.menu a:hover {
    background: rgba(255, 255, 255, 0.2);
}

.menu a img {
    width: 24px;
    height: 24px;
    margin-right: 10px;
}

.menu a span {
    font-size: 16px;
}

/* Content (container) */
.content {
    margin-left: 0;
    padding: 80px 20px; /* Desloca o conteúdo para baixo, considerando o cabeçalho */
    width: 100%;
    transition: margin-left 0.3s ease-in-out;
    flex: 1;
}

.content.open {
    margin-left: 250px; /* Quando o menu está aberto, o conteúdo é deslocado */
}

/* Responsividade */
@media (max-width: 768px) {
    .cabecalho h1 {
        font-size: 18px;
    }

    .menu a span {
        font-size: 14px;
    }

    .menu a img {
        width: 20px;
        height: 20px;
    }

    .content {
        padding: 60px 10px; /* Ajusta o padding para dispositivos menores */
    }

    .sidebar {
        width: 200px; /* Reduz a largura da sidebar em telas menores */
    }

    .sidebar.open {
        left: 0;
    }

    .menu-toggle {
        width: 25px;
        height: 18px;
    }

    .menu-toggle div {
        height: 3px;
    }
}

/* Pequenas telas */
@media (max-width: 480px) {
    .cabecalho h1 {
        font-size: 16px;
    }

    .menu a {
        padding: 10px 15px;
    }

    .menu a span {
        font-size: 12px;
    }

    .menu a img {
        width: 18px;
        height: 18px;
    }

    .sidebar {
        width: 180px; /* Sidebar ainda menor */
    }

    .content {
        padding: 50px 10px;
    }
}
