/* ================== BODY ================== */
body {
    background: #f4f6f9;
    font-family: "Segoe UI", Arial, sans-serif;
    margin: 0;
}

/* ================== SIDEBAR ================== */
.sidebar {
    width: 260px;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    background: #111827;
    color: white;
    transition: 0.3s;
    z-index: 1000;
}

    .sidebar.collapsed {
        margin-left: -260px;
    }

    .sidebar.show {
        margin-left: 0;
    }

    .sidebar h3 {
        padding: 20px;
        font-size: 20px;
    }

    .sidebar ul {
        list-style: none;
        padding: 0;
    }

        .sidebar ul li {
            padding: 14px 20px;
        }

            .sidebar ul li:hover {
                background: #1f2937;
            }

    .sidebar a {
        color: white;
        text-decoration: none;
        display: flex;
        gap: 10px;
        align-items: center;
    }

/* ================== CONTENT ================== */
.content {
    margin-left: 260px;
    transition: 0.3s;
}

    .content.full {
        margin-left: 0;
    }

/* ================== TOPBAR ================== */
.topbar {
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    position: sticky; /* fixa no topo */
    top: 0;
    z-index: 1050; /* acima da sidebar */
    background: white;
    box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}

/* ================== RESPONSIVO ================== */
@media (max-width: 900px) {
    .sidebar {
        margin-left: -260px;
        position: fixed;
        height: 100vh;
    }

        .sidebar.show {
            margin-left: 0;
        }

    .content {
        margin-left: 0;
    }
}
