* {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    transition: all 0.2s ease;
}

html, body {
    height: 100%;
    background: #d3d3d3;
    color: #fff;
}

/* ====== HEADER ====== */
header {
    width: 100%;
    height: 50px;
    background: #474747;
    position: fixed;
    z-index: 10;
    top: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 15px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.25);
}

#logo_header {
    height: 35px;
}

/* ====== MENU SUPERIOR ====== */
#menu_header {
    display: flex;
    align-items: center;
    padding: 0 15px;
    border-radius: 6px;
}

.iten_menu a {
    color: white;
    text-decoration: none;
    margin: 0 10px;
    font-weight: 500;
}

.iten_menu a:hover {
    text-decoration: underline;
}

/* ====== MENU LATERAL ====== */
.menu_lateral {
    position: fixed;
    top: 50px;
    left: 0;
    width: 70px; /* recolhido */
    height: calc(100vh - 50px);
    background-color: #222;
    overflow-x: hidden;
    transition: width 0.3s ease;
    z-index: 5;
}

.menu_lateral:hover {
    width: 220px; /* expandido */
}

.menu_lateral ul {
    list-style: none;
    margin-top: 20px;
    padding: 0;
}

.menu_lateral li {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    color: #fff;
    white-space: nowrap;
    border-radius: 6px;
    margin: 5px 8px;
    transition: background 0.3s ease;
}

.menu_lateral li:hover {
    background: #474747;
    cursor: pointer;
}

.menu_lateral a {
    color: white;
    text-decoration: none;
    width: 100%;
    display: flex;
    align-items: center;
}

.menu_lateral img.icon_lateral {
    width: 24px;
    height: 24px;
    margin-right: 15px;
    flex-shrink: 0;
}

/* ====== Oculta o texto e mostra ao expandir ====== */
.menu_lateral li span {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.menu_lateral:hover li span {
    opacity: 1;
    visibility: visible;
}

/* ====== CONTEÚDO PRINCIPAL ====== */
.conteiner_total {
    float: right;
    margin-top: 60px;
    width: calc(100% - 70px);
    padding: 25px;
    min-height: calc(100vh - 60px);
    transition: width 0.3s ease, margin-left 0.3s ease;
    color: #222;
}

.menu_lateral:hover ~ .conteiner_total {
    width: calc(100% - 220px);
}

/* ====== ARTICLE ====== */
article {
    position: relative;
    width: 100%;
}

/* ====== MOBILE ====== */
@media (max-width: 768px) {
    .menu_lateral {
        position: fixed;
        width: 0;
        height: 100vh;
        top: 50px;
        background: rgba(34,34,34,0.97);
        transition: width 0.3s ease;
    }

    .menu_lateral.active {
        width: 220px;
    }

    .menu_lateral ul {
        margin-top: 60px;
    }

    .conteiner_total {
        width: 100%;
        padding: 15px;
    }

    .menu_toggle {
        display: block;
        cursor: pointer;
        background: none;
        border: none;
        color: #fff;
        font-size: 22px;
        margin-left: 10px;
    }
}

/* ====== SCROLLBAR ====== */
.menu_lateral::-webkit-scrollbar {
    width: 6px;
}

.menu_lateral::-webkit-scrollbar-thumb {
    background: #555;
    border-radius: 3px;
}

.menu_lateral::-webkit-scrollbar-thumb:hover {
    background: #777;
}
